ReFRACtor
|
This calculates the relative humidity. More...
#include <relative_humidity.h>
Public Member Functions | |
RelativeHumidity (const boost::shared_ptr< Absorber > &Abs, const boost::shared_ptr< Temperature > &Temp, const boost::shared_ptr< Pressure > &Press) | |
Constructor. More... | |
virtual | ~RelativeHumidity () |
virtual boost::shared_ptr< RelativeHumidity > | clone () const |
virtual boost::shared_ptr< RelativeHumidity > | clone (const boost::shared_ptr< Absorber > &Abs, const boost::shared_ptr< Temperature > &Temp, const boost::shared_ptr< Pressure > &Press) const |
void | print (std::ostream &Os) |
Print to a string. More... | |
std::string | print_to_string () const |
Print to string. More... | |
ArrayAd< double, 1 > | relative_humidity_grid () const |
Calculate relative humidity. More... | |
ArrayAd< double, 1 > | relative_humidity_layer () const |
Relative humidity for each layer. More... | |
ArrayAd< double, 1 > | specific_humidity_grid () const |
Calculate specific humidity. More... | |
This calculates the relative humidity.
This is a straight forward calculation from the H2O AbsorberVmr, Temperature, and Pressure. There is no existing class that this obviously goes to, so we just pull this out into its own class.
Definition at line 14 of file relative_humidity.h.
RelativeHumidity::RelativeHumidity | ( | const boost::shared_ptr< Absorber > & | Abs, |
const boost::shared_ptr< Temperature > & | Temp, | ||
const boost::shared_ptr< Pressure > & | Press | ||
) |
Constructor.
Definition at line 20 of file relative_humidity.cc.
|
inlinevirtual |
Definition at line 24 of file relative_humidity.h.
|
virtual |
Definition at line 29 of file relative_humidity.cc.
|
virtual |
Definition at line 36 of file relative_humidity.cc.
void RelativeHumidity::print | ( | std::ostream & | Os | ) |
Print to a string.
Definition at line 46 of file relative_humidity.cc.
|
inlineinherited |
Print to string.
This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.
Definition at line 31 of file printable.h.
ArrayAd< double, 1 > RelativeHumidity::relative_humidity_grid | ( | ) | const |
Calculate relative humidity.
Definition at line 78 of file relative_humidity.cc.
ArrayAd< double, 1 > RelativeHumidity::relative_humidity_layer | ( | ) | const |
Relative humidity for each layer.
This is just the average of the 2 levels.
Definition at line 97 of file relative_humidity.cc.
ArrayAd< double, 1 > RelativeHumidity::specific_humidity_grid | ( | ) | const |
Calculate specific humidity.
Definition at line 65 of file relative_humidity.cc.