Changeset 1170 for trunk/src/Scantable.cpp
- Timestamp:
- 08/22/06 13:33:18 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r1148 r1170 934 934 Unit u = Unit(freqTable_.getUnitString()); 935 935 if (u == Unit("km/s")) { 936 s = CoordinateUtil::axisLabel(spc, 0,True,True,True);936 s = CoordinateUtil::axisLabel(spc, 0, True,True, True); 937 937 } else if (u == Unit("Hz")) { 938 938 Vector<String> wau(1);wau = u.getName(); 939 939 spc.setWorldAxisUnits(wau); 940 s = CoordinateUtil::axisLabel(spc, 0,True,True,False);940 s = CoordinateUtil::axisLabel(spc, 0, True, True, False); 941 941 } 942 942 return s; … … 944 944 } 945 945 946 void asap::Scantable::setRestFrequencies( double rf, const std::string& unit ) 946 void asap::Scantable::setRestFrequencies( double rf, const std::string& name, 947 const std::string& unit ) 947 948 { 948 949 ///@todo lookup in line table to fill in name and formattedname 949 950 Unit u(unit); 950 951 Quantum<Double> urf(rf, u); 951 uInt id = moleculeTable_.addEntry(urf.getValue("Hz"), "", "");952 uInt id = moleculeTable_.addEntry(urf.getValue("Hz"), name, ""); 952 953 TableVector<uInt> tabvec(table_, "MOLECULE_ID"); 953 954 tabvec = id;
Note: See TracChangeset
for help on using the changeset viewer.