Changeset 1779 for branches/mergetest/src/STAsciiWriter.cpp
- Timestamp:
- 07/29/10 19:13:46 (14 years ago)
- Location:
- branches/mergetest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mergetest
- Property svn:mergeinfo changed
-
branches/mergetest/src/STAsciiWriter.cpp
r1552 r1779 1 1 2 //#--------------------------------------------------------------------------- 2 3 //# STAsciiWriter.cc: ASAP class to write out single dish spectra as FITS images … … 88 89 89 90 String rootName(fileName); 90 91 91 92 Block<String> cols(4); 92 93 cols[0] = String("SCANNO"); … … 132 133 String wcs = stable.frequencies().print(rec.asuInt("FREQ_ID"), True); 133 134 addLine(of, "WCS", wcs); 134 addLine(of, "Rest Freq.", 135 stable.molecules().getRestFrequency(rec.asuInt("MOLECULE_ID") )); 135 std::vector<double> restfreqs= stable.molecules().getRestFrequency(rec.asuInt("MOLECULE_ID")); 136 int nf = restfreqs.size(); 137 //addLine(of, "Rest Freq.", 138 // stable.molecules().getRestFrequency(rec.asuInt("MOLECULE_ID") )); 139 addLine(of, "Rest Freq.", restfreqs[0]); 140 for ( unsigned int i=1; i<nf; ++i) { 141 addLine(of, " ", restfreqs[i]); 142 } 143 ostringstream osflagrow; 144 for ( unsigned int i=0; i<t.nrow(); ++i) { 145 osflagrow << "Pol" << i << ":" << ((row.get(i).asuInt("FLAGROW") > 0) ? "True" : "False") << " "; 146 } 147 addLine(of, "Row_Flagged", String(osflagrow)); 136 148 of << setfill('#') << setw(70) << "" << setfill(' ') << endl; 137 149
Note:
See TracChangeset
for help on using the changeset viewer.