Return the transform associated with the given raster, or, if unset,
assume a rectangular grid and create the corresponding transformation.
- Parameters:
dataarray (DataArray
) – the array for which to return a transformation object
- Return type:
Affine