Ignore:
Timestamp:
07/08/09 11:22:27 (15 years ago)
Author:
Malte Marquarding
Message:

Ticket #170: added scantable.get_coordinate(row). Note that this in the specified reference frame NOT in the basese frame, e.g. usually LSRK/BARY not TOPO. That means that coord.to_frequency(coord.get_rerencepixel()) != coord.get_reference_value(). You need to run {{{freq_align to rectify this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1586 r1598  
    691691    specCol_.get(whichrow, arr);
    692692  } else {
    693     CountedPtr<STPol> stpol(STPol::getPolClass(Scantable::factories_, 
     693    CountedPtr<STPol> stpol(STPol::getPolClass(Scantable::factories_,
    694694                                               basetype));
    695695    uInt row = uInt(whichrow);
     
    875875    Double tm;
    876876    table_.keywordSet().get("UTC",tm);
    877     return MEpoch(MVEpoch(tm)); 
     877    return MEpoch(MVEpoch(tm));
    878878  }
    879879}
     
    882882{
    883883  return formatDirection(getDirection(uInt(whichrow)));
     884}
     885
     886
     887SpectralCoordinate Scantable::getSpectralCoordinate(int whichrow) const {
     888  const MPosition& mp = getAntennaPosition();
     889  const MDirection& md = getDirection(whichrow);
     890  const MEpoch& me = timeCol_(whichrow);
     891  Double rf = moleculeTable_.getRestFrequency(mmolidCol_(whichrow));
     892  return freqTable_.getSpectralCoordinate(md, mp, me, rf,
     893                                          mfreqidCol_(whichrow));
    884894}
    885895
     
    896906    return stlout;
    897907  }
    898 
    899   const MPosition& mp = getAntennaPosition();
    900   const MDirection& md = getDirection(whichrow);
    901   const MEpoch& me = timeCol_(whichrow);
    902   Double rf = moleculeTable_.getRestFrequency(mmolidCol_(whichrow));
    903   SpectralCoordinate spc =
    904     freqTable_.getSpectralCoordinate(md, mp, me, rf, mfreqidCol_(whichrow));
     908  SpectralCoordinate spc = getSpectralCoordinate(whichrow);
    905909  Vector<Double> pixel(nchan);
    906910  Vector<Double> world;
Note: See TracChangeset for help on using the changeset viewer.