Commits

Takeshi Nakazato authored 8cb8cc52583
Bug Fix: fix wrong index for setTsys1/setTcal1

This bug has been identified when we worked on NRO filler (merge2). Temporal storage for Tsys/Tcal is filled in order so that indices for setTsys1/setTcal1 should be 1 for single polarization data regardless of the polarization type.
No tags

code/singledishfiller/Filler/DataAccumulator.h

Modified
629 629 // only POL 1
630 630 // std::cout << "set data/flag (pol 1)" << std::endl;
631 631 record.setFloat();
632 632 record.setDataSize(1, num_chan_);
633 633 shuffleTransposeMatrix<casacore::Float, ExecuteMatrix1>(num_chan_,
634 634 0, data_, record.float_data, pol_idx_order);
635 635 shuffleTransposeMatrix<casacore::Bool, ExecuteMatrix1>(num_chan_, 0,
636 636 flag_, record.flag, pol_idx_order);
637 637 record.flag_row = flag_row_(1);
638 638
639 - setTsys1(1, record);
639 + setTsys1(0, record);
640 640
641 641 // std::cout << "set tcal " << tcal_ << std::endl;
642 - setTcal1(1, record);
642 + setTcal1(0, record);
643 643
644 644 record.num_pol = 1;
645 645 } else if (pcorr_type_.size() == 0) {
646 646 // std::cout << "DataChunk is not ready for get" << std::endl;
647 647 return false;
648 648 } else {// means strange combination of polarization types in DataChunk
649 649 throw AipsError(
650 650 "non-conforming combination of polarization accumulated");
651 651 }
652 652 for (casacore::Int i = 0; i < record.num_pol; ++i) {

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

Add shortcut