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 (
osgeo.osr.SpatialReference
) – Spatial reference system of the used coordinates, 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.