Changeset 1757 for branches/alma/src/Scantable.h
- Timestamp:
- 06/09/10 19:03:06 (14 years ago)
- Location:
- branches/alma
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma
-
Property
svn:ignore
set to
.sconf_temp
.sconsign.dblite
-
Property
svn:mergeinfo
set to
/branches/asap-3.x merged eligible
-
Property
svn:ignore
set to
-
branches/alma/src/Scantable.h
r1707 r1757 22 22 #include <casa/Utilities/CountedPtr.h> 23 23 24 #include <casa/Exceptions/Error.h>25 26 #include <coordinates/Coordinates/SpectralCoordinate.h>27 28 24 #include <tables/Tables/Table.h> 29 25 #include <tables/Tables/ArrayColumn.h> … … 32 28 #include <measures/TableMeasures/ScalarMeasColumn.h> 33 29 30 #include <coordinates/Coordinates/SpectralCoordinate.h> 31 34 32 #include <casa/Arrays/Vector.h> 35 33 #include <casa/Quanta/Quantum.h> 34 35 #include <casa/Exceptions/Error.h> 36 36 37 37 #include "Logger.h" … … 173 173 */ 174 174 casa::MDirection getDirection( int whichrow ) const; 175 175 176 176 /** 177 177 * get the direction type as a string, e.g. "J2000" … … 191 191 * @return a string describing the direction reference 192 192 */ 193 std::string getDirectionRefString() const; 193 std::string getDirectionRefString() const; 194 194 195 195 /** … … 298 298 299 299 int getBeam(int whichrow) const; 300 std::vector<uint> getBeamNos() { return getNumbers(beamCol_); }300 std::vector<uint> getBeamNos() const { return getNumbers(beamCol_); } 301 301 302 302 int getIF(int whichrow) const; 303 std::vector<uint> getIFNos() { return getNumbers(ifCol_); }303 std::vector<uint> getIFNos() const { return getNumbers(ifCol_); } 304 304 305 305 int getPol(int whichrow) const; 306 std::vector<uint> getPolNos() { return getNumbers(polCol_); }307 308 std::vector<uint> getScanNos() { return getNumbers(scanCol_); }306 std::vector<uint> getPolNos() const { return getNumbers(polCol_); } 307 308 std::vector<uint> getScanNos() const { return getNumbers(scanCol_); } 309 309 int getScan(int whichrow) const { return scanCol_(whichrow); } 310 310 … … 335 335 { return azCol_(whichrow); } 336 336 float getParAngle(int whichrow) const 337 { return paraCol_(whichrow); }337 { return focus().getParAngle(mfocusidCol_(whichrow)); } 338 338 int getTcalId(int whichrow) const 339 339 { return mtcalidCol_(whichrow); } … … 384 384 385 385 std::vector<double> getAbcissa(int whichrow) const; 386 387 std::vector<float> getWeather(int whichrow) const; 386 388 387 389 std::string getAbcissaLabel(int whichrow) const; … … 408 410 409 411 void shift(int npix); 412 413 casa::SpectralCoordinate getSpectralCoordinate(int whichrow) const; 410 414 411 415 void convertDirection(const std::string& newframe); … … 443 447 * against the information found in GBT_GO table for 444 448 * scan number orders to get correct pairs. 445 * @param[in] scan list 446 * @return status 449 * @param[in] scan list 450 * @return status 447 451 */ 448 452 int checkScanInfo(const std::vector<int>& scanlist) const; 449 453 450 454 /** 451 * Get the direction as a vector, for a specific row 455 * Get the direction as a vector, for a specific row 452 456 * @param[in] whichrow the row numbyyer 453 * @return the direction in a vector 457 * @return the direction in a vector 454 458 */ 455 459 std::vector<double> getDirectionVector(int whichrow) const; 460 461 /** 462 * Set a flag indicating whether the data was parallactified 463 * @param[in] flag true or false 464 */ 465 void parallactify(bool flag) 466 { focus().setParallactify(flag); } 456 467 457 468 /** … … 523 534 int rowToScanIndex(int therow); 524 535 525 std::vector<uint> getNumbers(c asa::ScalarColumn<casa::uInt>& col);526 527 static const casa::uInt version_ = 2;536 std::vector<uint> getNumbers(const casa::ScalarColumn<casa::uInt>& col) const; 537 538 static const casa::uInt version_ = 3; 528 539 529 540 STSelector selector_; … … 549 560 casa::ScalarColumn<casa::Float> azCol_; 550 561 casa::ScalarColumn<casa::Float> elCol_; 551 casa::ScalarColumn<casa::Float> paraCol_;552 562 casa::ScalarColumn<casa::String> srcnCol_, fldnCol_; 553 563 casa::ScalarColumn<casa::uInt> scanCol_, beamCol_, ifCol_, polCol_, cycleCol_, flagrowCol_;
Note: See TracChangeset
for help on using the changeset viewer.