wradlib.georef.rect.GeorefRectMethods

wradlib.georef.rect.GeorefRectMethods#

class wradlib.georef.rect.GeorefRectMethods[source]#

Bases: object

wradlib xarray SubAccessor methods for Georef Rect Methods.

xyz_to_spherical(**kwargs)[source]#

Returns spherical representation (r, theta, phi) of given cartesian coordinates (x, y, z) with respect to the reference altitude (asl) considering earth’s geometry (crs).

Parameters:

obj (xarray.DataArray | xarray.Dataset)

Keyword Arguments:
  • crs (osgeo.osr.SpatialReference) – projection of the source coordinates (aeqd) with spheroid model defaults to None.

  • 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:

obj (xarray.Dataset) – obj with added spherical coordinates.

xyz_to_spherical(**kwargs)

Returns spherical representation (r, theta, phi) of given cartesian coordinates (x, y, z) with respect to the reference altitude (asl) considering earth's geometry (crs).