- Timestamp:
- 04/28/10 21:44:09 (15 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r1728 r1730 279 279 rbeamCol_.attach(table_, "REFBEAMNO"); 280 280 281 mweatheridCol_.attach(table_,"WEATHER_ID"); 281 282 mfitidCol_.attach(table_,"FIT_ID"); 282 283 mfreqidCol_.attach(table_, "FREQ_ID"); … … 434 435 Table tab = table_.copyToMemoryTable(generateName()); 435 436 tab.deepCopy(inname, Table::New); 437 tab.markForDelete(); 438 436 439 } else { 437 440 table_.deepCopy(inname, Table::New); … … 1056 1059 } 1057 1060 1058 std::string asap::Scantable::getAntennaName() const1061 std::string Scantable::getAntennaName() const 1059 1062 { 1060 1063 String out; … … 1063 1066 } 1064 1067 1065 int asap::Scantable::checkScanInfo(const std::vector<int>& scanlist) const1068 int Scantable::checkScanInfo(const std::vector<int>& scanlist) const 1066 1069 { 1067 1070 String tbpath; … … 1131 1134 } 1132 1135 1133 std::vector<double> asap::Scantable::getDirectionVector(int whichrow) const1136 std::vector<double> Scantable::getDirectionVector(int whichrow) const 1134 1137 { 1135 1138 Vector<Double> Dir = dirCol_(whichrow).getAngle("rad").getValue(); … … 1139 1142 } 1140 1143 1144 std::vector<float> Scantable::getWeather(int whichrow) const 1145 { 1146 std::vector<float> out(5); 1147 //Float temperature, pressure, humidity, windspeed, windaz; 1148 weatherTable_.getEntry(out[0], out[1], out[2], out[3], out[4], 1149 mweatheridCol_(uInt(whichrow))); 1150 1151 1152 return out; 1153 } 1154 1141 1155 } 1142 1156 //namespace asap -
trunk/src/Scantable.h
r1727 r1730 348 348 std::vector<double> getAbcissa(int whichrow) const; 349 349 350 std::vector<float> getWeather(int whichrow) const; 351 350 352 std::string getAbcissaLabel(int whichrow) const; 351 353 std::vector<double> getRestFrequencies() const -
trunk/src/ScantableWrapper.h
r1598 r1730 210 210 { return table_->checkScanInfo(scanlist); } 211 211 212 std::vector<double> 212 std::vector<double> getDirectionVector(int whichrow) const 213 213 { return table_->getDirectionVector(whichrow); } 214 214 … … 219 219 return STCoordinate(table_->getSpectralCoordinate(row)); 220 220 } 221 222 std::vector<float> getWeather(int whichrow) const 223 { return table_->getWeather(whichrow); } 221 224 222 225 private: -
trunk/src/python_Scantable.cpp
r1598 r1730 126 126 .def("_parallactify", &ScantableWrapper::parallactify) 127 127 .def("get_coordinate", &ScantableWrapper::getCoordinate) 128 .def("_get_weather", &ScantableWrapper::getWeather) 128 129 ; 129 130 };
Note:
See TracChangeset
for help on using the changeset viewer.