- Timestamp:
- 03/24/06 13:32:05 (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r915 r923 218 218 // writing create the measure column 219 219 mdirCol.write(td); 220 td.addColumn(ScalarColumnDesc< Double>("AZIMUTH"));221 td.addColumn(ScalarColumnDesc< Double>("ELEVATION"));220 td.addColumn(ScalarColumnDesc<Float>("AZIMUTH")); 221 td.addColumn(ScalarColumnDesc<Float>("ELEVATION")); 222 222 td.addColumn(ScalarColumnDesc<Float>("PARANGLE")); 223 223 … … 518 518 if ( t.nrow() == 0 ) return 0; 519 519 ROArrayColumn<Float> v(t, "SPECTRA"); 520 return v (0).nelements();520 return v.shape(0)(0); 521 521 } 522 522 return 0; 523 523 } 524 524 525 int Scantable::getChannels(int whichrow) const 526 { 527 return specCol_.shape(whichrow)(0); 528 } 525 529 526 530 int Scantable::getBeam(int whichrow) const … … 569 573 frame) 570 574 )().getAngle("rad").getValue(); 571 azCol_.put(i, azel[0]);572 elCol_.put(i, azel[1]);575 azCol_.put(i,Float(azel[0])); 576 elCol_.put(i,Float(azel[1])); 573 577 oss << "azel: " << azel[0]/C::pi*180.0 << " " 574 578 << azel[1]/C::pi*180.0 << " (deg)" << endl; … … 768 772 const TableRecord& irec = irow.get(0); 769 773 oss << std::right <<setw(8) << "" << std::left << irec.asuInt("IFNO"); 770 oss << frequencies().print(irec.asuInt("FREQ_ID")) ;774 oss << frequencies().print(irec.asuInt("FREQ_ID")) << irec.asuInt("MOLECULE_ID"); 771 775 772 776 ++iiter; … … 856 860 void asap::Scantable::setRestFrequencies( double rf, const std::string& unit ) 857 861 { 858 ///@todo lookup in line table 862 ///@todo lookup in line table to fill in name and formattedname 859 863 Unit u(unit); 860 864 Quantum<Double> urf(rf, u); -
trunk/src/Scantable.h
r915 r923 233 233 int getCycle(int whichrow) const { return cycleCol_(whichrow); } 234 234 int getScan(int whichrow) const { return scanCol_(whichrow); } 235 int getChannels(int whichrow) const; 235 236 236 237 double getInterval(int whichrow) const … … 379 380 casa::MDirection::ScalarColumn dirCol_; 380 381 casa::MEpoch::ScalarColumn timeCol_; 381 casa::ScalarColumn<casa:: Double> azCol_;382 casa::ScalarColumn<casa:: Double> elCol_;382 casa::ScalarColumn<casa::Float> azCol_; 383 casa::ScalarColumn<casa::Float> elCol_; 383 384 casa::ScalarColumn<casa::Float> paraCol_; 384 385 casa::ScalarColumn<casa::String> srcnCol_, fldnCol_;
Note:
See TracChangeset
for help on using the changeset viewer.