Ignore:
Timestamp:
03/02/07 11:02:27 (17 years ago)
Author:
mar637
Message:

merge from trunk, to get most recent bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release2.1.2/src/STMath.cpp

    r1310 r1320  
    167167        Vector<Bool> bflag(flag.shape());
    168168        convertArray(bflag, flag);
     169        /*
    169170        if ( allEQ(bflag, True) ) {
    170           continue;//don't accumulate
     171        continue;//don't accumulate
    171172        }
     173        */
    172174        specCol.get(k, spec);
    173175        tsysCol.get(k, tsys);
     
    904906    scaleByVector(tab,factors, false);
    905907  } 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    }
    910915    jyperk = STAttr::findJyPerK(etaap, d);
    911916    ostringstream oss;
     
    976981  for ( uInt i=0; i<tab.nrow(); ++i) {
    977982    Float zdist = Float(C::pi_2) - elev(i);
    978     Float factor = exp(tau)/cos(zdist);
     983    Float factor = exp(tau/cos(zdist));
    979984    MaskedArray<Float> ma = maskedArray(specCol(i), flagCol(i));
    980985    ma *= factor;
Note: See TracChangeset for help on using the changeset viewer.