Ignore:
Timestamp:
08/22/06 13:33:18 (18 years ago)
Author:
mar637
Message:

added line name to setRestFrequency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1148 r1170  
    934934  Unit u = Unit(freqTable_.getUnitString());
    935935  if (u == Unit("km/s")) {
    936     s = CoordinateUtil::axisLabel(spc,0,True,True,True);
     936    s = CoordinateUtil::axisLabel(spc, 0, True,True,  True);
    937937  } else if (u == Unit("Hz")) {
    938938    Vector<String> wau(1);wau = u.getName();
    939939    spc.setWorldAxisUnits(wau);
    940     s = CoordinateUtil::axisLabel(spc,0,True,True,False);
     940    s = CoordinateUtil::axisLabel(spc, 0, True, True, False);
    941941  }
    942942  return s;
     
    944944}
    945945
    946 void asap::Scantable::setRestFrequencies( double rf, const std::string& unit )
     946void asap::Scantable::setRestFrequencies( double rf, const std::string& name,
     947                                          const std::string& unit )
    947948{
    948949  ///@todo lookup in line table to fill in name and formattedname
    949950  Unit u(unit);
    950951  Quantum<Double> urf(rf, u);
    951   uInt id = moleculeTable_.addEntry(urf.getValue("Hz"), "", "");
     952  uInt id = moleculeTable_.addEntry(urf.getValue("Hz"), name, "");
    952953  TableVector<uInt> tabvec(table_, "MOLECULE_ID");
    953954  tabvec = id;
Note: See TracChangeset for help on using the changeset viewer.