iLand
|
Climate handles climate input data and performs some basic related calculations on that data. More...
#include <climate.h>
Public Member Functions | |
Climate () | |
void | setup () |
setup routine that opens database connection More... | |
bool | isSetup () const |
const QString & | name () const |
table name of this climate More... | |
void | nextYear () |
const ClimateDay * | dayOfYear (const int dayofyear) const |
get pointer to climate structure by day of year (0-based-index) More... | |
const ClimateDay * | day (const int month, const int day) const |
gets pointer to climate structure of given day (0-based indices, i.e. month=11=december!) More... | |
int | whichDayOfYear (const ClimateDay *climate) const |
get the 0-based index of the climate given by 'climate' within the current year More... | |
void | monthRange (const int month, const ClimateDay **rBegin, const ClimateDay **rEnd) const |
returns two pointer (arguments!!!) to the begin and one after end of the given month (month: 0..11) More... | |
double | days (const int month) const |
returns number of days of given month (0..11) More... | |
int | daysOfYear () const |
returns number of days of current year. More... | |
const ClimateDay * | begin () const |
STL-like (pointer)-iterator to the first day of the current year. More... | |
const ClimateDay * | end () const |
STL-like pointer iterator to the day after last day of the current year. More... | |
void | toDate (const int yearday, int *rDay=0, int *rMonth=0, int *rYear=0) const |
decode "yearday" to the actual year, month, day if provided More... | |
double | totalRadiation () const |
return radiation sum (MJ) of the whole year More... | |
const double * | precipitationMonth () const |
double | meanAnnualTemperature () const |
the mean annual temperature of the current year (degree C) More... | |
double | annualPrecipitation () const |
annual precipitation sum (mm) More... | |
const double * | temperatureMonth () const |
get a array with mean temperatures per month (deg C) More... | |
int | climateDataYear () const |
retrieve the year provided in the climate table More... | |
int | phenologyGroupCount () const |
const Phenology & | phenology (const int phenologyGroup) const |
phenology class of given type More... | |
const Sun & | sun () const |
solar radiation class More... | |
double | daylength_h (const int doy) const |
length of the day in hours More... | |
Climate handles climate input data and performs some basic related calculations on that data.
Climate::Climate | ( | ) |
|
inline |
annual precipitation sum (mm)
|
inline |
STL-like (pointer)-iterator to the first day of the current year.
|
inline |
retrieve the year provided in the climate table
const ClimateDay * Climate::day | ( | const int | month, |
const int | day | ||
) | const |
gets pointer to climate structure of given day (0-based indices, i.e. month=11=december!)
|
inline |
length of the day in hours
|
inline |
get pointer to climate structure by day of year (0-based-index)
double Climate::days | ( | const int | month | ) | const |
returns number of days of given month (0..11)
int Climate::daysOfYear | ( | ) | const |
returns number of days of current year.
|
inline |
STL-like pointer iterator to the day after last day of the current year.
|
inline |
|
inline |
the mean annual temperature of the current year (degree C)
void Climate::monthRange | ( | const int | month, |
const ClimateDay ** | rBegin, | ||
const ClimateDay ** | rEnd | ||
) | const |
returns two pointer (arguments!!!) to the begin and one after end of the given month (month: 0..11)
|
inline |
table name of this climate
void Climate::nextYear | ( | ) |
const Phenology & Climate::phenology | ( | const int | phenologyGroup | ) | const |
phenology class of given type
return the phenology of the group...
|
inline |
|
inline |
void Climate::setup | ( | ) |
setup routine that opens database connection
|
inline |
solar radiation class
|
inline |
get a array with mean temperatures per month (deg C)
void Climate::toDate | ( | const int | yearday, |
int * | rDay = 0 , |
||
int * | rMonth = 0 , |
||
int * | rYear = 0 |
||
) | const |
decode "yearday" to the actual year, month, day if provided
|
inline |
return radiation sum (MJ) of the whole year
|
inline |
get the 0-based index of the climate given by 'climate' within the current year