info =
ncinfo (filename)
¶info =
ncinfo (filename, varname)
¶info =
ncinfo (filename, groupname)
¶Return information about an entire NetCDF file filename (i.e. the root group "/"), about the variable called varname or the group called groupname.
The structure info has always the following fields:
The structure info has additional fields depending on whether a group of variable is queried.
Groups are returned as an array structure with the following fields:
Dimensions are returned as an array structure with the following fields:
Variables are returned as an array structure with the following fields:
Attributes are returned as an array structure with the following fields:
The following the the correspondence between the Octave and NetCDF data-types:
Octave type | NetCDF type |
---|---|
int8 | NC_BYTE |
uint8 | NC_UBYTE |
int16 | NC_SHORT |
uint16 | NC_USHORT |
int32 | NC_INT |
uint32 | NC_UINT |
int64 | NC_INT64 |
uint64 | NC_UINT64 |
single | NC_FLOAT |
double | NC_DOUBLE |
char | NC_CHAR |
The output of ncinfo
can be used to create a NetCDF file with the same
meta-data using ncwriteschema
.
Note: If there are no attributes (or variable or groups), the corresponding field is an empty matrix and not an empty struct array for compatibility with matlab.
See also: ncread,nccreate,ncwriteschema,ncdisp.
Package: netcdf