wradlib.georef.projection.ensure_crs

Contents

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:

Keyword Arguments:

trg (str, {"pyproj", "cartopy", "osr"}) – Target Coordinate Reference System type

Returns:

crs (pyproj.crs.CoordinateSystem, cartopy.crs.CRS, osgeo.osr.SpatialReference or None)