Changeset 195


Ignore:
Timestamp:
01/14/05 13:40:10 (19 years ago)
Author:
kil064
Message:

use source name in output file name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDFITSImageWriter.cc

    r191 r195  
    9292   ROScalarColumn<Double> time(tab, "TIME");
    9393   ROArrayColumn<uInt> freqid(tab, "FREQID");
     94   ROScalarColumn<String> src(tab, "SRCNAME");
    9495
    9596// Output Image Shape; spectral axis to be updated
     
    208209   
    209210         ostringstream oss;
    210          oss << String("_row") << iRow << "_beam" << pos(0) << "_if" << pos(1) << "_pol" << pos(2) << ".fits";
    211          String fileName = rootName + String(oss);
     211         oss << "row" << iRow << "_beam" << pos(0) << "_if" << pos(1) << "_pol" << pos(2) << "_" << src(iRow) << ".fits";
     212         String fileName;
     213         if (rootName.length()>0) {
     214            fileName = rootName + "_" + String(oss);
     215         } else {
     216            fileName = String(oss);
     217         }
    212218         if (verbose) cerr << "Writing row " << iRow << " into file " << fileName << endl;
    213219//
Note: See TracChangeset for help on using the changeset viewer.