xradar.georeference.projection.get_earth_radius#
- xradar.georeference.projection.get_earth_radius(crs, latitude)[source]#
Return earth radius (in m) for a given Spheroid model (crs) at a given latitude.
\[R^2 = \frac{a^4 \cos(f)^2 + b^4 \sin(f)^2} {a^2 \cos(f)^2 + b^2 \sin(f)^2}\]- Parameters:
crs (
CoordinateSystem
) – spatial reference objectlatitude (
float
) – geodetic latitude in degrees
- Returns:
radius (
float
) – earth radius in meter