mapshader.transforms.flip_coords#

mapshader.transforms.flip_coords(arr, dim)[source]#

Flip the geometry coordinates.

Parameters:
  • arr (xarray.DataArray) – The data source.

  • dim (str) – The coordinate field name.

Returns:

flipped_data – The flipped coordinates data.

Return type:

xarray.DataArray