|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox chantovel.pro
chantovel |
function chantovel(data, chans, [frame=string], [veldef=string], [true_frame=variable], [true_veldef=variable]) |
Convert channel number to velcity (m/s) using the supplied data container. Optionally return the velocity 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. Defaults to the frame given in data.velocity_definition. |
veldef |
The velocity definition to use from RADIO, OPTICAL, or TRUE. Defaults to value found in data.velocity_definition. |
true_frame |
The actual rest frame used in constructing the velocity axis. 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.velocity_definition. |
true_veldef |
The actual velocity frame used in constructing the velocity axis. 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 data.velocity_definition. |