Changeset 1410


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

Mark C added brightness unit to PKSreader/writer

Location:
trunk/src
Files:
2 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;
  • trunk/src/STWriter.cpp

    r1391 r1410  
    139139  Int status;
    140140  status = writer_->create(String(filename), hdr.observer, hdr.project,
    141                                hdr.antennaname, hdr.antennaposition,
    142                                hdr.obstype, hdr.equinox, hdr.freqref,
    143                                nChan, nPol, havexpol, False);
     141                           hdr.antennaname, hdr.antennaposition,
     142                           hdr.obstype, hdr.fluxunit,
     143                           hdr.equinox, hdr.freqref,
     144                           nChan, nPol, havexpol, False);
    144145  if ( status ) {
    145146    throw(AipsError("Failed to create output file"));
Note: See TracChangeset for help on using the changeset viewer.