wradlib.georef.projection.get_earth_radius

wradlib.georef.projection.get_earth_radius(latitude, sr=None)

Get the radius of the Earth (in km) for a given Spheroid model (sr) at a given position.

\[R^2 = \frac{a^4 \cos(f)^2 + b^4 \sin(f)^2} {a^2 \cos(f)^2 + b^2 \sin(f)^2}\]
Parameters
  • sr (osr object) – spatial reference

  • latitude (float) – geodetic latitude in degrees

Returns

radius (float) – earth radius in meter