Next: , Previous: nc_def_var_fletcher32, Up: Variables



6.13 Learn About Fletcher32 Parameters for a Variable: nc_inq_var_fletcher32

The function nc_inq_var_fletcher32 returns the fletcher32 settings for a variable in a netCDF-4 file.

Usage

     nc_inq_var_fletcher32(int ncid, int varid, int *fletcher32p);
ncid
NetCDF ID, from a previous call to nc_open or nc_create.
varid
Variable ID.
*fletcher32p
If not-NULL, the nc_inq_var_fletcher32 function will set the int pointed to this to 1 if the fletcher32 filter is turned on for this variable, and 0 if it is not.

Errors

nc_inq_var_fletcher32 returns the value NC_NOERR if no errors occurred. Otherwise, the returned status indicates an error.

Possible return codes include:

NC_NOERR
No error.
NC_BADID
Bad ncid.
NC_ENOTNC4
Not a netCDF-4 file.
NC_ENOTVAR
Can't find this variable.

Example