Changeset 1598 for trunk/src/Scantable.cpp
- Timestamp:
- 07/08/09 11:22:27 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r1586 r1598 691 691 specCol_.get(whichrow, arr); 692 692 } else { 693 CountedPtr<STPol> stpol(STPol::getPolClass(Scantable::factories_, 693 CountedPtr<STPol> stpol(STPol::getPolClass(Scantable::factories_, 694 694 basetype)); 695 695 uInt row = uInt(whichrow); … … 875 875 Double tm; 876 876 table_.keywordSet().get("UTC",tm); 877 return MEpoch(MVEpoch(tm)); 877 return MEpoch(MVEpoch(tm)); 878 878 } 879 879 } … … 882 882 { 883 883 return formatDirection(getDirection(uInt(whichrow))); 884 } 885 886 887 SpectralCoordinate 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)); 884 894 } 885 895 … … 896 906 return stlout; 897 907 } 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); 905 909 Vector<Double> pixel(nchan); 906 910 Vector<Double> world;
Note: See TracChangeset
for help on using the changeset viewer.