Changeset 890 for trunk/src/STAttr.h
- Timestamp:
- 03/08/06 13:32:27 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STAttr.h
r885 r890 27 27 //# AUSTRALIA 28 28 //# 29 //# $Id :$29 //# $Id$ 30 30 //#--------------------------------------------------------------------------- 31 31 #ifndef STATTR_H … … 44 44 namespace asap { 45 45 46 class STAttr : public SDLog{46 class STAttr : public Logger { 47 47 48 48 public: … … 50 50 // Constructor 51 51 STAttr(); 52 52 53 53 // Destructor 54 54 ~STAttr(); 55 55 56 56 // Copy Constructor (copy semantics) 57 57 STAttr(const STAttr& other); 58 58 59 59 // Assignment (copy semantics) 60 60 STAttr &operator=(const STAttr& other); 61 61 62 62 // Telescope diameter(m). Throws exception if unknown. 63 63 casa::Float diameter(Instrument inst) const; 64 64 65 65 // Beam efficiency. Frequency in Hz. Returns 1 if unknown. 66 casa::Vector<casa::Float> 67 beamEfficiency(Instrument instr, const casa::MEpoch& dateObs, 66 casa::Vector<casa::Float> 67 beamEfficiency(Instrument instr, const casa::MEpoch& dateObs, 68 68 const casa::Vector<casa::Float>& freqs) const; 69 69 70 70 // Aperture efficiency. Frequency in Hz. Returns 1 if unknown. 71 casa::Vector<casa::Float> 72 apertureEfficiency(Instrument instr, 73 const casa::MEpoch& dateObs, 71 casa::Vector<casa::Float> 72 apertureEfficiency(Instrument instr, 73 const casa::MEpoch& dateObs, 74 74 const casa::Vector<casa::Float>& freqs) const; 75 75 76 76 // Find factor to convert Jy -> K for this telescope, date of 77 77 // observation and frequency (Hz) 78 casa::Vector<casa::Float> JyPerK(Instrument instr, 79 const casa::MEpoch& dateObs, 80 const casa::Vector<casa::Float>& freqs) 78 casa::Vector<casa::Float> JyPerK(Instrument instr, 79 const casa::MEpoch& dateObs, 80 const casa::Vector<casa::Float>& freqs) 81 81 const; 82 82 … … 88 88 // from the data themselves 89 89 FeedPolType feedPolType(Instrument) const; 90 90 91 91 // Helper function to check instrument (antenna) name and give enum 92 static Instrument convertInstrument(const casa::String& instrument, 92 static Instrument convertInstrument(const casa::String& instrument, 93 93 casa::Bool throwIt); 94 94 95 95 // Helper function. Finds factor to convert K -> Jy. Provide 96 96 // aperture efficiency and dish geometric diameter (m) 97 97 static casa::Float findJyPerK(casa::Float etaAp, casa::Float D); 98 98 99 99 private: 100 101 // Static data 100 101 // Static data 102 102 casa::Vector<casa::Float> MopEtaBeamX_; // Beam efficiency 103 103 casa::Vector<casa::Float> MopEtaBeam2003Y_; … … 111 111 112 112 casa::Vector<casa::Float> TidGainElPoly_; // Gain-el correction poly coeffs 113 113 114 114 // Init private data 115 115 void initData(); 116 116 117 117 // Linear interpolation 118 casa::Vector<casa::Float> interp(const casa::Vector<casa::Float>& xOut, 118 casa::Vector<casa::Float> interp(const casa::Vector<casa::Float>& xOut, 119 119 const casa::Vector<casa::Float>& xIn, 120 120 const casa::Vector<casa::Float>& yIn) const;
Note: See TracChangeset
for help on using the changeset viewer.