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: - ncfile : str
File name where to save this PCM.
- global_attributes: dict()
Dictionnary of attributes to add to the Netcdf4 file under the global scope.
- mode : str
Writing mode of the file. mode=’w’ (default) overwrite any existing file. Anything else will raise an Error if file exists.