Source
626
626
Int nCorr(vb.nCorrelations());
627
627
628
628
// This divides corrected data and model by the Stokes I model
629
629
// ... and updates weightspec accordingly
630
630
631
631
Cube<Complex> c(vb.visCubeCorrected());
632
632
Cube<Complex> m(vb.visCubeModel());
633
633
Cube<Bool> fl(vb.flagCube());
634
634
Cube<Float> w(vb.weightSpectrum());
635
635
636
-
Complex cOne(1.0);
636
+
//Complex cOne(1.0);
637
637
638
638
for (Int irow=0;irow<vb.nRows();++irow) {
639
639
if (vb.flagRow()(irow)) {
640
640
// Row flagged, make sure cube also flagged, weight/data zeroed
641
641
c(Slice(),Slice(),Slice(irow,1,1))=0.0f;
642
642
w(Slice(),Slice(),Slice(irow,1,1))=0.0f;
643
643
fl(Slice(),Slice(),Slice(irow,1,1))=True;
644
644
}
645
645
else {
646
646
// Bool *flp=&fl(0,0,irow);