wradlib.georef.GeorefMethods.spherical_to_proj#
- GeorefMethods.spherical_to_proj(**kwargs)#
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 –
Coordinate Reference System (CRS) of the coordinates. Can be one of:
A
pyproj.crs.CoordinateSysteminstanceA
cartopy.crs.CRSinstanceA
osgeo.osr.SpatialReferenceinstanceA type accepted by
pyproj.crs.CRS.from_user_input(e.g., EPSG code, PROJ string, dictionary, WKT, or any object with a to_wkt() method)
Defaults to 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.