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
014662d5
Commit
014662d5
authored
1 year ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Change DSV temp threshold to 13 C, refactor to class variable
parent
8add2bf6
Branches
Branches containing commit
Tags
Tags containing commit
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
+6
-5
6 additions, 5 deletions
.../no/nibio/vips/model/alternariamodel/AlternariaModel.java
with
6 additions
and
5 deletions
src/main/java/no/nibio/vips/model/alternariamodel/AlternariaModel.java
+
6
−
5
View file @
014662d5
...
@@ -74,6 +74,7 @@ public class AlternariaModel extends I18nImpl implements Model{
...
@@ -74,6 +74,7 @@ public class AlternariaModel extends I18nImpl implements Model{
public
final
static
int
THRESHOLD_LW
=
30
;
// Threshold for leave wetness
public
final
static
int
THRESHOLD_LW
=
30
;
// Threshold for leave wetness
public
final
static
int
THRESHOLD_DSV_MAX
=
20
;
// Threshold Minimum for DSV
public
final
static
int
THRESHOLD_DSV_MAX
=
20
;
// Threshold Minimum for DSV
public
final
static
int
THRESHOLD_DSV_DIFF_MIN_MAX
=
5
;
// Threshold Maximum for DSV
public
final
static
int
THRESHOLD_DSV_DIFF_MIN_MAX
=
5
;
// Threshold Maximum for DSV
private
Double
THRESHOLD_DSV_TEMP_MIN
=
13.0
;
// Minimum temp for getting a DSV value
public
final
static
String
YES
=
"Y"
;
// Spray Date
public
final
static
String
YES
=
"Y"
;
// Spray Date
public
final
static
String
NO
=
"N"
;
public
final
static
String
NO
=
"N"
;
...
@@ -559,11 +560,11 @@ public class AlternariaModel extends I18nImpl implements Model{
...
@@ -559,11 +560,11 @@ public class AlternariaModel extends I18nImpl implements Model{
public
int
getDSV_DAILY
(
double
temp
,
int
lw
)
public
int
getDSV_DAILY
(
double
temp
,
int
lw
)
{
{
int
dsvResult
=
0
;
int
dsvResult
=
0
;
if
((
temp
>=
10
&&
temp
<=
17
)
&&
(
lw
<=
6
))
dsvResult
=
0
;
if
((
temp
>=
this
.
THRESHOLD_DSV_TEMP_MIN
&&
temp
<=
17
)
&&
(
lw
<=
6
))
dsvResult
=
0
;
if
((
temp
>=
10
&&
temp
<=
17
)
&&
(
lw
>=
7
&&
lw
<=
15
))
dsvResult
=
1
;
if
((
temp
>=
this
.
THRESHOLD_DSV_TEMP_MIN
&&
temp
<=
17
)
&&
(
lw
>=
7
&&
lw
<=
15
))
dsvResult
=
1
;
if
((
temp
>=
10
&&
temp
<=
17
)
&&
(
lw
>=
16
&&
lw
<=
20
))
dsvResult
=
2
;
if
((
temp
>=
this
.
THRESHOLD_DSV_TEMP_MIN
&&
temp
<=
17
)
&&
(
lw
>=
16
&&
lw
<=
20
))
dsvResult
=
2
;
if
((
temp
>=
10
&&
temp
<=
17
)
&&
(
lw
>
21
))
dsvResult
=
3
;
if
((
temp
>=
this
.
THRESHOLD_DSV_TEMP_MIN
&&
temp
<=
17
)
&&
(
lw
>
21
))
dsvResult
=
3
;
if
((
temp
>=
18
&&
temp
<=
20
)
&&
(
lw
<=
3
))
dsvResult
=
0
;
if
((
temp
>=
18
&&
temp
<=
20
)
&&
(
lw
<=
3
))
dsvResult
=
0
;
if
((
temp
>=
18
&&
temp
<=
20
)
&&
(
lw
>=
4
&&
lw
<=
8
))
dsvResult
=
1
;
if
((
temp
>=
18
&&
temp
<=
20
)
&&
(
lw
>=
4
&&
lw
<=
8
))
dsvResult
=
1
;
...
...
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