![]() |
SuperNOVAS C++ API v1.6
High-precision C/C++ astrometry library
|
Weather data, mainly for atmopsheric refraction correction for Earth-based (geodetic) observers. More...
#include <supernovas.h>
Public Member Functions | |
| Weather (const Temperature &T, const Pressure &p, double humidity_percent) | |
| Instantiates a weather dataset with the specified parameters. | |
| Weather (double celsius, double pascal, double humidity_percent) | |
| Instantiates a weather dataset with the specified parameters. | |
| double | humidity () const |
| Returns the humidity value, as a percentage, from this weather dataset. | |
| double | humidity_fraction () const |
| Returns the humidity value, as a fraction, from this weather dataset. | |
| const Pressure & | pressure () const |
| Returns a reference to the the atmpspheric pressure value in this weather dataset. | |
| const Temperature & | temperature () const |
| Returns a reference to the temperature value in this weather dataset. | |
| std::string | to_string () const |
| Returns a string representation of this weather dataset. | |
| Public Member Functions inherited from supernovas::Validating | |
| bool | is_valid () const |
| Returns the previously set 'valid' stae of the implementing instance. | |
| operator bool () const | |
| Objects that implement Validating can be used in conditionals directly, without explicitly calling is_valid(). | |
Static Public Member Functions | |
| static Weather | guess (const Site &site) |
| Returns a new weather dataset populated with typical annual average weather parameters for the given observing site, based on a simple global weather model. | |
| static const Weather & | standard () |
| Returns a reference to a fixed standard weather instance (T = 10deg;C, p = 1 atm, humidity = 50%). | |
Additional Inherited Members | |
| Protected Member Functions inherited from supernovas::Validating | |
| Validating () | |
| dummy constructor; | |
| Protected Attributes inherited from supernovas::Validating | |
| bool | _valid = false |
| the state variable. | |
Weather data, mainly for atmopsheric refraction correction for Earth-based (geodetic) observers.
| supernovas::Weather::Weather | ( | const Temperature & | T, |
| const Pressure & | p, | ||
| double | humidity_percent ) |
Instantiates a weather dataset with the specified parameters.
| T | [C] outside air temperature |
| p | [Pa] atmospheric pressure |
| humidity_percent | [%] relative humidity |
Referenced by guess(), and standard().
| supernovas::Weather::Weather | ( | double | celsius, |
| double | pascal, | ||
| double | humidity_percent ) |
Instantiates a weather dataset with the specified parameters.
| celsius | [C] ambient air temperature |
| pascal | [Pa] atmospheric pressure |
| humidity_percent | [%] relative humidity |
Returns a new weather dataset populated with typical annual average weather parameters for the given observing site, based on a simple global weather model.
This provides a very crude educated guess for the weather at the site. For any precision application (e.g. refraction calculation) you should always use measured weather values instead.
| site | The observing site |
References Weather(), supernovas::Site::_on_surface(), novas_on_surface::humidity, supernovas::Unit::mbar, novas_set_default_weather(), novas_on_surface::pressure, and novas_on_surface::temperature.
| double supernovas::Weather::humidity | ( | ) | const |
Returns the humidity value, as a percentage, from this weather dataset.
Referenced by supernovas::Source::horizontal_track(), and to_string().
| double supernovas::Weather::humidity_fraction | ( | ) | const |
Returns the humidity value, as a fraction, from this weather dataset.
| const Pressure & supernovas::Weather::pressure | ( | ) | const |
Returns a reference to the the atmpspheric pressure value in this weather dataset.
Referenced by supernovas::Source::horizontal_track().
|
static |
Returns a reference to a fixed standard weather instance (T = 10deg;C, p = 1 atm, humidity = 50%).
References Weather(), and supernovas::Unit::atm.
Referenced by supernovas::Source::copy().
| const Temperature & supernovas::Weather::temperature | ( | ) | const |
Returns a reference to the temperature value in this weather dataset.
Referenced by supernovas::Source::horizontal_track().
| std::string supernovas::Weather::to_string | ( | ) | const |
Returns a string representation of this weather dataset.
References humidity().