Source
2506
2506
int measFreqRef = r->isMeasFreqRefExists()?FrequencyReferenceMapper::value(r->getMeasFreqRef()):MFrequency::TOPO;
2507
2507
double totalBandwidth = r->getTotBandwidth().get();
2508
2508
int netSideband = r->getNetSideband();
2509
2509
int bbcNo = r->getBasebandName();
2510
2510
int ifConvChain = 0;
2511
2511
int freqGroup = r->isFreqGroupExists()?r->getFreqGroup():0;
2512
2512
string freqGroupName = r->isFreqGroupNameExists()?r->getFreqGroupName().c_str():"";
2513
2513
// windowFunction is a required field
2514
2514
string windowFunction = CWindowFunction::name(r->getWindowFunction());
2515
2515
int numBin = getNumBin(r, telescopeName);
2516
-
​
2516
+
if (telescopeName == "EVLA" && (numBin>1) && (!r->isNumBinExists())) {
2517
+
// numBin has been inferred for EVLA data, adjust resolution
2518
+
resolution1D = chanWidth1D;
2519
+
}
2517
2520
for (map<AtmPhaseCorrection, ASDM2MSFiller*>::iterator iter = msFillers.begin();
2518
2521
iter != msFillers.end();
2519
2522
++iter) {
2520
2523
iter->second->addSpectralWindow(numChan,
2521
2524
name,
2522
2525
refFreq,
2523
2526
chanFreq1D,
2524
2527
chanWidth1D,
2525
2528
measFreqRef,
2526
2529
effectiveBw1D,