Next: , Previous: nc_def_var_fletcher32, Up: Variables


6.16 Learn About Checksum Parameters for a Variable: nc_inq_var_fletcher32

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

Usage

     nc_inq_var_fletcher32(int ncid, int varid, int *checksump);
ncid
NetCDF ID, from a previous call to nc_open or nc_create.
varid
Variable ID.
*checksump
If not-NULL, the nc_inq_var_fletcher32 function will set the int pointed at to NC_FLETCHER32 if the fletcher32 checksum filter is turned on for this variable, and NC_NOCHECKSUM 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