Produced by IDL 6.1
User Documentation

./toolbox
File chantovel.pro

Last modification date:
Tue Nov 30 10:42:58 2004


chantovel

function chantovel(data, chans, [frame=string], [/rel], [veldef=string], [true_frame=string], [true_veldef=string])

Convert channel number to velcity (m/s) using the supplied data container. Optionally return the velocity in another reference frame. Optionally return the velocity relative to the reference channel.

Returns
velocity (m/s) (absolute or relative)
Uses
data_valid decode_veldef chantofreq freqtovel
Version
$Id: chantovel.pro,v 1.1 2004/11/30 15:42:58 bgarwood Exp $

Parameters
data
in, required
spectrum
The spectrum data container to use to get the necessary header information.
chans
in, required
The channel numbers to convert, may be an array of values.

Keywords
frame
in, optional
string
The rest frame to convert to. Known rest frames are listed in freqtovel. Defaults to the frame given in data.velocity_definition.
rel
in, optional
boolean
If set, return the velocity relative to the velocity at the reference channel.
veldef
in, optional
string
The velocity definition to use from RADIO, OPTICAL, or TRUE. Defaults to value found in data.velocity_definition.
true_frame
out, optional
string
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
out, optional
string
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.


Produced by IDLdoc 1.5 on Wed Dec 8 13:08:15 2004