mapshader.transforms.orient_array#

mapshader.transforms.orient_array(arr)[source]#

Reorients the array to a canonical orientation depending on whether the x and y-resolution values are positive or negative.

Parameters:

arr (xarray.DataArray) – Data to be reoriented

Returns:

reoriented_data – Reoriented 2d NumPy ndarray

Return type:

numpy.ndarray