Skip to main content

Reverse

Reverse [/DIM=d /P][typeFlags ] waveA [/D=destWaveA ] [, waveB [/D=destWaveB ] [,...]]

The Reverse operation reverses data in a wave along a specified dimension. It does not accept text waves.

Flags

/D = destWaveSpecifies the name of the wave to hold the reversed data. Creates destWave if it does not already exist or overwrites it if it exists. This flag must follow the source wave name.
/DIM = dSpecifies the wave dimension to reverse.
d =-1:Treats entire wave as 1D (default).
d >= 0:Operates along rows, columns, etc.
/PSuppresses adjustment of dimension scaling. Without /P the scaled dimension value of reversed points remains the same.

Type Flags (functions only)

Reverse also can use various type flags in user functions to specify the type of destination wave reference variables. These type flags do not need to be used except when it is necessary to match another wave reference variable of the same name or to tell Igor what kind of expression to compile for a wave assignment. See WAVE Reference Types and WAVE Reference Type Flags for a complete list of type flags and further details.

Details

If the optional /D=destWave flag is omitted, then the wave is reversed in place.

See Also

Sorting, Sort, SortColumns