KDISTERR Name
KDISTERR
Description
This function calculates the two kinematic distances, with errors,
for a given object whose velocity is known to some precision.
Category
coordinate systems
Calling Sequence
result=KDISTERR( l, vlow, vhigh, [/RADIANS, /SILENT])
Inputs
l: The galactic longitude of the source given in degrees (or
radians, if /RADIANS is set)
vlow: The lower bound for the radial velocity estimate, in km/s
vhigh: The uppper bound for the radial velocity estimate, in km/s
Keyword Parameters
RADIANS: If set, l is given in radians
SILENT: If set, textual summary of the results are suppressed
Outputs
A 4 element vector. The first and third elements give the near and
far kinematic distances in kpc, while the second and fourth give
error estimates. Procedure
This routine uses kdist.pro to do all of the work
Restrictions
This only works for objects with latitudes between 270 degrees and
90 degrees, for which there are two possible kinematic distances
Modification History
June 2008: Written by Chris Beaumont