Changeset 878 for trunk/src/STAttr.cpp
- Timestamp:
- 03/06/06 12:23:21 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STAttr.cpp
r877 r878 1 1 //#--------------------------------------------------------------------------- 2 //# S DAttr.cc: A collection of attributes for different telescopes2 //# STAttr.cc: A collection of attributes for different telescopes 3 3 //#--------------------------------------------------------------------------- 4 4 //# Copyright (C) 2004 … … 42 42 #include <scimath/Mathematics/InterpolateArray1D.h> 43 43 44 #include "S DAttr.h"44 #include "STAttr.h" 45 45 46 46 using namespace casa; 47 47 using namespace asap; 48 48 49 S DAttr::SDAttr()49 STAttr::STAttr() 50 50 { 51 51 initData(); 52 52 } 53 53 54 S DAttr::SDAttr(const SDAttr& other)54 STAttr::STAttr(const STAttr& other) 55 55 { 56 56 initData(); // state just private 'static' data 57 57 } 58 58 59 S DAttr& SDAttr::operator=(const SDAttr& other)59 STAttr& STAttr::operator=(const STAttr& other) 60 60 { 61 61 if (this != &other) { … … 65 65 } 66 66 67 S DAttr::~SDAttr()67 STAttr::~STAttr() 68 68 {;} 69 69 70 70 71 Float S DAttr::diameter(Instrument inst) const71 Float STAttr::diameter(Instrument inst) const 72 72 { 73 73 Float D = 1.0; … … 107 107 } 108 108 109 Vector<Float> S DAttr::beamEfficiency(Instrument inst, const MEpoch& dateObs,109 Vector<Float> STAttr::beamEfficiency(Instrument inst, const MEpoch& dateObs, 110 110 const Vector<Float>& freqs) const 111 111 { … … 140 140 } 141 141 142 Vector<Float> S DAttr::apertureEfficiency(Instrument inst,142 Vector<Float> STAttr::apertureEfficiency(Instrument inst, 143 143 const MEpoch& dateObs, 144 144 const Vector<Float>& freqs) const … … 177 177 } 178 178 179 Vector<Float> S DAttr::JyPerK(Instrument inst, const MEpoch& dateObs,179 Vector<Float> STAttr::JyPerK(Instrument inst, const MEpoch& dateObs, 180 180 const Vector<Float>& freqs) const 181 181 { … … 187 187 Vector<Float> facs(freqs.nelements(),1.0); 188 188 for (uInt i=0; i<freqs.nelements(); i++) { 189 facs(i) = S DAttr::findJyPerK(etaAp(i), D);189 facs(i) = STAttr::findJyPerK(etaAp(i), D); 190 190 } 191 191 return facs; … … 193 193 194 194 195 Float S DAttr::findJyPerK(Float etaAp, Float D)195 Float STAttr::findJyPerK(Float etaAp, Float D) 196 196 // 197 197 // Converts K -> Jy … … 205 205 206 206 207 Vector<Float> S DAttr::gainElevationPoly(Instrument inst) const207 Vector<Float> STAttr::gainElevationPoly(Instrument inst) const 208 208 { 209 209 … … 223 223 } 224 224 225 FeedPolType S DAttr::feedPolType(Instrument inst) const225 FeedPolType STAttr::feedPolType(Instrument inst) const 226 226 { 227 227 FeedPolType type = UNKNOWNFEED; … … 249 249 250 250 // Private 251 Vector<Float> S DAttr::interp(const Vector<Float>& xOut,251 Vector<Float> STAttr::interp(const Vector<Float>& xOut, 252 252 const Vector<Float>& xIn, 253 253 const Vector<Float>& yIn) const … … 266 266 } 267 267 268 void S DAttr::initData()268 void STAttr::initData() 269 269 // 270 270 // Mopra data from Mopra web page … … 316 316 317 317 318 Instrument S DAttr::convertInstrument(const String& instrument,318 Instrument STAttr::convertInstrument(const String& instrument, 319 319 Bool throwIt) 320 320 { … … 322 322 t.upcase(); 323 323 324 // The strings are what S DReader returns, after cunning324 // The strings are what STReader returns, after cunning 325 325 // interrogation of station names... :-( 326 326 Instrument inst = asap::UNKNOWNINST;
Note: See TracChangeset
for help on using the changeset viewer.