xray.Dataset.to_netcdf

Dataset.to_netcdf(filepath, **kwdargs)

Dump dataset contents to a location on disk using the netCDF4 package.