Changeset 878 for trunk/src/STMath.cpp


Ignore:
Timestamp:
03/06/06 12:23:21 (18 years ago)
Author:
mar637
Message:

SDAttr->STAttr name change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r867 r878  
    3636#include "MathUtils.h"
    3737#include "RowAccumulator.h"
    38 #include "SDAttr.h"
     38#include "STAttr.h"
    3939#include "STMath.h"
    4040
     
    536536    Bool throwit = True;
    537537    Instrument inst =
    538       SDAttr::convertInstrument(tab.keywordSet().asString("AntennaName"),
     538      STAttr::convertInstrument(tab.keywordSet().asString("AntennaName"),
    539539                                throwit);
    540540
     
    548548      msg = String("user");
    549549    } else {
    550       SDAttr sdAttr;
     550      STAttr sdAttr;
    551551      coeff = sdAttr.gainElevationPoly(inst);
    552552      ppoly = new Polynomial<Float>(3);
     
    689689  } else if ( etaap > 0.0) {
    690690    Instrument inst =
    691       SDAttr::convertInstrument(tab.keywordSet().asString("AntennaName"), True);
    692     SDAttr sda;
     691      STAttr::convertInstrument(tab.keywordSet().asString("AntennaName"), True);
     692    STAttr sda;
    693693    if (d < 0) d = sda.diameter(inst);
    694     Float jyPerk = SDAttr::findJyPerK(etaap, d);
     694    Float jyPerk = STAttr::findJyPerK(etaap, d);
    695695    ostringstream oss;
    696696    oss << "Jy/K = " << jyperk;
     
    721721  Table& table = in->table();
    722722  Instrument inst =
    723     SDAttr::convertInstrument(table.keywordSet().asString("AntennaName"), True);
     723    STAttr::convertInstrument(table.keywordSet().asString("AntennaName"), True);
    724724  TableIterator iter(table, "FREQ_ID");
    725725  STFrequencies stfreqs = in->frequencies();
    726   SDAttr sdAtt;
     726  STAttr sdAtt;
    727727  while (!iter.pastEnd()) {
    728728    Table tab = iter.table();
     
    734734    uInt freqid; freqidCol.get(0, freqid);
    735735    Vector<Float> tmpspec; specCol.get(0, tmpspec);
    736     // SDAttr.JyPerK has a Vector interface... change sometime.
     736    // STAttr.JyPerK has a Vector interface... change sometime.
    737737    Vector<Float> freqs(1,stfreqs.getRefFreq(freqid, tmpspec.nelements()));
    738738    for ( uInt i=0; i<tab.nrow(); ++i) {
Note: See TracChangeset for help on using the changeset viewer.