Next: , Previous: NF90_DEF_VAR_FLETCHER32, Up: Variables


6.11 Learn About Checksum Parameters for a Variable: NF90_INQ_VAR_FLETCHER32

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

Usage

       function nf90_inq_var_fletcher32(ncid, varid, checksum)
         integer, intent(in) :: ncid
         integer, intent(in) :: varid
         integer, intent(out) :: checksum
         integer :: nf90_inq_var_fletcher32
NCID
NetCDF ID, from a previous call to NF90_OPEN or NF90_CREATE.
VARID
Variable ID.
CHECKSUM
NF90_INQ_VAR_FLETCHER32 will set this to NF90_FLETCHER32 if the fletcher32 filter is turned on for this variable, and NF_NOCHECKSUM if it is not.

Errors

NF90_INQ_VAR_FLETCHER32 returns the value NF90_NOERR if no errors occurred. Otherwise, the returned status indicates an error.

Possible return codes include:

NF90_NOERR
No error.
NF90_BADID
Bad ncid.
NF90_ENOTNC4
Not a netCDF-4 file.
NF90_ENOTVAR
Can't find this variable.

Example