Learn R Programming

TCHazaRds (version 1.1.2)

Rdist: TC Distance and Direction From Output Grid Points

Description

Grid points distance and direction to TC.

Usage

Rdist(Gridlon, Gridlat, TClon, TClat)

Value

two columns for distance in km and cartesian direction in degrees, counter clockwise from the x axis. //@example Rdist(c(144,145),c(-11,-12),142,-14)

Arguments

Gridlon

vector of Grid point longitudes

Gridlat

vector of Grid point latitudes

TClon

single TC longitude

TClat

single TC latitude