imod.util.spatial_reference#

imod.util.spatial_reference(a: xarray.core.dataarray.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