Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSLogic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
VIPSLogic
Commits
18fdfec2
Commit
18fdfec2
authored
7 months ago
by
Lene Wasskog
Browse files
Options
Downloads
Patches
Plain Diff
log: Log where weather observations are retrieved from
parent
b18f8aa5
No related branches found
No related tags found
1 merge request
!191
Add map module and Open-Meteo support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/nibio/vips/util/weather/WeatherDataSourceUtil.java
+1
-0
1 addition, 0 deletions
...ava/no/nibio/vips/util/weather/WeatherDataSourceUtil.java
with
1 addition
and
0 deletions
src/main/java/no/nibio/vips/util/weather/WeatherDataSourceUtil.java
+
1
−
0
View file @
18fdfec2
...
@@ -73,6 +73,7 @@ public class WeatherDataSourceUtil {
...
@@ -73,6 +73,7 @@ public class WeatherDataSourceUtil {
*/
*/
public
List
<
WeatherObservation
>
getWeatherObservations
(
PointOfInterestWeatherStation
station
,
Integer
logIntervalId
,
String
[]
elementMeasurementTypes
,
Date
startTime
,
Date
endTime
,
Boolean
ignoreErrors
,
Set
<
Integer
>
toleratedLogIntervalIds
)
throws
WeatherDataSourceException
{
public
List
<
WeatherObservation
>
getWeatherObservations
(
PointOfInterestWeatherStation
station
,
Integer
logIntervalId
,
String
[]
elementMeasurementTypes
,
Date
startTime
,
Date
endTime
,
Boolean
ignoreErrors
,
Set
<
Integer
>
toleratedLogIntervalIds
)
throws
WeatherDataSourceException
{
// Get measured (and possibly forecasted, depending on the data source) observations
// Get measured (and possibly forecasted, depending on the data source) observations
LOGGER
.
info
(
"Get weather observations for {} with URL {}"
,
station
.
getName
(),
station
.
getDataFetchUri
());
List
<
WeatherObservation
>
observations
=
this
.
getWeatherObservations
(
station
.
getDataFetchUri
(),
logIntervalId
,
elementMeasurementTypes
,
startTime
,
endTime
,
TimeZone
.
getTimeZone
(
station
.
getTimeZone
()),
ignoreErrors
,
toleratedLogIntervalIds
);
List
<
WeatherObservation
>
observations
=
this
.
getWeatherObservations
(
station
.
getDataFetchUri
(),
logIntervalId
,
elementMeasurementTypes
,
startTime
,
endTime
,
TimeZone
.
getTimeZone
(
station
.
getTimeZone
()),
ignoreErrors
,
toleratedLogIntervalIds
);
Collections
.
sort
(
observations
);
Collections
.
sort
(
observations
);
// Append forecasts, if available
// Append forecasts, if available
...
...
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