Changeset 1657 for branches/alma


Ignore:
Timestamp:
11/05/09 21:50:20 (15 years ago)
Author:
WataruKawasaki
Message:

New Development: Yes

JIRA Issue: Yes (CAS-1433)

Ready to Release: Yes

Interface Changes: No

Put in Release Notes: No

Module(s): sd.save()

Description: Modified to read/write row-based flagging info.


Location:
branches/alma/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/src/STAsciiWriter.cpp

    r1446 r1657  
     1
    12//#---------------------------------------------------------------------------
    23//# STAsciiWriter.cc: ASAP class to write out single dish spectra as FITS images
     
    128129    addLine(of, "Rest Freq.", restfreqs[0]);
    129130    for ( unsigned int i=1; i<nf; ++i) {
    130         addLine(of, " ", restfreqs[i]);
    131     }
     131      addLine(of, " ", restfreqs[i]);
     132    }
     133    ostringstream osflagrow;
     134    for ( unsigned int i=0; i<t.nrow(); ++i) {
     135      osflagrow << "Pol" << i << ":" << ((row.get(i).asuInt("FLAGROW") > 0) ? "True" : "False") << " ";
     136    }
     137    addLine(of, "Row_Flagged", String(osflagrow));
    132138    of << setfill('#') << setw(70) << "" << setfill(' ') << endl;
    133139
  • branches/alma/src/STFiller.cpp

    r1654 r1657  
    440440      row.put(table_->table().nrow()-1, rec);
    441441    }
     442
     443    RecordFieldPtr< uInt > flagrowCol(rec, "FLAGROW");
     444    *flagrowCol = pksrec.flagrow;
     445
    442446    if ( haveXPol_[0] ) {
    443447      // no tsys given for xpol, so emulate it
Note: See TracChangeset for help on using the changeset viewer.