Changeset 1410
- Timestamp:
- 01/31/08 15:15:02 (17 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STFiller.cpp
r1391 r1410 5 5 // 6 6 // 7 // Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2006 7 // Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2006-2007 8 8 // 9 9 // Copyright: See COPYING file that comes with this distribution … … 113 113 header_->npol = max(npols); 114 114 header_->nbeam = nBeam_; 115 115 116 116 Int status = reader_->getHeader(header_->observer, header_->project, 117 117 header_->antennaname, header_->antennaposition, 118 header_->obstype,header_->equinox, 118 header_->obstype, 119 header_->fluxunit, 120 header_->equinox, 119 121 header_->freqref, 120 122 header_->utc, header_->reffreq, … … 140 142 Bool throwIt = False; 141 143 Instrument inst = STAttr::convertInstrument(header_->antennaname, throwIt); 142 header_->fluxunit = "Jy"; 144 143 145 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 } 145 152 } 146 153 STAttr stattr; -
trunk/src/STWriter.cpp
r1391 r1410 139 139 Int status; 140 140 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); 144 145 if ( status ) { 145 146 throw(AipsError("Failed to create output file"));
Note:
See TracChangeset
for help on using the changeset viewer.