Commits

Pam Harris authored 088bc697184
Fix output channel number when averaging channel and antenna

casa5/code/plotms/Data/PlotMSCTAverager.cc

Modified
605 605 }
606 606 }
607 607
608 608 Float wt = iterWt(inPos);
609 609 if (wt < FLT_MIN) {
610 610 wt = FLT_MIN;
611 611 }
612 612
613 613 // Accumulate data, if appropriate
614 614 if (accum_i) {
615 - IPosition ipos(3, ipol, ichan, obln_i);
615 + IPosition ipos(3, ipol, outchan, obln_i);
616 616 if (isComplex_p) {
617 617 accumCParam_(ipos) += wt * iterCParam(inPos);
618 618 } else {
619 619 accumFParam_(ipos) += wt * iterFParam(inPos);
620 620 }
621 621 accumParamErr_(ipos) += wt * iterParamErr(inPos);
622 622 accumSnr_(ipos) += wt * iterSnr(inPos);
623 623 accumWt_(ipos) += wt;
624 624 }
625 625
626 626 if (accum_j) {
627 - IPosition jpos(3, ipol, ichan, obln_j);
627 + IPosition jpos(3, ipol, outchan, obln_j);
628 628 if (isComplex_p) {
629 629 accumCParam_(jpos) += wt * iterCParam(inPos);
630 630 } else {
631 631 accumFParam_(jpos) += wt * iterFParam(inPos);
632 632 }
633 633 accumParamErr_(jpos) += wt * iterParamErr(inPos);
634 634 accumSnr_(jpos) += wt * iterSnr(inPos);
635 635 accumWt_(jpos) += wt;
636 636 }
637 637

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut