code: def touvw(self, v):
          
          if is_measure(v) and v['type'] == 'baseline':
              m = _measures.uvw(self, v)
              m['xyz'] = dq.quantity(m['xyz'])
              m['dot'] = dq.quantity(m['dot'])
              return m
          else:
              raise TypeError('Illegal Baseline specified')
docs: Calculates a uvw measure from a baseline. The baseline can consist
          of a vector of actual baseline positions. Note that the baseline does
          not have to be a proper baseline, but can be a series of positions
          (to  call positions baselines see :meth:`asbaseline` ) for speed
          reasons: operations are linear and can be done on positions, which
          are converted to baseline values at the end (with :meth:`expand` ).
  
          Whatever the reference code of the baseline, the returned uvw will be
          given in J2000. If the dot argument is given, that variable will be
          filled with a quantity array consisting of the time derivative of the
          uvw (note that only the sidereal rate is taken into account; not
          precession, earth tides and similar variations, which are much
          smaller). If the xyz variable is given, it will be filled with the
          quantity values of the uvw measure.
  
          The values of the input baselines can be given as a quantity
          vector per x, y or z value.
  
          uvw coordinates are calculated for a certain direction in the sky
          hence the frame has to contain the direction for the calculation to
          work. Since the baseline and the sky rotate with respect of each
          other, the time should be specified as well.
  
          Example::
  
              >>> dm.do_frame(dm.observatory('atca'))
              >>> dm.do_frame(dm.source('1934-638'))
              >>> dm.do_frame(dm.epoch('utc', 'today'))
              >>> b = dm.baseline('itrf', '10m', '20m', '30m')