wradlib.georef.extract_raster_dataset

wradlib.georef.extract_raster_dataset(dataset, nodata=None)

Extract data, coordinates and projection information

Parameters:
  • dataset (gdal.Dataset) – raster dataset
  • nodata (scalar) – Value to which the dataset nodata values are mapped.
Returns:

  • data (numpy.ndarray) – Array of shape (rows, cols) or (bands, rows, cols) containing the data values.
  • coords (numpy.ndarray) – Array of shape (rows, cols, 2) containing xy-coordinates.
  • projection (osr object) – Spatial reference system of the used coordinates.