wradlib.georef.set_raster_origin

wradlib.georef.set_raster_origin(data, coords, direction)

Converts Data and Coordinates Origin

Parameters:
  • 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.
  • direction (str) – ‘lower’ or ‘upper’, direction in which to convert data and coordinates.
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.