imod.util.coord_reference#

imod.util.coord_reference(da_coord) Tuple[float, float, float][source]#

Extracts dx, xmin, xmax for a coordinate DataArray, where x is any coordinate.

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

Parameters

a (xarray.DataArray of a coordinate) –

Returns

(dx, xmin, xmax) for a coordinate x

Return type

tuple