Changeset 2437 for trunk/src/STMath.cpp
- Timestamp:
- 03/16/12 17:53:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r2429 r2437 1930 1930 ArrayColumn<Float> specCol(tout, "SPECTRA"); 1931 1931 ArrayColumn<uChar> flagCol(tout, "FLAGTRA"); 1932 ArrayColumn<Float> tsysCol(tout, "TSYS"); 1933 1932 1934 for (uInt i=0; i < tout.nrow(); ++i ) { 1933 1935 MaskedArray<Float> main = maskedArray(specCol(i), flagCol(i)); 1934 1936 MaskedArray<Float> maout; 1935 1937 LatticeUtilities::bin(maout, main, 0, Int(width)); 1936 /// @todo implement channel based tsys binning1937 1938 specCol.put(i, maout.getArray()); 1938 1939 flagCol.put(i, flagsFromMA(maout)); 1940 if (tsysCol(i).nelements() == specCol(i).nelements()) { 1941 MaskedArray<Float> matsysin = maskedArray(tsysCol(i), flagCol(i)); 1942 MaskedArray<Float> matsysout; 1943 LatticeUtilities::bin(matsysout, matsysin, 0, Int(width)); 1944 tsysCol.put(i, matsysout.getArray()); 1945 } 1939 1946 // take only the first binned spectrum's length for the deprecated 1940 1947 // global header item nChan
Note: See TracChangeset
for help on using the changeset viewer.