|
User Documentation |
|||||||||
| prev file | next file | ||||||||||
| SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox veltochan.pro
| veltochan |
function veltochan(data, vels, [frame=string], [veldef=string]) |
Convert velocity (m/s) to channel number using the supplied data container. The velocity's frame and definition can also be supplied.
| 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 frame_velocity. Defaults to the frame given in data.velocity_definition. |
|
veldef |
The velocity definition in use from RADIO, OPTICAL, or TRUE. Defaults to the value found in data.velocity_definition. |