wradlib.georef.GeorefMethods.reproject#
- GeorefMethods.reproject(**kwargs)#
Transform coordinates from current projection to a target projection.
- Parameters:
obj (
xarray.DataArray|xarray.Dataset)- Keyword Arguments:
src_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.from_user_input(e.g., EPSG code, PROJ string, dictionary, WKT, or any object with a to_wkt() method)
Defaults to source data CRS.
trg_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.from_user_input(e.g., EPSG code, PROJ string, dictionary, WKT, or any object with a to_wkt() method)
Defaults to WGS84.
coords (
dict, optional) – Mapping of coordinates. Defaults to Nonearea_of_interest (
tuple) – floats (WestLongitudeDeg, SouthLatitudeDeg, EastLongitudeDeg, NorthLatitudeDeg), defaults to None (no area of interest).
- Returns:
obj (
xarray.DataArray|xarray.Dataset) – reprojected Dataset/DataArray
Examples