Changeset 773 for branches/Release12
- Timestamp:
- 12/06/05 14:03:55 (19 years ago)
- Location:
- branches/Release12
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release12/python/__init__.py
r737 r773 268 268 269 269 __date__ = '$Date$'.split()[1] 270 __version__ = '1.2 '270 __version__ = '1.2.1' 271 271 272 272 if rcParams['verbose']: … … 340 340 poly_baseline - fit a polynomial baseline to all Beams/IFs/Pols 341 341 auto_poly_baseline - automatically fit a polynomial baseline 342 recalc_azel - recalculate azimuth and elevation based on 343 the pointing 342 344 gain_el - apply gain-elevation correction 343 345 opacity - apply opacity correction -
branches/Release12/python/scantable.py
r760 r773 1372 1372 else: raise 1373 1373 1374 def recalc_azel(self): 1375 varlist = vars() 1376 """ 1377 Recalculate the azimuth and elevation for each position. 1378 Parameters: 1379 none 1380 Example: 1381 """ 1382 self._recalc_azel() 1383 self._add_history("recalc_azel", varlist) 1384 return 1385 1374 1386 def __add__(self, other): 1375 1387 varlist = vars() … … 1386 1398 print_log() 1387 1399 return s 1388 1389 1400 1390 1401 def __sub__(self, other): -
branches/Release12/src/SDMemTable.cc
r754 r773 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 } -
branches/Release12/src/SDMemTable.h
r745 r773 265 265 const casa::Vector<casa::Int>& c); 266 266 267 268 void calculateAZEL(); 267 269 268 270 private: -
branches/Release12/src/SDMemTableWrapper.h
r745 r773 217 217 } 218 218 219 void calculateAZEL() { table_->calculateAZEL(); }; 219 220 220 221 private: -
branches/Release12/src/python_SDMemTable.cc
r745 r773 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.