|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox freqtochan.pro
freqtochan |
function freqtochan(data, freqs, [frame=string], [true_frame=variable]) |
Convert frequency (MHz) channel number using the supplied data container. The frequency may be expressed in another reference frame.
Parameters | |
data |
The spectrum data container to use to get the necessary header information. |
freqs |
The frequencies to convert (MHz), may be an array of values. |
Keywords | |
frame |
The rest frame that the frequencies are in. Known rest frames are listed in frame_velocity. Defaults to the frame given in the data container. |
true_frame |
The actual rest frame used in converting 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. |