hydromt.DataArray.raster.gdal_compliant#

DataArray.raster.gdal_compliant(rename_dims=True, force_sn=False) DataArray | Dataset#

Update attributes to get GDAL compliant NetCDF files.

Parameters:
  • rename_dims (bool, optional) – If True, rename x_dim and y_dim to standard names depending on the CRS (x/y for projected and lat/lon for geographic).

  • force_sn (bool, optional) – If True, forces the dataset to have South -> North orientation.

Returns:

ojb_out – GDAL compliant object

Return type:

xr.Dataset or xr.DataArray