WSL/SLF GitLab Repository

Commit d9de92cf authored by Mathias Bavay's avatar Mathias Bavay
Browse files

added some comments in the code and updated the unventillated_T filter options in the tests

parent 8aa4ae0b
......@@ -1024,6 +1024,7 @@ size_t OrdinaryKrigingAlgorithm::getTimeSeries(const bool& detrend_data, std::ve
}
}
//fill time series
for(; d1<=date; d1+=Tstep) {
iomanager.getMeteoData(d1, Meteo);
if (Meteo.size()!=nrStations) {
......@@ -1033,7 +1034,7 @@ size_t OrdinaryKrigingAlgorithm::getTimeSeries(const bool& detrend_data, std::ve
throw InvalidArgumentException(ss.str(), AT);
}
if (detrend_data) {
if (detrend_data) { //detrend data
//find trend
std::vector<double> vecDat;
for(size_t ii=0; ii<nrStations; ii++)
......@@ -1053,7 +1054,7 @@ size_t OrdinaryKrigingAlgorithm::getTimeSeries(const bool& detrend_data, std::ve
vecVecData.at(ii).push_back( val );
}
} else {
} else { //do not detrend data
for(size_t ii=0; ii<nrStations; ii++)
vecVecData.at(ii).push_back( Meteo[ii](param) );
}
......
......@@ -42,7 +42,7 @@ TA::arg1 = 240
TA::filter2 = max
TA::arg2 = 320
TA::filter3 = unventilated_T
TA::arg3 = soft 0.23
TA::arg3 = 0.23
RH::filter1 = min_max
RH::arg1 = 0.01 1.2
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment