Determine format of NetCDF file
format = netcdf.inqFormat(ncid)
format = netcdf.inqFormat(ncid)
returns
the format for the file specified by NetCDF file identifier, ncid
.
|
Identifier of a NetCDF file, returned by |
|
Character vector that specifies the format of the NetCDF file. Returned values include:
|
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.