calc_distance: Calculate distance between two latitude / longitude points

View source: R/RcppExports.R

calc_distanceR Documentation

Calculate distance between two latitude / longitude points

Description

Calculate distance between two latitude / longitude points

Usage

calc_distance(tclat, tclon, glat, glon, Rearth = 6371)

Arguments

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.

Value

A numeric value with the distance (in kilometers) from the tropical cyclone center to the grid point.


geanders/stormwindmodel documentation built on Sept. 27, 2022, 6:47 a.m.