wradlib.georef.raster.read_gdal_coordinates¶
- wradlib.georef.raster.read_gdal_coordinates(dataset, mode='center')¶
Get the projected coordinates from a GDAL dataset.
- Parameters:
dataset (
osgeo.gdal.Dataset) – raster image with georeferencingmode (
str) – either ‘center’ or ‘edge’
- Returns:
coordinates (
numpy.ndarray) – Array of shape (nrows,ncols,2) containing xy coordinates. The array indexing follows image convention with origin at upper left pixel. The shape is (nrows+1,ncols+1,2) if mode == edge.
Examples