|
|
|||
|
||||
Next: NF_DEF_VAR_FLETCHER32, Previous: NF_DEF_VAR_DEFLATE, Up: Variables
NF_INQ_VAR_DEFLATEThe function NF_INQ_VAR_DEFLATE returns the deflate settings for a variable in a netCDF-4 file.
It is not necessary to know the deflate settings to read the variable. (Deflate is completely transparent to readers of the data).
NF_INQ_VAR_DEFLATE(INTEGER NCID, INTEGER VARID, INTEGER SHUFFLE,
INTEGER DEFLATE, INTEGER DEFLATE_LEVEL);
NCIDVARIDSHUFFLEDEFLATEDEFLATE_LEVELNF_INQ_VAR_DEFLATE returns the value NF_NOERR if no errors occurred. Otherwise, the returned status indicates an error.
Possible return codes include:
NF_NOERRNF_BADIDNF_ENOTNC4NF_ENOTVARIn this example code from nf_test/ftst_vars.F, a file with a variable using deflate is opened, and the deflate level checked.
C Is everything set that is supposed to be?
retval = nf_inq_var_deflate(ncid, varid, shuffle, deflate,
+ deflate_level)
if (retval .ne. nf_noerr) call handle_err(retval)
if (shuffle .ne. 0 .or. deflate .ne. 1 .or.
+ deflate_level .ne. 4) stop 2
| Contact Us Site Map Search Terms and Conditions Privacy Policy Participation Policy | |||||
|
|||||