![]() |
FireSTARR
|
A Weather value with calculated FWI indices. More...
#include <FWI.h>
Public Member Functions | |
FwiWeather () noexcept | |
Construct with 0 for all values. | |
FwiWeather (istringstream *iss, string *str) | |
Construct by reading from istringstream. | |
FwiWeather (const FwiWeather &yesterday, const int month, const MathSize latitude, const Temperature &temp, const RelativeHumidity &rh, const Wind &wind, const Precipitation &prec) | |
construct by applying noon weather to yesterday's indices | |
FwiWeather (const Temperature &temp, const RelativeHumidity &rh, const Wind &wind, const Precipitation &prec, const Ffmc &ffmc, const Dmc &dmc, const Dc &dc, const Isi &isi, const Bui &bui, const Fwi &fwi) noexcept | |
Constructor. | |
FwiWeather (const Temperature &temp, const RelativeHumidity &rh, const Wind &wind, const Precipitation &prec, const Ffmc &ffmc, const Dmc &dmc, const Dc &dc, const Isi &isi, const Bui &bui) noexcept | |
Construct by calculating FWI. | |
FwiWeather (const Temperature &temp, const RelativeHumidity &rh, const Wind &wind, const Precipitation &prec, const Ffmc &ffmc, const Dmc &dmc, const Dc &dc) noexcept | |
Construct by calculating ISI, BUI, & FWI. | |
FwiWeather (const FwiWeather &wx, const Speed &ws, const Ffmc &ffmc) noexcept | |
Construct by recalculating with different wind Speed and Ffmc. | |
~FwiWeather () override=default | |
Destructor. | |
constexpr | FwiWeather (FwiWeather &&rhs) noexcept=default |
Move constructor. | |
constexpr | FwiWeather (const FwiWeather &rhs) noexcept=default |
Copy constructor. | |
FwiWeather & | operator= (FwiWeather &&rhs) noexcept=default |
Move assignment. | |
FwiWeather & | operator= (const FwiWeather &rhs)=default |
Copy assignment. | |
constexpr const Ffmc & | ffmc () const |
Fine Fuel Moisture Code. | |
constexpr const Dmc & | dmc () const |
Duff Moisture Code. | |
constexpr const Dc & | dc () const |
Drought Code. | |
constexpr const Isi & | isi () const |
Initial Spread Index. | |
constexpr const Bui & | bui () const |
Build-up Index. | |
constexpr const Fwi & | fwi () const |
Fire Weather Index. | |
constexpr MathSize | mcFfmcPct () const |
Moisture content (%) based on Ffmc. | |
constexpr MathSize | mcDmcPct () const |
Moisture content (%) based on Dmc. | |
constexpr MathSize | mcFfmc () const |
Moisture content (ratio) based on Ffmc. | |
constexpr MathSize | mcDmc () const |
Moisture content (ratio) based on Dmc. | |
constexpr MathSize | ffmcEffect () const |
Ffmc effect used for spread. | |
![]() | |
virtual | ~Weather ()=default |
Destructor. | |
constexpr | Weather () noexcept=default |
Constructor with no initialization. | |
constexpr | Weather (const Temperature &temp, const RelativeHumidity &rh, const Wind &wind, const Precipitation &prec) noexcept |
Construct with given indices. | |
constexpr | Weather (Weather &&rhs) noexcept=default |
Move constructor. | |
constexpr | Weather (const Weather &rhs) noexcept=default |
Copy constructor. | |
Weather & | operator= (Weather &&rhs) noexcept=default |
Move assignment. | |
Weather & | operator= (const Weather &rhs)=default |
Move assignment. | |
constexpr const Temperature & | temp () const noexcept |
Temperature (Celsius) | |
constexpr const RelativeHumidity & | rh () const noexcept |
Relative Humidity (%) | |
constexpr const Wind & | wind () const noexcept |
Wind (km/h) | |
constexpr const Precipitation & | prec () const noexcept |
Precipitation (1hr accumulation) (mm) | |
Static Public Attributes | |
static const FwiWeather | Zero |
FwiWeather with 0 for all Indices. | |
static const FwiWeather | Invalid |
Private Member Functions | |
FwiWeather (const FwiWeather &wx, const Wind &wind, const Ffmc &ffmc, const Isi &isi) noexcept | |
Calculate based on indices plus new Wind, Ffmc, and Isi. | |
FwiWeather (const FwiWeather &wx, const Wind &wind, const Ffmc &ffmc) noexcept | |
Calculate based on indices plus new Wind and Ffmc. | |
Private Attributes | |
Ffmc | ffmc_ |
Fine Fuel Moisture Code. | |
Dmc | dmc_ |
Duff Moisture Code. | |
Dc | dc_ |
Drought Code. | |
Isi | isi_ |
Initial Spread Index. | |
Bui | bui_ |
Build-up Index. | |
Fwi | fwi_ |
Fire Weather Index. | |
MathSize | mc_ffmc_pct_ |
Moisture content (ratio) based on Ffmc. | |
MathSize | mc_dmc_pct_ |
Moisture content (ratio) based on Dmc. | |
MathSize | ffmc_effect_ |
Ffmc effect used for spread. | |
A Weather value with calculated FWI indices.
fs::wx::FwiWeather::FwiWeather | ( | istringstream * | iss, |
string * | str ) |
Construct by reading from istringstream.
iss | Stream to parse |
str | string to read into |
fs::wx::FwiWeather::FwiWeather | ( | const FwiWeather & | yesterday, |
const int | month, | ||
const MathSize | latitude, | ||
const Temperature & | temp, | ||
const RelativeHumidity & | rh, | ||
const Wind & | wind, | ||
const Precipitation & | prec ) |
construct by applying noon weather to yesterday's indices
yesterday | FwiWeather yesterday used for startup indices |
month | Month to calculate for |
latitude | Latitude to calculate for |
temp | Temperature (Celsius) |
rh | Relative Humidity (%) |
wind | Wind (km/h) |
prec | Precipitation (24hr accumulated, noon-to-noon) (mm) |
|
noexcept |
Constructor.
temp | Temperature (Celsius) |
rh | Relative Humidity (%) |
wind | Wind (km/h) |
prec | Precipitation (1hr accumulation) (mm) |
ffmc | Fine Fuel Moisture Code |
dmc | Duff Moisture Code |
dc | Drought Code |
isi | Initial Spread Index |
bui | Build-up Index |
fwi | Fire Weather Index |
|
noexcept |
Construct by calculating FWI.
temp | Temperature (Celsius) |
rh | Relative Humidity (%) |
wind | Wind (km/h) |
prec | Precipitation (1hr accumulation) (mm) |
ffmc | Fine Fuel Moisture Code |
dmc | Duff Moisture Code |
dc | Drought Code |
isi | Initial Spread Index |
bui | Build-up Index |
|
noexcept |
Construct by calculating ISI, BUI, & FWI.
temp | Temperature (Celsius) |
rh | Relative Humidity (%) |
wind | Wind (km/h) |
prec | Precipitation (1hr accumulation) (mm) |
ffmc | Fine Fuel Moisture Code |
dmc | Duff Moisture Code |
dc | Drought Code |
|
noexcept |
|
constexprdefaultnoexcept |
Move constructor.
rhs | FwiWeather to move from |
|
constexprdefaultnoexcept |
Copy constructor.
rhs | FwiWeather to copy from |
|
privatenoexcept |
|
privatenoexcept |
Calculate based on indices plus new Wind and Ffmc.
wx | FwiWeather to use most indices from |
wind | Wind to override with |
ffmc | Ffmc to override with |
|
inlinenodiscardconstexpr |
Build-up Index.
|
inlinenodiscardconstexpr |
Drought Code.
|
inlinenodiscardconstexpr |
Duff Moisture Code.
|
inlinenodiscardconstexpr |
Fine Fuel Moisture Code.
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
Initial Spread Index.
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
default |
|
defaultnoexcept |
|
static |
|
static |
FwiWeather with 0 for all Indices.