|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide invert.pro
invert |
procedure invert, [buffer=integer] |
Flip the data end-to-end in the indicated buffer in the global data containers.
For line data the value of frequency_increment and reference_channel are also changed appropriately so that, as displayed, there will be no change in appearance. This is useful if you need to combine (e.g. average) two data containers where the frequency increments have opposite signs.
For continuum data (where the need to invert is less obvious), all of the time-dependent arrays are also flipped (utc, mjd, etc).
The invert is done in place. Use dcinvert to flip a data container that is not one of the global data containers.
Note that when displayed, this will only be noticable when the x-axis is channels. The velocity and frequency axes always increases from left to right, independent of the actual channel increment from low channel number to high channel number.
invert ; invert buffer 0 invert, buffer=10 ; invert buffer 10
Keywords | |
buffer |
guide data container to use. Defaults to buffer 0. |