Changeset 878 for trunk/src/STAttr.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/STAttr.cpp

    r877 r878  
    11//#---------------------------------------------------------------------------
    2 //# SDAttr.cc: A collection of attributes for different telescopes
     2//# STAttr.cc: A collection of attributes for different telescopes
    33//#---------------------------------------------------------------------------
    44//# Copyright (C) 2004
     
    4242#include <scimath/Mathematics/InterpolateArray1D.h>
    4343
    44 #include "SDAttr.h"
     44#include "STAttr.h"
    4545
    4646using namespace casa;
    4747using namespace asap;
    4848
    49 SDAttr::SDAttr()
     49STAttr::STAttr()
    5050{
    5151   initData();
    5252}
    5353
    54 SDAttr::SDAttr(const SDAttr& other)
     54STAttr::STAttr(const STAttr& other)
    5555{
    5656   initData();                     // state just private 'static' data
    5757}
    5858
    59 SDAttr& SDAttr::operator=(const SDAttr& other)
     59STAttr& STAttr::operator=(const STAttr& other)
    6060{
    6161  if (this != &other) {
     
    6565}
    6666
    67 SDAttr::~SDAttr()
     67STAttr::~STAttr()
    6868{;}
    6969
    7070
    71 Float SDAttr::diameter(Instrument inst)  const
     71Float STAttr::diameter(Instrument inst)  const
    7272{
    7373   Float D = 1.0;
     
    107107}
    108108
    109 Vector<Float> SDAttr::beamEfficiency(Instrument inst, const MEpoch& dateObs,
     109Vector<Float> STAttr::beamEfficiency(Instrument inst, const MEpoch& dateObs,
    110110                                      const Vector<Float>& freqs) const
    111111{
     
    140140}
    141141
    142 Vector<Float> SDAttr::apertureEfficiency(Instrument inst,
     142Vector<Float> STAttr::apertureEfficiency(Instrument inst,
    143143                                         const MEpoch& dateObs,
    144144                                         const Vector<Float>& freqs) const
     
    177177}
    178178
    179 Vector<Float> SDAttr::JyPerK(Instrument inst, const MEpoch& dateObs,
     179Vector<Float> STAttr::JyPerK(Instrument inst, const MEpoch& dateObs,
    180180                             const Vector<Float>& freqs) const
    181181{
     
    187187   Vector<Float> facs(freqs.nelements(),1.0);
    188188   for (uInt i=0; i<freqs.nelements(); i++) {
    189      facs(i) = SDAttr::findJyPerK(etaAp(i), D);
     189     facs(i) = STAttr::findJyPerK(etaAp(i), D);
    190190   }
    191191   return facs;
     
    193193
    194194
    195 Float SDAttr::findJyPerK(Float etaAp, Float D)
     195Float STAttr::findJyPerK(Float etaAp, Float D)
    196196  //
    197197  // Converts K -> Jy
     
    205205
    206206
    207 Vector<Float> SDAttr::gainElevationPoly(Instrument inst) const
     207Vector<Float> STAttr::gainElevationPoly(Instrument inst) const
    208208{
    209209
     
    223223}
    224224
    225 FeedPolType SDAttr::feedPolType(Instrument inst) const
     225FeedPolType STAttr::feedPolType(Instrument inst) const
    226226{
    227227  FeedPolType type = UNKNOWNFEED;
     
    249249
    250250// Private
    251 Vector<Float> SDAttr::interp(const Vector<Float>& xOut,
     251Vector<Float> STAttr::interp(const Vector<Float>& xOut,
    252252                             const Vector<Float>& xIn,
    253253                             const Vector<Float>& yIn) const
     
    266266}
    267267
    268 void SDAttr::initData()
     268void STAttr::initData()
    269269  //
    270270  // Mopra data from Mopra web page
     
    316316
    317317
    318 Instrument SDAttr::convertInstrument(const String& instrument,
     318Instrument STAttr::convertInstrument(const String& instrument,
    319319                                     Bool throwIt)
    320320{
     
    322322  t.upcase();
    323323 
    324   // The strings are what SDReader returns, after cunning
     324  // The strings are what STReader returns, after cunning
    325325  // interrogation of station names... :-(
    326326  Instrument inst = asap::UNKNOWNINST;
Note: See TracChangeset for help on using the changeset viewer.