|
User Documentation |
||||||||
| prev file | next file | |||||||||
| SUMMARY: fields | routine DETAILS: routine | |||||||||
./toolbox File chantofreq.pro
chantofreq |
function chantofreq(data, chans, [frame=string], [/rel], [true_frame=string]) |
Convert channel number to frequency (MHz) using the supplied data container. Optionally return the frequency in another reference frame. Optionally return the frequency relative to the reference channel.
| Parameters | |
|
data |
The spectrum data container to use to get the necessary header information. |
|
chans |
The channel numbers to convert, may be an array of values. |
| Keywords | |
|
frame |
The rest frame to convert to. Known rest frames are listed in freqtovel. Defaults to the frame given in the data.frequency_type. |
|
rel |
If set, return the frequency relative to the reference channel. |
|
true_frame |
The actual rest frame used in constructing the frequencies. The only way this will not equal the frame argument is if that argument was invalid. In that case, this keyword will be the same as the frame in data.frequency_type. |