netcdf.setDefaultFormat
Change the default file format used by netCDF create calls.
📝Syntax
oldFormat = netcdf.setDefaultFormat(format)
📥Input Arguments
Parameter Description
arguments Input arguments follow the syntax shown above. File and group identifiers are numeric values returned by netCDF open, create, group, dimension, and variable definition calls. Named netCDF constants can be obtained with netcdf.getConstant.
📤Output Arguments
Parameter Description
oldFormat Return value described by the syntax shown above.
📄Description

netcdf.setDefaultFormat sets the process default netCDF format.

Prefer explicit creation modes when a file format matters for reproducibility.

💡Examples
Copy-paste example for netcdf.setDefaultFormat.
oldFormat = netcdf.setDefaultFormat(netcdf.getConstant('NC_FORMAT_NETCDF4'));
netcdf.setDefaultFormat(oldFormat);
🔗See Also
netcdf.createnetcdf.getConstant
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub