calc_distance | R Documentation |
Calculate distance between two latitude / longitude points
calc_distance(tclat, tclon, glat, glon, Rearth = 6371)
tclat |
A numeric value with the latitude of the tropical cyclone's center in radians |
tclon |
A numeric value with the longitude of the tropical cyclone's center in radians |
glat |
A numeric value with the latitude of the grid point in radians |
glon |
A numeric value with the longitude of the grid point in radians |
Rearth |
A numeric value with the radius of the earth in kilometers. This value defaults to 6,371 km, which is the median radius of the earth. |
A numeric value with the distance (in kilometers) from the tropical cyclone center to the grid point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.