CARMA C++
Intensity.h
Go to the documentation of this file.
1 // $Id: Intensity.h,v 1.1 2010/12/13 21:06:30 eml Exp $
2 
3 #ifndef SZA_UTIL_INTENSITY_H
4 #define SZA_UTIL_INTENSITY_H
5 
15 #include "carma/szautil/ConformableQuantity.h"
16 
17 namespace sza {
18  namespace util {
19 
20  class Intensity : public ConformableQuantity {
21  public:
22 
23  class JanskyPerSr {};
24  class MegaJanskyPerSr {};
25 
29  Intensity();
30  Intensity(const JanskyPerSr& units, double JyPerSr);
31  Intensity(const MegaJanskyPerSr& units, double MJyPerSr);
32 
36  virtual ~Intensity();
37 
38  // Return the flux, in Jy
39 
40  inline double JyPerSr() {
41  return JyPerSr_;
42  }
43 
44  void setJyPerSr(double JyPerSr);
45 
46  private:
47 
48  double JyPerSr_;
49 
50  void initialize();
51 
52  }; // End class Intensity
53 
54  } // End namespace util
55 } // End namespace sza
56 
57 
58 
59 #endif // End #ifndef SZA_UTIL_INTENSITY_H