cdforder −− changes the order of dimensions in a candis file
cdforder [index_field_1 index_field_2 ...]
Cdforder expects a candis file on the standard input. A modified file is sent to the standard output with elements in multi−dimensional fields reordered to conform to the order of index fields listed on the command line. The order of occurence of index fields in the header is also changed to conform to this ordering, as is the order of dimensions in the header description of multi−dimensional fields.
If no index fields are specified, then the order of all index fields is reversed.
kestrel%cdforder z y x < input_file > output_file
Suppose that the input_file had index fields x, y, and z. cdforder would reorder the elements of all fields to conform with dimensions appearing in the order z, y, and x.