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 georeferencing

  • mode (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

See Clutter detection by using space-born cloud images.