Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AossTower
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
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
MetObs
AossTower
Commits
8fc9f2de
Commit
8fc9f2de
authored
5 years ago
by
William Roberts
Browse files
Options
Downloads
Patches
Plain Diff
Improve comments
parent
3bd4c27c
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
aosstower/level_00/influxdb.py
+1
-2
1 addition, 2 deletions
aosstower/level_00/influxdb.py
with
1 addition
and
2 deletions
aosstower/level_00/influxdb.py
+
1
−
2
View file @
8fc9f2de
...
...
@@ -78,7 +78,7 @@ class Updater(object):
if
self
.
data
.
get
(
key
)
is
None
:
self
.
data
[
key
]
=
np
.
array
([])
self
.
data
[
key
]
=
np
.
append
(
self
.
data
[
key
][
time_mask
],
record
[
key
])
# Gets the seconds from the start of the current year. This makes any interval chronologically consistent.
reference
=
pd
.
datetime
(
record
[
'
timestamp
'
].
year
,
1
,
1
)
progress
=
(
record
[
'
timestamp
'
]
-
reference
).
total_seconds
()
%
self
.
submit_interval
# If data hits or will pass over a submit_interval interval, return data.
...
...
@@ -143,7 +143,6 @@ def construct_url(data):
def
get_url_data
(
avg
,
wu_id
,
wu_pw
):
# Information on what paramaters that can be sent:
# https://feedback.weather.com/customer/en/portal/articles/2924682-pws-upload-protocol?b_id=17298
# For timestamp, want YYYY-MM-DD+hh:mm:ss of last dataset that was averaged, rounded up to nearest minute.
timestamp
=
avg
.
index
[
-
1
]
wind_dir
=
avg
[
'
wind_dir
'
][
-
1
]
wind_dir_2m
=
avg
[
'
wind_dir_2m
'
][
-
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