Next: , Previous: NF_INQ_VAR_DEFLATE, Up: Variables


6.12 Learn About Szip Parameters for a Variable: NF_INQ_VAR_SZIP

The function NF_INQ_VAR_SZIP returns the szip settings for a variable in a netCDF-4 file.

It is not necessary to know the szip settings to read the variable. (Szip is completely transparent to readers of the data).

Usage

     NF_INQ_VAR_SZIP(INTEGER NCID, INTEGER VARID, INTEGER OPTION_MASK,
                             PIXELS_PER_BLOCK);
NCID
NetCDF ID, from a previous call to NF_OPEN or NF_CREATE.
VARID
Variable ID.
OPTION_MASK
This will be set to the option_mask value.
PIXELS_PER_BLOCK
The number of bits per pixel will be put here.

Errors

NF_INQ_VAR_SZIP returns the value NF_NOERR if no errors occurred. Otherwise, the returned status indicates an error.

Possible return codes include:

NF_NOERR
No error.
NF_BADID
Bad ncid.
NF_ENOTNC4
Not a netCDF-4 file.
NF_ENOTVAR
Can't find this variable.

Example