- Timestamp:
- 09/14/13 13:04:02 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STSideBandSep.cpp
r2857 r2858 88 88 STSideBandSep::~STSideBandSep() 89 89 { 90 #ifdef KS_DEBUG91 cout << "Destructor ~STSideBandSep()" << endl;92 #endif93 90 }; 94 91 … … 241 238 void STSideBandSep::separate(string outname) 242 239 { 243 #ifdef KS_DEBUG244 cout << "STSideBandSep::separate" << endl;245 #endif246 240 LogIO os(LogOrigin("STSideBandSep","separate()", WHERE)); 247 241 if (outname.empty()) … … 767 761 accflag[j] |= shiftvec[j]; 768 762 } 763 outflag = accflag; 769 764 // Shift back Flag 770 shiftFlag(accflag, thisShift->at(0), outflag); 765 //cout << "Shifting FLAG back to " << thisShift->at(0) << " channels" << endl; 766 //shiftFlag(accflag, thisShift->at(0), outflag); 771 767 772 768 return outflag; … … 867 863 868 864 #ifdef KS_DEBUG 869 cout << "Start shifting spectrum for " << shift << " channels" << endl;865 cout << "Start shifting spectrum for " << shift << " channels" << endl; 870 866 #endif 871 867 … … 885 881 outvec(lchan) += invec(i) * lweight; 886 882 outvec(rchan) += invec(i) * rweight; 883 #ifdef KS_DEBUG 884 if (i == 2350 || i== 2930) { 885 cout << "Channel= " << i << " of input vector: " << endl; 886 cout << "L channel = " << lchan << endl; 887 cout << "R channel = " << rchan << endl; 888 cout << "L weight = " << lweight << endl; 889 cout << "R weight = " << rweight << endl; 890 } 891 #endif 887 892 } 888 893 }; … … 913 918 if (rweight < 0.) rweight += 1.; 914 919 if (rweight < tolerance){ 920 // the shift is almost lchan 921 ruse = false; 922 luse = true; 923 } 924 if (rweight > 1-tolerance){ 925 // the shift is almost rchan 915 926 ruse = true; 916 927 luse = false; 917 }918 if (rweight > 1-tolerance){919 ruse = false;920 luse = true;921 928 } 922 929 uInt lchan, rchan; … … 929 936 outvec(lchan) |= (invec(i) && luse); 930 937 outvec(rchan) |= (invec(i) && ruse); 938 #ifdef KS_DEBUG 939 if (i == 2350 || i == 2930) { 940 cout << "Channel= " << i << " of input vector: " << endl; 941 cout << "L channel = " << lchan << endl; 942 cout << "R channel = " << rchan << endl; 943 cout << "L channel will be " << (luse ? "used" : "ignored") << endl; 944 cout << "R channel will be " << (ruse ? "used" : "ignored") << endl; 945 } 946 #endif 931 947 } 932 948 };
Note:
See TracChangeset
for help on using the changeset viewer.