netcdf.inqFormat
Determine format of netCDF file
Description
Examples
Determine Format of NetCDF file
This example opens the sample netCDF file and determines the format.
ncid = netcdf.open("example.nc","NOWRITE"); fmt = netcdf.inqFormat(ncid)
fmt =
'FORMAT_NETCDF4'
netcdf.close(ncid);
Input Arguments
ncid
— NetCDF file identifier
integer
Identifier of netCDF file, returned by netcdf.create
function or netcdf.open
function, or of a netCDF group, returned by netcdf.defGrp
function.
Data Types: double
Output Arguments
format
— Format of netCDF file
character vector
Format of the netCDF file, returned as one of the following values.
Format | Description |
---|---|
'FORMAT_CLASSIC' | Classic format — Original netCDF format, used by all NetCDF files created between 1989 and 2004 |
'FORMAT_64BIT' | Classic format, 64–bit — Original format with 64–bit addressing capability to allow creation and access of much larger files. |
'FORMAT_NETCDF4' | Enhanced model, HDF5-based — Introduced in 2008, netCDF, version 4, extends the classic model and is based on HDF5. |
'FORMAT_NETCDF4_CLASSIC'
| Classic model, HDF5-based — Introduced in 2008, netCDF, version 4, implements classic model but is based on HDF5. |
Version History
Introduced in R2010b
See Also
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)