
NCL Home >
Documentation >
Functions >
File I/O
fbindirSwap
Reads byte-reversed data and writes output file that can be read by fbindirread or cbinread (deprecated).
Prototype
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" ; This library is automatically loaded ; from NCL V6.2.0 onward. ; No need for user to explicitly load. procedure fbindirSwap ( in_file [1] : string, dims [*] : integer, type [1] : string, out_file [1] : string )
Arguments
in_fileName of input file.
dimsA one-dimensional array or equal to the dimensionality of the input data.
typeThe type of the data in in_file (e.g. "float")
out_fileName of output file.
Description
Note: this function is deprecated. You can now use the "ReadByteOrder" and "WriteByteOrder" options in setfileoption to indicate how the various NCL binary read/write functions should read and write files.
This procedure reads byte-reversed data and writes output file that can be read by fbindirread or cbinread.
See Also
setfileoption, fbindirread, cbinread, fbinseqSwap1, fbinseqSwap2