Changeset 1170 for trunk/src


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

added line name to setRestFrequency

Location:
trunk/src
Files:
3 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;
  • trunk/src/Scantable.h

    r1111 r1170  
    161161        /**
    162162         * the @ref casa::MDirection for a specific row
    163          * @param[in] whichrow the row number 
     163         * @param[in] whichrow the row number
    164164         * return casa::MDirection
    165165         */
     
    176176         * set the direction type as a string, e.g. "J2000"
    177177         * @param[in] the direction type
    178          */     
     178         */
    179179  void setDirectionRefString(const std::string& refstr="");
    180180  /**
     
    187187         * return the direction string
    188188         */
    189  
     189
    190190
    191191  /**
     
    345345    { return moleculeTable_.getRestFrequencies(); }
    346346
    347   void setRestFrequencies(double rf, const std::string& = "Hz");
     347  void setRestFrequencies(double rf, const std::string& name = "",
     348                          const std::string& = "Hz");
    348349  void setRestFrequencies(const std::string& name);
    349350
  • trunk/src/ScantableWrapper.h

    r1111 r1170  
    146146    { table_->setSourceType(stype); }
    147147
    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); }
    150151/*
    151152  void setRestFrequencies(const std::string& name) {
Note: See TracChangeset for help on using the changeset viewer.