wradlib.georef.polar.GeorefPolarMethods.georeference#
- GeorefPolarMethods.georeference(**kwargs)[source]#
Georeference Dataset/DataArray.
Added in version 1.5.
This function adds georeference data to xarray Dataset/DataArray obj.
- Parameters:
obj (
xarray.Datasetorxarray.DataArray)- Keyword Arguments:
crs –
Coordinate Reference System (CRS) of the coordinates. Must be provided and 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 AEQD.
re (
float) – earth’s radius [m]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.Datasetorxarray.DataArray)