Changeset 1598
- Timestamp:
- 07/08/09 11:22:27 (15 years ago)
- Location:
- trunk/src
- Files:
-
- 6 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; -
trunk/src/Scantable.h
r1586 r1598 27 27 28 28 #include <measures/TableMeasures/ScalarMeasColumn.h> 29 30 #include <coordinates/Coordinates/SpectralCoordinate.h> 29 31 30 32 #include "Logger.h" … … 166 168 */ 167 169 casa::MDirection getDirection( int whichrow ) const; 168 170 169 171 /** 170 172 * get the direction type as a string, e.g. "J2000" … … 184 186 * @return a string describing the direction reference 185 187 */ 186 std::string getDirectionRefString() const; 188 std::string getDirectionRefString() const; 187 189 188 190 /** … … 355 357 356 358 void shift(int npix); 359 360 casa::SpectralCoordinate getSpectralCoordinate(int whichrow) const; 357 361 358 362 void convertDirection(const std::string& newframe); … … 406 410 * @param[in] flag true or false 407 411 */ 408 void parallactify(bool flag) 412 void parallactify(bool flag) 409 413 {focus().setParallactify(flag);} 410 414 private: -
trunk/src/ScantableWrapper.h
r1586 r1598 20 20 #include "STFit.h" 21 21 #include "Scantable.h" 22 #include "STCoordinate.h" 22 23 23 24 namespace asap { … … 215 216 { table_->parallactify(flag); } 216 217 218 STCoordinate getCoordinate(int row) { 219 return STCoordinate(table_->getSpectralCoordinate(row)); 220 } 221 217 222 private: 218 223 casa::CountedPtr<Scantable> table_; … … 221 226 } // namespace 222 227 #endif 223 -
trunk/src/python_Scantable.cpp
r1586 r1598 125 125 .def("_getdirectionvec", &ScantableWrapper::getDirectionVector) 126 126 .def("_parallactify", &ScantableWrapper::parallactify) 127 .def("get_coordinate", &ScantableWrapper::getCoordinate) 127 128 ; 128 129 }; -
trunk/src/python_asap.cpp
r1501 r1598 75 75 asap::python::python_LineCatalog(); 76 76 asap::python::python_Logger(); 77 asap::python::python_STCoordinate(); 77 78 78 79 #ifndef HAVE_LIBPYRAP -
trunk/src/python_asap.h
r1126 r1598 47 47 void python_LineCatalog(); 48 48 void python_Logger(); 49 void python_STCoordinate(); 49 50 50 51 } // python
Note:
See TracChangeset
for help on using the changeset viewer.