hydromt.GridModel.write_grid#

GridModel.write_grid(fn: str = 'grid/grid.nc', gdal_compliant: bool = False, rename_dims: bool = False, force_sn: bool = False, **kwargs) None#

Write model grid data to netcdf file at <root>/<fn>.

key-word arguments are passed to write_nc()

Parameters:
  • fn (str, optional) – filename relative to model root, by default ‘grid/grid.nc’

  • **kwargs (dict) – Additional keyword arguments to be passed to the write_nc method.

  • gdal_compliant (bool, optional) – If True, write grid data in a way that is compatible with GDAL, by default False

  • rename_dims (bool, optional) – If True and gdal_compliant, 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 and gdal_compliant, forces the dataset to have South -> North orientation.