Changeset 773 for branches/Release12/src


Ignore:
Timestamp:
12/06/05 14:03:55 (19 years ago)
Author:
mar637
Message:

Request: added recalc_azel

Location:
branches/Release12/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/Release12/src/SDMemTable.cc

    r754 r773  
    16311631    mdr = MDirection::J2000;
    16321632    pushLog("WARNING: Unknown equinox using J2000");
    1633 
    16341633  }
    16351634
     
    18371836}
    18381837
     1838void 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  
    265265              const casa::Vector<casa::Int>& c);
    266266
     267
     268  void calculateAZEL();
    267269
    268270private:
  • branches/Release12/src/SDMemTableWrapper.h

    r745 r773  
    217217  }
    218218
     219  void calculateAZEL() { table_->calculateAZEL(); };
    219220
    220221private:
  • branches/Release12/src/python_SDMemTable.cc

    r745 r773  
    108108    .def("_addfit", &SDMemTableWrapper::addFit)
    109109    .def("_getfit", &SDMemTableWrapper::getSDFitTable)
     110    .def("_recalc_azel", &SDMemTableWrapper::calculateAZEL)
    110111  ;
    111112};
Note: See TracChangeset for help on using the changeset viewer.