wradlib.georef.projection.ensure_crs#
- wradlib.georef.projection.ensure_crs(crs, trg='pyproj')[source]#
Return CRS object from given entry. Default to pyproj CRS.
- Parameters:
crs – Coordinate Reference System (CRS) of the coordinates. Must be given and can be one of:
A
xarray.DataArrayinstance containing spatial referenceA
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)None
- Keyword Arguments:
trg (
str,{"pyproj", "cartopy", "osr"}) – Target Coordinate Reference System type- Returns:
crs (
pyproj.crs.CoordinateSystem,cartopy.crs.CRS,osgeo.osr.SpatialReferenceorNone)