Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Tom Rink
python
Commits
2de191df
Commit
2de191df
authored
4 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
e0e07010
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/icing/pirep_goes.py
+20
-5
20 additions, 5 deletions
modules/icing/pirep_goes.py
with
20 additions
and
5 deletions
modules/icing/pirep_goes.py
+
20
−
5
View file @
2de191df
...
...
@@ -168,18 +168,33 @@ def analyze(ice_dct, no_ice_dct):
print
(
np
.
sum
(
np
.
logical_and
(
hist_a
>
0
,
hist_b
>
0
)))
last_file
=
None
cnt
=
0
ice_files
=
[]
ice_times
=
[]
for
ts
in
list
(
ice_dct
.
keys
()):
try
:
ds
=
get_goes_datasource
(
ts
)
goes_file
,
t_0
,
_
=
ds
.
get_file
(
ts
)
if
goes_file
!=
last_file
:
ice_files
.
append
(
goes_file
)
ice_times
.
append
(
t_0
)
last_file
=
goes_file
except
Exception
:
continue
last_file
=
None
no_ice_files
=
[]
no_ice_times
=
[]
for
ts
in
list
(
no_ice_dct
.
keys
()):
try
:
ds
=
get_goes_datasource
(
ts
)
goes_file
=
ds
.
get_file
(
ts
)
[
0
]
goes_file
,
t_0
,
_
=
ds
.
get_file
(
ts
)
if
goes_file
!=
last_file
:
print
(
goes_file
)
no_ice_files
.
append
(
goes_file
)
no_ice_times
.
append
(
t_0
)
last_file
=
goes_file
cnt
+=
1
except
Exception
:
continue
print
(
cnt
)
def
create_file
(
filename
,
ds_list
,
ds_types
):
pass
\ No newline at end of file
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