Source
530
530
fieldtype="nearest";
531
531
fieldstr="";
532
532
}
533
533
}
534
534
//cout << "SVC::setApply: fieldstr=" << fieldstr << endl;
535
535
//cout << "SVC::setApply: fieldtype=" << fieldtype << endl;
536
536
537
537
if (apply.isDefined("spwmap"))
538
538
spwMap().assign(apply.asArrayInt("spwmap"));
539
539
540
-
// cout << "SVC::setApply: spwMap()=" << spwMap() << endl;
540
+
// Catch spwmap that is too long
541
+
if (spwMap().nelements()>uInt(nSpw()))
542
+
throw(AipsError("Specified spwmap has more elements ("+String::toString(spwMap().nelements())+") than the number of spectral windows in the MS ("+String::toString(nSpw())+")."));
541
543
542
544
// TBD: move interval to VisCal version?
543
545
// TBD: change to "reach"
544
546
if (apply.isDefined("t"))
545
547
interval()=apply.asFloat("t");
546
548
547
549
// This is apply context
548
550
setApplied(true);
549
551
setSolved(false);
550
552