Ignore:
Timestamp:
01/31/08 15:15:02 (16 years ago)
Author:
Malte Marquarding
Message:

Mark C added brightness unit to PKSreader/writer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFiller.cpp

    r1391 r1410  
    55//
    66//
    7 // Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2006
     7// Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2006-2007
    88//
    99// Copyright: See COPYING file that comes with this distribution
     
    113113  header_->npol = max(npols);
    114114  header_->nbeam = nBeam_;
    115 
     115 
    116116  Int status = reader_->getHeader(header_->observer, header_->project,
    117117                                  header_->antennaname, header_->antennaposition,
    118                                   header_->obstype,header_->equinox,
     118                                  header_->obstype,
     119                                  header_->fluxunit,
     120                                  header_->equinox,
    119121                                  header_->freqref,
    120122                                  header_->utc, header_->reffreq,
     
    140142  Bool throwIt = False;
    141143  Instrument inst = STAttr::convertInstrument(header_->antennaname, throwIt);
    142   header_->fluxunit = "Jy";
     144
    143145  if (inst==ATMOPRA || inst==TIDBINBILLA) {
    144      header_->fluxunit = "K";
     146    header_->fluxunit = "K";
     147  } else {
     148    // downcase for use with Quanta
     149    if (header_->fluxunit == "JY") {
     150      header_->fluxunit = "Jy";
     151    }
    145152  }
    146153  STAttr stattr;
Note: See TracChangeset for help on using the changeset viewer.