mpas_analysis.shared.io.write_netcdf¶
-
mpas_analysis.shared.io.
write_netcdf
(ds, fileName, fillValues={'S1': 'x00', 'i1': -127, 'u1': 255, 'i2': -32767, 'u2': 65535, 'i4': -2147483647, 'u4': 4294967295, 'i8': -9223372036854775806, 'u8': 18446744073709551614, 'f4': 9.969209968386869e+36, 'f8': 9.969209968386869e+36})[source]¶ Write an xarray data set to a NetCDF file using finite fill values and unicode strings
- Parameters
- dsxarray.Dataset object
The xarray data set to be written to a file
- fileNamestr
The fileName to write the data set to
- fillValuesdict
A dictionary of fill values for each supported data type. By default, this is the dictionary used by the netCDF4 package. Key entries should be of the form ‘f8’ (for float64), ‘i4’ (for int32), etc.