pandas_xyz.scalar module
- pandas_xyz.scalar.cartesian(lon1, lat1, lon2, lat2)[source]
Calculate point-to-point distance using cartesian coordinates.
- Parameters
lon1 (float) – longitude coordinate of start point in degrees E (-180, 180)
lat1 (float) – latitude coordinate of start point in degrees N (-90, 90)
lon2 (float) – longitude coordinate of end point in degrees E (-180, 180)
lat2 (float) – latitude coordinate of end point in degrees N (-90, 90)
- Returns
distance from point 1 to point 2 in meters.
- Return type
float
- pandas_xyz.scalar.great_circle(lon1, lat1, lon2, lat2)[source]
Calculate point-to-point distances using great circle.
- Parameters
lon1 (float) – longitude coordinate of start point in degrees E (-180, 180)
lat1 (float) – latitude coordinate of start point in degrees N (-90, 90)
lon2 (float) – longitude coordinate of end point in degrees E (-180, 180)
lat2 (float) – latitude coordinate of end point in degrees N (-90, 90)
- Returns
distance from point 1 to point 2 in meters.
- Return type
float