wradlib.georef.raster.pixel_coordinates

wradlib.georef.raster.pixel_coordinates(nx, ny, mode='centers')

Get pixel coordinates from a regular grid with dimension nx by ny.

Parameters:
  • nx (int) – xsize
  • ny (int) – ysize
  • mode (string) – centers or edges to return the pixel coordinates defaults to centers
Returns:

coordinates (numpy.ndarray) – Array of shape (ny,nx) with pixel coordinates (x,y)