Changeset 337


Ignore:
Timestamp:
01/31/05 20:34:50 (20 years ago)
Author:
kil064
Message:

set defaulkt brightness units dpenending upon telescope

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDReader.cc

    r335 r337  
    3535
    3636#include "SDReader.h"
     37#include "SDDefs.h"
    3738
    3839using namespace casa;
     
    143144  }
    144145//
     146// Determine Telescope and set units...
     147
     148  Bool throwIt = False;
     149  Instrument inst = SDMemTable::convertInstrument (header_.antennaname, throwIt);
     150  header_.fluxunit = "Jy";
     151  if (inst==ATMOPRA || inst==TIDBINBILLA) {
     152     header_.fluxunit = "K";
     153  }
     154  cerr << "Assuming brightness units are " << header_.fluxunit << endl;
     155//
    145156  header_.nif = nIF_;
    146   header_.fluxunit = "K";
    147157  header_.epoch = "UTC";
    148158
     
    226236                             spectra, flagtra, xCalFctr, xPol);
    227237
    228 // Make sure beam/IF numbers are 0-relative
     238// Make sure beam/IF numbers are 0-relative - dealing with possible IF or Beam selection
    229239
    230240      beamNo = beamNo - beamOffset_ - 1;     
Note: See TracChangeset for help on using the changeset viewer.