Changeset 1170
- Timestamp:
- 08/22/06 13:33:18 (18 years ago)
- Location:
- trunk/src
- Files:
-
- 3 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; -
trunk/src/Scantable.h
r1111 r1170 161 161 /** 162 162 * the @ref casa::MDirection for a specific row 163 * @param[in] whichrow the row number 163 * @param[in] whichrow the row number 164 164 * return casa::MDirection 165 165 */ … … 176 176 * set the direction type as a string, e.g. "J2000" 177 177 * @param[in] the direction type 178 */ 178 */ 179 179 void setDirectionRefString(const std::string& refstr=""); 180 180 /** … … 187 187 * return the direction string 188 188 */ 189 189 190 190 191 191 /** … … 345 345 { return moleculeTable_.getRestFrequencies(); } 346 346 347 void setRestFrequencies(double rf, const std::string& = "Hz"); 347 void setRestFrequencies(double rf, const std::string& name = "", 348 const std::string& = "Hz"); 348 349 void setRestFrequencies(const std::string& name); 349 350 -
trunk/src/ScantableWrapper.h
r1111 r1170 146 146 { table_->setSourceType(stype); } 147 147 148 void setRestFrequencies(double rf, const std::string& unit) 149 { table_->setRestFrequencies(rf, unit); } 148 void setRestFrequencies(double rf, const std::string& name, 149 const std::string& unit) 150 { table_->setRestFrequencies(rf, name, unit); } 150 151 /* 151 152 void setRestFrequencies(const std::string& name) {
Note:
See TracChangeset
for help on using the changeset viewer.