Changeset 205
- Timestamp:
- 01/18/05 17:24:55 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDReader.cc
r125 r205 127 127 } 128 128 header_.nif = nIF_; 129 header_.fluxunit = "K"; 130 header_.epoch = "UTC"; 129 131 // Apply selection criteria. 130 132 Vector<Int> start(nIF_, 1); … … 136 138 table_->putSDHeader(header_); 137 139 frequencies_.setRefFrame(header_.freqref); 140 frequencies_.setRestFrequencyUnit("Hz"); 138 141 frequencies_.setEquinox(header_.equinox); 139 142 } … … 157 160 158 161 uInt stepsize = header_.nif*header_.nbeam; 159 //cerr << "SDReader stepsize = " << stepsize << endl;160 162 uInt seqi = 0; 161 163 Bool getAll = False; … … 164 166 // only needs to be create if in seq 165 167 SDContainer sc(header_.nbeam,header_.nif,header_.npol,header_.nchan); 166 167 168 // iterate over one correlator integration cycle = nBeam*nIF 168 169 for (uInt row=0; row < stepsize; row++) { … … 181 182 if (status == -1) { 182 183 // 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; 184 186 //cerr << "EOF" << endl; 185 187 table_->putSDFreqTable(frequencies_); … … 207 209 Int refPix = header_.nchan/2+1; 208 210 Int frqslot = frequencies_.addFrequency(refPix, refFreq, freqInc); 211 frequencies_.addRestFrequency(restFreq); 209 212 sc.setFrequencyMap(frqslot,IFno-1); 210 213 sc.tcal[0] = tcal[0];sc.tcal[1] = tcal[1];
Note:
See TracChangeset
for help on using the changeset viewer.