Changeset 941


Ignore:
Timestamp:
03/30/06 15:35:29 (19 years ago)
Author:
mar637
Message:

fixed the output alignment of summary

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFrequencies.cpp

    r921 r941  
    7575  table_.rwKeywordSet().define("BASEFRAME", String("TOPO"));
    7676  table_.rwKeywordSet().define("EQUINOX",String( "J2000"));
    77   table_.rwKeywordSet().define("UNIT", String("Hz"));
     77  table_.rwKeywordSet().define("UNIT", String(""));
    7878  table_.rwKeywordSet().define("DOPPLER", String("RADIO"));
    7979
     
    286286    oss <<  setw(8)
    287287    << t.keywordSet().asString("FRAME") << setw(16) << setprecision(8)
    288     << rec.asDouble("REFVAL") << setw(10)
     288    << rec.asDouble("REFVAL") << setw(7)
    289289    << rec.asDouble("REFPIX") << setw(12)
    290290    << rec.asDouble("INCREMENT") << endl;
  • trunk/src/Scantable.cpp

    r933 r941  
    167167Scantable::~Scantable()
    168168{
    169   cout << "~Scantable() " << this << endl;
     169  //cout << "~Scantable() " << this << endl;
    170170}
    171171
     
    714714  table_.keywordSet().get("FluxUnit", tmp);
    715715  oss << setw(15) << "Flux Unit:" << tmp << endl;
    716   Vector<Float> vec;
     716  Vector<Double> vec(moleculeTable_.getRestFrequencies());
    717717  oss << setw(15) << "Rest Freqs:";
    718718  if (vec.nelements() > 0) {
     
    721721      oss << "none" << endl;
    722722  }
    723   oss << setw(15) << "Abcissa:" << "channel" << endl;
     723
     724  oss << setw(15) << "Abcissa:" << getAbcissaLabel(0) << endl;
    724725  oss << selector_.print() << endl;
    725726  oss << endl;
     
    728729                  + MDirection::showType(dirCol_.getMeasRef().getType())
    729730                  + ")";
    730   oss << setw(5) << "Scan"
    731       << setw(15) << "Source"
    732 //      << setw(24) << dirtype
    733       << setw(10) << "Time"
    734       << setw(18) << "Integration" << endl
    735       << setw(5) << "" << setw(10) << "Beam" << dirtype << endl
    736       << setw(15) << "" << setw(5) << "IF"
     731  oss << setw(5) << "Scan" << setw(15) << "Source"
     732      << setw(10) << "Time" << setw(18) << "Integration" << endl;
     733  oss << setw(5) << "" << setw(5) << "Beam" << setw(3) << "" << dirtype << endl;
     734  oss << setw(10) << "" << setw(3) << "IF" << setw(6) << ""
    737735      << setw(8) << "Frame" << setw(16)
    738736      << "RefVal" << setw(10) << "RefPix" << setw(12) << "Increment" <<endl;
     
    764762      MDirection::ROScalarColumn bdirCol(bsubt,"DIRECTION");
    765763      const TableRecord& brec = brow.get(0);
    766       oss << setw(6) << "" <<  setw(10) << brec.asuInt("BEAMNO");
    767       oss  << setw(24) << formatDirection(bdirCol(0)) << endl;
     764      oss << setw(5) << "" <<  setw(4) << std::right << brec.asuInt("BEAMNO")<< std::left;
     765      oss  << setw(4) << "" << formatDirection(bdirCol(0)) << endl;
    768766      TableIterator iiter(bsubt, "IFNO");
    769767      while (!iiter.pastEnd()) {
     
    771769        ROTableRow irow(isubt);
    772770        const TableRecord& irec = irow.get(0);
    773         oss << std::right <<setw(8) << "" << std::left << irec.asuInt("IFNO");
    774         oss << frequencies().print(irec.asuInt("FREQ_ID"));
     771        oss << setw(10) << "";
     772        oss << setw(3) << std::right << irec.asuInt("IFNO") << std::left
     773            << setw(2) << "" << frequencies().print(irec.asuInt("FREQ_ID"));
    775774
    776775        ++iiter;
Note: See TracChangeset for help on using the changeset viewer.