19#ifndef FilterDeGrass_H
20#define FilterDeGrass_H
70 FilterDeGrass(
const std::vector< std::pair<std::string, std::string> >& vecArgs,
const std::string& name,
const Config& cfg);
72 virtual void process(
const unsigned int& param,
const std::vector<MeteoData>& ivec,
73 std::vector<MeteoData>& ovec);
76 void filterOnTsg(
const unsigned int& param,
const size_t& ii, std::vector<MeteoData>& ovec);
77 void filterOnTss(
const unsigned int& param,
const size_t& ii,
const double& tss_offset, std::vector<MeteoData>& ovec);
79 static double getTssTsgCorrelation(
const std::vector<MeteoData>& ovec,
const size_t& firstWarmDay_idx);
80 static void findFirstWarmDay(
const std::vector<MeteoData>& ovec,
size_t &tssWarmDay_idx,
size_t &tsgWarmDay_idx);
81 static double getTSSOffset(
const unsigned int& param,
const std::vector<MeteoData>& ivec);
82 static bool getDailyParameters(
const std::vector<MeteoData>& ivec,
const Date day_start,
double &HS_daily_median,
double &TSS_daily_median,
double &RSWR_daily_10pc);
83 static void getTSSDailyPpt(
const std::vector<MeteoData>& ivec,
const Date day_start,
double &o_TSS_daily_min,
double &o_TSS_daily_max,
double &o_TSS_daily_mean);
84 static double getDailyTSGVariance(
const std::vector<MeteoData>& ivec,
const Date day_start);
85 static Date getDailyStart(
const Date& resampling_date);
88 double TSS_daily_max, TSS_daily_min, TSS_daily_mean, TSG_daily_var;
89 double TSS_user_offset;
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:79
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:87
This filter is used to distinguish if snow (HS) is on the ground or not.
Definition: FilterDeGrass.h:68
FilterDeGrass(const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &name, const Config &cfg)
Definition: FilterDeGrass.cc:26
virtual void process(const unsigned int ¶m, const std::vector< MeteoData > &ivec, std::vector< MeteoData > &ovec)
Definition: FilterDeGrass.cc:41
The base class for all filters that provides the interface and a few helper methods.
Definition: ProcessingBlock.h:67