|
|
|||
|
||||
Next: NF_INQ_VARID, Previous: NF_DEF_VAR_ENDIAN, Up: Variables
NF_INQ_VAR_ENDIANThe function NF_INQ_VAR_ENDIAN returns the endianness settings for a variable in a netCDF-4 file.
NF_INQ_VAR_ENDIAN(INTEGER NCID, INTEGER VARID, INTEGER ENDIAN)
NCIDVARIDENDIANNF_INQ_VAR_ENDIAN 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 from nf_test/ftst_vars.F, the endianness of a variable is checked to make sure it is NF_ENDIAN_BIG.
retval = nf_inq_var_endian(ncid, varid, endianness)
if (retval .ne. nf_noerr) call handle_err(retval)
if (endianness .ne. NF_ENDIAN_BIG) stop 2
| Contact Us Site Map Search Terms and Conditions Privacy Policy Participation Policy | |||||
|
|||||