wradlib.georef.raster.get_raster_extent

wradlib.georef.raster.get_raster_extent(dataset, geo=False, window=True)

Get the coordinates of the 4 corners of the raster dataset

Parameters:
  • dataset (gdal.Dataset) – raster image with georeferencing (GeoTransform at least)
  • geo (bool) – True to get geographical coordinates
  • window (bool) – True to get the window containing the corners
Returns:

extent (numpy.ndarray) – corner coordinates [ul,ll,lr,ur] or window extent [xmin, xmax, ymin, ymax]