|
Developer Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox chantofreq.pro
chantofreq |
function chantofreq(data, chans, [frame=string], [true_frame=variable]) |
Convert channel number to frequency (Hz) using the supplied data container. Optionally return the frequency in another reference frame
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 frame_velocity.html. Defaults to the frame given in the data.frequency_type. |
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. |