wradlib.georef.raster.set_raster_indexing

wradlib.georef.raster.set_raster_indexing(data, coords, indexing='xy')

Sets Data and Coordinates Indexing Scheme

This converts data and coordinate layout from row-major to column major indexing.

Parameters
  • data (numpy:numpy.ndarray) – Array of shape (…, M, N) containing the data values.

  • coords (numpy:numpy.ndarray) – Array of shape (…, M, N, 2) containing xy-coordinates.

  • indexing (str) – ‘xy’ or ‘ij’, indexing scheme in which to convert data and coordinates.

Returns

  • data (numpy:numpy.ndarray) – Array of shape (…, N, M) containing the data values.

  • coords (numpy:numpy.ndarray) – Array of shape (…, N, M, 2) containing xy-coordinates.