|
|
|||
|
||||
Next: nc_inq_var_endian, Previous: nc_inq_var_fletcher32, Up: Variables
nc_def_var_endianThe function nc_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 nc_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.
nc_def_var_endian(int ncid, int varid, int endian);
ncidvaridendiannc_def_var_endian returns the value NC_NOERR if no errors occurred. Otherwise, the returned status indicates an error.
Possible return codes include:
NC_NOERRNC_BADIDNC_ENOTNC4NC_ENOTVARNC_ELATEDEFNC_ENOTINDEFINENC_EPERM| Contact Us Site Map Search Terms and Conditions Privacy Policy Participation Policy | |||||
|
|||||