- Timestamp:
- 12/07/05 14:11:34 (19 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMemTable.cc
r754 r777 1631 1631 mdr = MDirection::J2000; 1632 1632 pushLog("WARNING: Unknown equinox using J2000"); 1633 1634 1633 } 1635 1634 … … 1837 1836 } 1838 1837 1838 void SDMemTable::calculateAZEL() 1839 { 1840 MPosition mp = getAntennaPosition(); 1841 1842 for (uInt i=0; i<nRow();++i) { 1843 MEpoch me = getEpoch(i); 1844 MDirection md = getDirection(i,False); 1845 MeasFrame frame(mp, me); 1846 Vector<Double> azel = 1847 MDirection::Convert(md, MDirection::Ref(MDirection::AZEL, 1848 frame) 1849 )().getAngle("rad").getValue(); 1850 azCol_.put(i,azel[0]); 1851 elCol_.put(i,azel[1]); 1852 } 1853 } -
trunk/src/SDMemTable.h
r745 r777 265 265 const casa::Vector<casa::Int>& c); 266 266 267 268 void calculateAZEL(); 267 269 268 270 private: -
trunk/src/SDMemTableWrapper.h
r745 r777 217 217 } 218 218 219 void calculateAZEL() { table_->calculateAZEL(); }; 219 220 220 221 private: -
trunk/src/python_SDMemTable.cc
r745 r777 108 108 .def("_addfit", &SDMemTableWrapper::addFit) 109 109 .def("_getfit", &SDMemTableWrapper::getSDFitTable) 110 .def("_recalc_azel", &SDMemTableWrapper::calculateAZEL) 110 111 ; 111 112 };
Note:
See TracChangeset
for help on using the changeset viewer.