|
User Documentation |
||||||||
| prev file | next file | |||||||||
| SUMMARY: fields | routine DETAILS: routine | |||||||||
./toolbox File veltochan.pro
veltochan |
function veltochan(data, vels, [frame=string], [/rel], [veldef=string]) |
Convert velocity (m/s) to channel number using the supplied data container. The velocity's frame and definition can also be supplied. The velocity can be expressed relative to the reference channel.
| Parameters | |
|
data |
The spectrum data container to use to get the necessary header information. |
|
vels |
The velocities (m/s) to convert, may be an array of values. |
| Keywords | |
|
frame |
The rest frame that the velocities are in. Known rest frames are listed in freqtovel. Defaults to the frame given in data.velocity_definition. |
|
rel |
If set, the velocities are given relative to the reference channel. |
|
veldef |
The velocity definition in use from RADIO, OPTICAL, or TRUE. Defaults to the value found in data.velocity_definition. |