wradlib.georef.rect.get_radolan_coordinates#
- wradlib.georef.rect.get_radolan_coordinates(nrows=None, ncols=None, **kwargs)[source]#
Calculates x/y coordinates of RADOLAN projection of the German Weather Service.
Returns the 1D x,y coordinates of the RADOLAN projection for the given grid layout.
- Parameters:
- Keyword Arguments:
wgs84 (
bool) – if True, output coordinates are in WGS84 lon/lat format (default: False)mode (
str) – ‘radolan’ - lower left pixel coordinates ‘center’ - pixel center coordinates ‘edge’ - pixel edge coordinatescrs –
Coordinate Reference System (CRS) of the DWD grid with spheroid model. 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)string “trig” to use trigonometric formulas for calculation (only for earth model - sphere).
Defaults to None (earth model - sphere).
- Returns:
radolan_ccords (
tuple) – x and y 1D coordinatenumpy.ndarrayshape is (nrows, ) and (ncols, ) if mode=’radolan’ shape is (nrows, ) and (ncols, ) if mode=’center’ shape is (nrows+1, ) and (ncols+1, ) if mode=’edge’