Changeset 923 for trunk/src/Scantable.cpp
- Timestamp:
- 03/24/06 13:32:05 (18 years ago)
- File:
-
- 1 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);
Note: See TracChangeset
for help on using the changeset viewer.