Changeset 1663 for trunk


Ignore:
Timestamp:
11/27/09 15:58:37 (15 years ago)
Author:
Malte Marquarding
Message:

Fix for Ticket #175: SRCTYPE is inserted into pksrec.obstype

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STWriter.cpp

    r1586 r1663  
    154154    havexpol(ifs[i]) = nPol(ifs[i]) > 2;
    155155  }
    156 
     156  Vector<String> obstypes(2);
     157  obstypes(0) = "TR";//on
     158  obstypes(1) = "RF TR";//off
    157159  const Table table = inst->table();
     160
    158161
    159162  // Create the output file and write static data.
     
    236239          pksrec.fieldName = rec.asString("FIELDNAME");
    237240          pksrec.srcName   = rec.asString("SRCNAME");
    238           pksrec.obsType   = hdr.obstype;
     241          pksrec.obsType   = obstypes[rec.asInt("SRCTYPE")];
    239242          pksrec.bandwidth = nchan * abs(pksrec.freqInc);
    240243          pksrec.azimuth   = rec.asFloat("AZIMUTH");
Note: See TracChangeset for help on using the changeset viewer.