fbinseqSwap2
Byte swaps Fortran sequential files (more memory friendly).
Prototype
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" procedure fbinseqSwap2 ( in_file [1] : string, out_file [1] : string, type [1] : string, dims [*] : integer ) return_val : file
Arguments
in_fileName of input file.
out_fileName of output file.
typeThe type of the data on in_file (e.g. "float")
dimsA one-dimensional array or equal to the dimensionality of the input data.
Description
Byte swaps Fortran sequential files. A more memory friendly version than fbinseqSwap1. It requires that all records in the file be the same type and dimension. The user must provide the dimensionality of each record, but not necessarily the number of records. If the wrong dimensions are input, the data will be distorted.
See Also
Examples
Example 1
In the following, N is record length [eg N=1000 , (/nlat,mlon/) ]
load $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
fbinseqSwap2("foo.input", "foo.output", "float", N)