| Contents | Index |
format = netcdf.inqFormat(ncid)
format = netcdf.inqFormat(ncid) returns the format for the file specified by NetCDF file identifier, ncid.
ncid |
Identifier of a NetCDF file, returned by netcdf.create or netcdf.open, or of a NetCDF group, returned by netcdf.defGrp. |
This example opens the sample NetCDF file and determines the format.
ncid = netcdf.open('example.nc','NOWRITE');
fmt = netcdf.inqFormat(ncid)
format =
FORMAT_NETCDF4
netcdf.close(ncid);
This function corresponds to the nc_inq_format function in the NetCDF library C API.
For copyright information, read the netcdfcopyright.txt and mexnccopyright.txt files.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |