|
|
|||
|
||||
Next: NF90_INQ_VAR_ENDIAN, Previous: NF90_INQ_VAR_FLETCHER32, Up: Variables
NF90_DEF_VAR_ENDIANThe function NF90_DEF_VAR_ENDIAN sets the endianness for a variable in a netCDF-4 file.
This function must be called after the variable is defined, but before NF90_ENDDEF is called.
By default, netCDF-4 variables are in native endianness. That is, they are big-endian on a big-endian machine, and little-endian on a little endian machine.
In some cases a user might wish to change from native endianness to either big or little-endianness. This function allows them to do that.
function nf90_def_var_endian(ncid, varid, endian)
integer, intent(in) :: ncid
integer, intent(in) :: varid
integer, intent(in) :: endian
integer :: nf90_def_var_endian
NCIDVARIDENDIANNF90_DEF_VAR_ENDIAN returns the value NF90_NOERR if no errors occurred. Otherwise, the returned status indicates an error.
Possible return codes include:
NF90_NOERRNF90_BADIDNF90_ENOTNC4NF90_ENOTVARNF90_ELATEDEFNF90_ENOTINDEFINENF90_EPERM| Contact Us Site Map Search Terms and Conditions Privacy Policy Participation Policy | ||||||
|
||||||