Skip to content
Snippets Groups Projects
Commit e96b0c84 authored by Bhabesh Bhabani Mukhopadhyay's avatar Bhabesh Bhabani Mukhopadhyay
Browse files

Value of current date and previous date #4

#4 Instead of current date, previous date used to retain old dates
parent f0eda1d4
No related branches found
No related tags found
No related merge requests found
......@@ -368,13 +368,16 @@ public class AlternariaModel extends I18nImpl implements Model{
)
{
double counterTMHourly = 0;
//TODO calculation of accumulation value and add to daily
for(WeatherObservation wo: altenariaWeatherLIstHourly_tm)
{
counterTMHourly = counterTMHourly + wo.getValue();
System.out.println(" date : "+wo.getTimeMeasured()+" -- type : "+wo.getLogIntervalId()+ " -- value : "+wo.getValue() + "-- current date : "+dateHourlyTm_currentDay + " -- previous day : "+dateHourlyTm_previousDay);
}
//average value of temperature for a day
dataMatrix.setParamDoubleValueForDate ( dateHourlyTm_currentDay
dataMatrix.setParamDoubleValueForDate ( dateHourlyTm_previousDay
, DataMatrix.TEMPERATURE_MEAN
, (
counterTMHourly
......@@ -433,7 +436,7 @@ public class AlternariaModel extends I18nImpl implements Model{
}
dataMatrix.setParamIntValueForDate(
dateHourlyLw_currentDay
dateHourlyLw_previousDay
, DataMatrix.LEAF_WETNESS_DURATION
, counterLwHourly
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment