imod.util.transform#

imod.util.transform(a: xarray.core.dataarray.DataArray) affine.Affine[source]#

Extract the spatial reference information from the DataArray coordinates, into an affine.Affine object for writing to e.g. rasterio supported formats.

Parameters

a (xarray.DataArray) –

Return type

affine.Affine