pyxpcm.io.to_netcdf
- pyxpcm.io.to_netcdf(m, ncfile=None, global_attributes={}, mode='w')[source]
Save a PCM to a netcdf file
Any existing file at this location will be overwritten by default. Time logging information are not saved.
- Parameters:
- ncfilestr
File name where to save this PCM.
- global_attributes: dict()
Dictionnary of attributes to add to the Netcdf4 file under the global scope.
- modestr
Writing mode of the file. mode=’w’ (default) overwrite any existing file. Anything else will raise an Error if file exists.