netcdf.inqDimIDs
Work with netCDF dimensions.
📝Syntax
dimids = netcdf.inqDimIDs(ncid)
📥Input Arguments
Parameter Description
ncid Open netCDF file or group identifier.
dimid Dimension identifier.
dimname Dimension name.
dimlen Dimension length or NC_UNLIMITED.
📤Output Arguments
Parameter Description
dimids Return value described by the syntax shown above.
📄Description

netcdf.inqDimIDs exposes low-level dimension metadata.

Dimensions define the shape of variables and can be shared by several variables in the same group.

💡Examples
Copy-paste example for netcdf.inqDimIDs.
filename = [tempdir(), 'help_netcdf_inqDimIDs.nc'];
ncid = netcdf.create(filename, netcdf.getConstant('NC_CLOBBER'));
netcdf.defDim(ncid, 'x', 3);
dimids = netcdf.inqDimIDs(ncid);
netcdf.close(ncid);
🔗See Also
netcdf.defVarnetcdf.inq
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub