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

Fixed date setting in weather data fetching

parent b9b691c4
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ public class NaerstadModelPreprocessor extends ModelRunPreprocessor{ ...@@ -53,7 +53,7 @@ public class NaerstadModelPreprocessor extends ModelRunPreprocessor{
Date calculationEnd = format.parse(configuration.getForecastModelConfigurationValue(NAERSTADMO_CALCULATION_END)); Date calculationEnd = format.parse(configuration.getForecastModelConfigurationValue(NAERSTADMO_CALCULATION_END));
Date dateEndWeatherData = configuration.getDateEnd().compareTo(SystemTime.getSystemTime()) < 0 ? configuration.getDateEnd() : SystemTime.getSystemTime(); Date dateEndWeatherData = configuration.getDateEnd().compareTo(SystemTime.getSystemTime()) < 0 ? configuration.getDateEnd() : SystemTime.getSystemTime();
List<WeatherObservation> observations = getWeatherObservations(weatherStation.getDataFetchUri(), WeatherObservation.LOG_INTERVAL_ID_1H, new String[]{"TM", "RR", "BT","Q0","UM"}, calculationStart, dateEndWeatherData, timeZone); List<WeatherObservation> observations = getWeatherObservations(weatherStation.getDataFetchUri(), WeatherObservation.LOG_INTERVAL_ID_1H, new String[]{"TM", "RR", "BT","Q0","UM"}, configuration.getDateStart(), dateEndWeatherData, timeZone);
ModelConfiguration retVal = new ModelConfiguration(); ModelConfiguration retVal = new ModelConfiguration();
retVal.setModelId(this.getModelId()); retVal.setModelId(this.getModelId());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment