Next: , Previous: NF90_DEF_VAR_DEFLATE, Up: Variables


6.9 Learn About Deflate Parameters for a Variable: NF90_INQ_VAR_DEFLATE

The function NF90_INQ_VAR_DEFLATE returns the deflate settings for a variable in a netCDF-4 file.

Usage

       function nf90_inq_var_deflate(ncid, varid, shuffle, deflate, deflate_level)
         integer, intent(in) :: ncid
         integer, intent(in) :: varid
         integer, intent(out) :: shuffle
         integer, intent(out) :: deflate
         integer, intent(out) :: deflate_level
         integer :: nf90_inq_var_deflate
NCID
NetCDF ID, from a previous call to NF90_OPEN or NF90_CREATE.
VARID
Variable ID.
SHUFFLE
NF90_INQ_VAR_DEFLATE will set this to a 1 if the shuffle filter is turned on for this variable, and a 0 otherwise.
DEFLATE
NF90_INQ_VAR_DEFLATE will set this to a 1 if the deflate filter is turned on for this variable, and a 0 otherwise.
DEFLATE_LEVEL
NF90_INQ_VAR_DEFLATE function will write the deflate_level here, if deflate is in use.

Errors

NF90_INQ_VAR_DEFLATE 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