Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSCommon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
VIPSCommon
Commits
a37472a4
Commit
a37472a4
authored
3 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Added mapping for Wind speed at 10m
parent
6bb29bd9
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/ipmdecisions/IPMDecisionsWeatherUtil.java
+18
-13
18 additions, 13 deletions
...a/no/nibio/vips/ipmdecisions/IPMDecisionsWeatherUtil.java
with
18 additions
and
13 deletions
src/main/java/no/nibio/vips/ipmdecisions/IPMDecisionsWeatherUtil.java
+
18
−
13
View file @
a37472a4
...
...
@@ -19,7 +19,9 @@
package
no.nibio.vips.ipmdecisions
;
import
java.util.HashMap
;
import
java.util.Map
;
import
static
java
.
util
.
Map
.
entry
;
import
no.nibio.vips.util.WeatherElements
;
/**
...
...
@@ -35,19 +37,22 @@ public class IPMDecisionsWeatherUtil {
WeatherElements
.
LEAF_WETNESS_DURATION
,
3101
// BT
);
private
final
Map
<
Integer
,
String
>
IPMToVIPS
=
Map
.
of
(
1001
,
WeatherElements
.
TEMPERATURE_MEAN
,
// TM (Actually TT...)
1002
,
WeatherElements
.
TEMPERATURE_MEAN
,
// TM
2001
,
WeatherElements
.
PRECIPITATION
,
// RR
3001
,
WeatherElements
.
RELATIVE_HUMIDITY_MEAN
,
// UU/UM
3002
,
WeatherElements
.
RELATIVE_HUMIDITY_MEAN
,
// UM
4002
,
WeatherElements
.
WIND_SPEED_2M
,
// FM2/FF2
4003
,
WeatherElements
.
WIND_SPEED_2M
,
// FM2/FF2
5001
,
WeatherElements
.
GLOBAL_RADIATION
,
// Q0
3101
,
WeatherElements
.
LEAF_WETNESS_DURATION
,
// BT
1901
,
WeatherElements
.
DEW_POINT_TEMPERATURE
// DT
);
// Has more than 10 entries, so must be initalized in the class constructor
private
final
Map
<
Integer
,
String
>
IPMToVIPS
=
Map
.
ofEntries
(
entry
(
1001
,
WeatherElements
.
TEMPERATURE_MEAN
),
// TM (Actually TT...)
entry
(
1002
,
WeatherElements
.
TEMPERATURE_MEAN
),
// TM
entry
(
1901
,
WeatherElements
.
DEW_POINT_TEMPERATURE
),
// DT
entry
(
2001
,
WeatherElements
.
PRECIPITATION
),
// RR
entry
(
3001
,
WeatherElements
.
RELATIVE_HUMIDITY_MEAN
),
// UU/UM
entry
(
3002
,
WeatherElements
.
RELATIVE_HUMIDITY_MEAN
),
// UM
entry
(
3101
,
WeatherElements
.
LEAF_WETNESS_DURATION
),
// BT
entry
(
4002
,
WeatherElements
.
WIND_SPEED_2M
),
// FM2/FF2
entry
(
4003
,
WeatherElements
.
WIND_SPEED_2M
),
// FM2/FF2
entry
(
4012
,
WeatherElements
.
WIND_SPEED_10M
),
// FM10/FF10
entry
(
4013
,
WeatherElements
.
WIND_SPEED_10M
),
// FM10/FF10
entry
(
5001
,
WeatherElements
.
GLOBAL_RADIATION
)
// Q0
)
;
public
Integer
getIPMParameterId
(
String
VIPSParameterId
)
{
return
this
.
VIPSToIPM
.
get
(
VIPSParameterId
);
...
...
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