wradlib.georef.raster.set_coordinate_indexing

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

Sets Coordinates Indexing Scheme

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

Parameters
  • 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

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