Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMath.cc
r532 r536 267 267 scanIDCol.attach(tabIn, "SCANID"); 268 268 269 // Find list of start/end rows for each scan270 271 269 // Loop over rows in Table 272 270 … … 1833 1831 itMask.next(); 1834 1832 } 1835 } else if (wtType==TSYS ) {1833 } else if (wtType==TSYS || wtType==TINTSYS) { 1836 1834 1837 1835 // We are going to average the data, weighted by 1/Tsys**2 for each pol, beam and IF. … … 1843 1841 VectorIterator<Float> itData(valuesIn, axis); 1844 1842 ReadOnlyVectorIterator<Float> itTSys(tSys, axis); 1843 IPosition pos(nAxesSub,0); 1844 // 1845 1845 Float fac = 1.0; 1846 IPosition pos(nAxesSub,0); 1847 // 1846 if (wtType==TINTSYS) fac *= interval; 1848 1847 while (!itData.pastEnd()) { 1849 1848 Float t = itTSys.vector()[0]; 1850 fac = 1.0/t/t;1849 fac *= 1.0/t/t; 1851 1850 1852 1851 // Scale data … … 1915 1914 itData.next(); 1916 1915 } 1917 } else if (wtType==TSYS ) {1916 } else if (wtType==TSYS || wtType==TINTSYS) { 1918 1917 1919 // Normalize each spectrum by sum(1/Tsys**2) where the pseudo 1918 // Normalize each spectrum by sum(1/Tsys**2) (TSYS) or 1919 // sum(Tint/Tsys**2) (TINTSYS) where the pseudo 1920 1920 // replication over channel for Tsys has been dropped. 1921 1921 … … 1974 1974 wtType = VAR; 1975 1975 msg = String("Weighting type selected : Variance"); 1976 } else if (tStr.contains(String("TINTSYS"))) { 1977 wtType = TINTSYS; 1978 msg = String("Weighting type selected : Tint&Tsys"); 1976 1979 } else if (tStr.contains(String("TINT"))) { 1977 1980 wtType = TINT; -
trunk/src/SDMath.h
r532 r536 136 136 // Weighting type for time averaging 137 137 138 enum WeightType {NONE ,VAR,TSYS,TINT};138 enum WeightType {NONE=0,VAR,TSYS,TINT,TINTSYS,nWeightTypes}; 139 139 140 140 // Function to use accumulate data during time averaging
Note:
See TracChangeset
for help on using the changeset viewer.