wradlib.georef.polar.GeorefPolarMethods.spherical_to_proj#

GeorefPolarMethods.spherical_to_proj(**kwargs)[source]#

Transforms spherical coordinates (r, phi, theta) to projected coordinates centered at site in given projection.

It takes the shortening of the great circle distance with increasing elevation angle as well as the resulting increase in height into account.

Parameters

obj (xarray.DataArray | xarray.Dataset)

Keyword Arguments
  • crs (osgeo.osr.SpatialReference) – Destination Spatial Reference System (Projection). Defaults to wgs84 (epsg 4326).

  • ke (float) – adjustment factor to account for the refractivity gradient that affects radar beam propagation. In principle this is wavelength- dependend. The default of 4/3 is a good approximation for most weather radar wavelengths.

Returns

coords (xarray.DataArray) – Array of shape (…, 3). Contains projected map coordinates.