Changeset 787 for branches/Release12/src


Ignore:
Timestamp:
12/08/05 13:58:59 (19 years ago)
Author:
phi196
Message:

Added get_elevation, azimuth and parangle

Location:
branches/Release12/src
Files:
4 edited

Legend:

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

    r779 r787  
    244244  srcnCol_.get(whichRow, name);
    245245  return name;
     246}
     247
     248float SDMemTable::getElevation(Int whichRow) const
     249{
     250  float elevation;
     251  elCol_.get(whichRow, elevation);
     252  return elevation;
     253}
     254
     255float SDMemTable::getAzimuth(Int whichRow) const
     256{
     257  float azimuth;
     258  azCol_.get(whichRow, azimuth);
     259  return azimuth;
     260}
     261
     262float SDMemTable::getParAngle(Int whichRow) const
     263{
     264  float parangle;
     265  paraCol_.get(whichRow, parangle);
     266  return parangle;
    246267}
    247268
  • branches/Release12/src/SDMemTable.h

    r773 r787  
    147147
    148148  std::string getSourceName(casa::Int whichRow=0) const;
     149
     150  float getElevation(casa::Int whichRow=0) const;
     151  float getAzimuth(casa::Int whichRow=0) const;
     152  float getParAngle(casa::Int whichRow=0) const;
     153
    149154  double getInterval(casa::Int whichRow=0) const;
    150155
  • branches/Release12/src/SDMemTableWrapper.h

    r773 r787  
    136136  std::string getSourceName(int whichRow=0) {
    137137    return table_->getSourceName(whichRow);
     138  }
     139
     140  float getElevation(int whichRow=0) {
     141    return table_->getElevation(whichRow);
     142  }
     143  float getAzimuth(int whichRow=0) {
     144    return table_->getAzimuth(whichRow);
     145  }
     146  float getParAngle(int whichRow=0) {
     147    return table_->getParAngle(whichRow);
    138148  }
    139149
  • branches/Release12/src/python_SDMemTable.cc

    r773 r787  
    9393    .def("_getsourcename", &SDMemTableWrapper::getSourceName,
    9494         (boost::python::arg("whichRow")=0) )
     95    .def("_getelevation", &SDMemTableWrapper::getElevation,
     96         (boost::python::arg("whichRow")=0) )
     97    .def("_getazimuth", &SDMemTableWrapper::getAzimuth,
     98         (boost::python::arg("whichRow")=0) )
     99    .def("_getparangle", &SDMemTableWrapper::getParAngle,
     100         (boost::python::arg("whichRow")=0) )
    95101    .def("_gettime", &SDMemTableWrapper::getTime,
    96102         (boost::python::arg("whichRow")=0) )
Note: See TracChangeset for help on using the changeset viewer.