wradlib.georef.raster.create_raster_dataset#
- wradlib.georef.raster.create_raster_dataset(data, coords, *, crs=None, nodata=-9999)[source]#
Create In-Memory Raster Dataset
- Parameters:
data (
numpy.ndarray) – Array of shape (rows, cols) or (bands, rows, cols) containing the data values.coords (
numpy.ndarray) – Array of shape (nrows, ncols, 2) containing pixel center coordinates or Array of shape (nrows+1, ncols+1, 2) containing pixel edge coordinatescrs – 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 None.
nodata (
int) – Value of NODATA
- Returns:
dataset (
osgeo.gdal.Dataset) – In-Memory raster dataset
Note
The origin of the provided data and coordinates is UPPER LEFT.