xugrid.UgridDatasetAccessor.to_netcdf#
- UgridDatasetAccessor.to_netcdf(*args, **kwargs)#
Write dataset contents to a UGRID compliant netCDF file.
This function wraps
xr.Dataset.to_netcdf()
; it adds the UGRID variables and coordinates to a standard xarray Dataset, then writes the result to a netCDF.All arguments are forwarded to
xr.Dataset.to_netcdf()
.