netcdf.inqFormat
Determine the format of an open netCDF file.
📝Syntax
format = netcdf.inqFormat(ncid)
📥Input Arguments
Parameter Description
ncid Open netCDF file or group identifier.
filename Path of the file when used by create or open.
mode Numeric mode built from netCDF constants when required.
📤Output Arguments
Parameter Description
format Return value described by the syntax shown above.
📄Description

netcdf.inqFormat is a low-level wrapper around the corresponding netCDF C library operation.

Low-level functions use numeric identifiers returned by netcdf.create, netcdf.open, and related calls.

💡Examples
Copy-paste example for netcdf.inqFormat.
filename = [tempdir(), 'help_netcdf_inqFormat.nc'];
ncid = netcdf.create(filename, netcdf.getConstant('NC_CLOBBER'));
netcdf.close(ncid);
ncid = netcdf.open(filename, netcdf.getConstant('NC_NOWRITE'));
format = netcdf.inqFormat(ncid);
netcdf.close(ncid);
🔗See Also
netcdf.createnetcdf.opennetcdf.closenetcdf.getConstant
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub