Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Model ALTERNARIA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
Models
Java
Model ALTERNARIA
Commits
e96b0c84
Commit
e96b0c84
authored
5 years ago
by
Bhabesh Bhabani Mukhopadhyay
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/nibio/vips/model/alternariamodel/AlternariaModel.java
+5
-2
5 additions, 2 deletions
.../no/nibio/vips/model/alternariamodel/AlternariaModel.java
with
5 additions
and
2 deletions
src/main/java/no/nibio/vips/model/alternariamodel/AlternariaModel.java
+
5
−
2
View file @
e96b0c84
...
...
@@ -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_
current
Day
dataMatrix
.
setParamDoubleValueForDate
(
dateHourlyTm_
previous
Day
,
DataMatrix
.
TEMPERATURE_MEAN
,
(
counterTMHourly
...
...
@@ -433,7 +436,7 @@ public class AlternariaModel extends I18nImpl implements Model{
}
dataMatrix
.
setParamIntValueForDate
(
dateHourlyLw_
current
Day
dateHourlyLw_
previous
Day
,
DataMatrix
.
LEAF_WETNESS_DURATION
,
counterLwHourly
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment