wradlib.georef.GeorefMethods.get_earth_radius

wradlib.georef.GeorefMethods.get_earth_radius#

GeorefMethods.get_earth_radius(*, crs=None)#

Get the radius of the Earth (in m) for a given Spheroid model (crs) 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:

obj (xarray.DataArray | xarray.Dataset)

Keyword Arguments:

crs

Coordinate Reference System (CRS) of the coordinates. Can be one of:

Defaults to EPSG(4326).

Returns:

radius (float) – earth radius in meter