wradlib.georef.projection.GeorefProjectionMethods.get_earth_radius#
- GeorefProjectionMethods.get_earth_radius(*, sr=None)[source]#
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
obj (
xarray.DataArray
|xarray.Dataset
)sr (
osgeo.osr.SpatialReference
) – spatial reference
- Returns
radius (
float
) – earth radius in meter