netcdf.inqFormat
Determine format of NetCDF file
Syntax
format = netcdf.inqFormat(ncid)
Description
format = netcdf.inqFormat(ncid)
returns
the format for the file specified by NetCDF file identifier, ncid
.
Input Arguments
|
Identifier of a NetCDF file, returned by |
Output Arguments
|
Character vector that specifies the format of the NetCDF file. Returned values include:
|
Examples
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);
References
This function corresponds to the nc_inq_format
function
in the NetCDF library C API.