Skip to content
Snippets Groups Projects
Commit 67176949 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Making sure it doesn't break down when getting hourly values just partly

for the last day in the sequence
parent 574b3a51
Branches
Tags v1.1.7
1 merge request!1Master
...@@ -235,7 +235,7 @@ public class PsilaRosaeTempModel extends I18nImpl implements Model { ...@@ -235,7 +235,7 @@ public class PsilaRosaeTempModel extends I18nImpl implements Model {
throw new ConfigValidationException("Please provide weather data."); throw new ConfigValidationException("Please provide weather data.");
} }
for(WeatherObservation o:observations) for(WeatherObservation o:observations)
{ {
switch(o.getElementMeasurementTypeId()) switch(o.getElementMeasurementTypeId())
{ {
case WeatherElements.TEMPERATURE_MEAN: case WeatherElements.TEMPERATURE_MEAN:
...@@ -261,7 +261,9 @@ public class PsilaRosaeTempModel extends I18nImpl implements Model { ...@@ -261,7 +261,9 @@ public class PsilaRosaeTempModel extends I18nImpl implements Model {
this.TM, this.TM,
this.timeZone, this.timeZone,
15, 15,
WeatherUtil.AGGREGATION_TYPE_AVERAGE); WeatherUtil.AGGREGATION_TYPE_AVERAGE,
0,
true);
for(WeatherObservation obs:dailyTemperatures) for(WeatherObservation obs:dailyTemperatures)
{ {
this.dataMatrix.setParamValueForDate(obs.getTimeMeasured(), DataMatrix.TMD, obs); this.dataMatrix.setParamValueForDate(obs.getTimeMeasured(), DataMatrix.TMD, obs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment