Changeset 205


Ignore:
Timestamp:
01/18/05 17:24:55 (19 years ago)
Author:
mar637
Message:
  • added fluxunit, epoch
  • added restfrequencies
  • fixed "defect" which was telling the user that incomplete scans where found in case of multi if data
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDReader.cc

    r125 r205  
    127127  }
    128128  header_.nif = nIF_;
     129  header_.fluxunit = "K";
     130  header_.epoch = "UTC";
    129131  // Apply selection criteria.
    130132  Vector<Int> start(nIF_, 1);
     
    136138  table_->putSDHeader(header_);
    137139  frequencies_.setRefFrame(header_.freqref);
     140  frequencies_.setRestFrequencyUnit("Hz");
    138141  frequencies_.setEquinox(header_.equinox);
    139142}
     
    157160
    158161  uInt stepsize = header_.nif*header_.nbeam;
    159   //cerr << "SDReader stepsize = " << stepsize << endl;
    160162  uInt seqi = 0;
    161163  Bool getAll = False;
     
    164166    // only needs to be create if in seq
    165167    SDContainer sc(header_.nbeam,header_.nif,header_.npol,header_.nchan);
    166 
    167168    // iterate over one correlator integration cycle = nBeam*nIF
    168169    for (uInt row=0; row < stepsize; row++) {
     
    181182        if (status == -1) {
    182183          // EOF.
    183           if (row < stepsize-1) cerr << "incomplete scan data.\n Probably means not all Beams/IFs/Pols within a scan a present." << endl;
     184          if (row > 0 && row < stepsize-1)
     185            cerr << "incomplete scan data.\n Probably means not all Beams/IFs/Pols within a scan are present." << endl;
    184186          //cerr << "EOF" << endl;
    185187          table_->putSDFreqTable(frequencies_);
     
    207209        Int refPix = header_.nchan/2+1;
    208210        Int frqslot = frequencies_.addFrequency(refPix, refFreq, freqInc);
     211        frequencies_.addRestFrequency(restFreq);
    209212        sc.setFrequencyMap(frqslot,IFno-1);
    210213        sc.tcal[0] = tcal[0];sc.tcal[1] = tcal[1];
Note: See TracChangeset for help on using the changeset viewer.