Changeset 1320 for branches/Release2.1.2/src/STMath.cpp
- Timestamp:
- 03/02/07 11:02:27 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release2.1.2/src/STMath.cpp
r1310 r1320 167 167 Vector<Bool> bflag(flag.shape()); 168 168 convertArray(bflag, flag); 169 /* 169 170 if ( allEQ(bflag, True) ) { 170 171 continue;//don't accumulate 171 172 } 173 */ 172 174 specCol.get(k, spec); 173 175 tsysCol.get(k, tsys); … … 904 906 scaleByVector(tab,factors, false); 905 907 } else if ( etaap > 0.0) { 906 Instrument inst = 907 STAttr::convertInstrument(tab.keywordSet().asString("AntennaName"), True); 908 STAttr sda; 909 if (d < 0) d = sda.diameter(inst); 908 if (d < 0) { 909 Instrument inst = 910 STAttr::convertInstrument(tab.keywordSet().asString("AntennaName"), 911 True); 912 STAttr sda; 913 d = sda.diameter(inst); 914 } 910 915 jyperk = STAttr::findJyPerK(etaap, d); 911 916 ostringstream oss; … … 976 981 for ( uInt i=0; i<tab.nrow(); ++i) { 977 982 Float zdist = Float(C::pi_2) - elev(i); 978 Float factor = exp(tau )/cos(zdist);983 Float factor = exp(tau/cos(zdist)); 979 984 MaskedArray<Float> ma = maskedArray(specCol(i), flagCol(i)); 980 985 ma *= factor;
Note: See TracChangeset
for help on using the changeset viewer.