imod.util.spatial_reference#

imod.util.spatial_reference(a: DataArray) Tuple[float, float, float, float, float, float][source]#

Extracts spatial reference from DataArray.

If the DataArray coordinates are nonequidistant, dx and dy will be returned as 1D ndarray instead of float.

Parameters:

a (xarray.DataArray)

Returns:

(dx, xmin, xmax, dy, ymin, ymax)

Return type:

tuple