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
72946544
Commit
72946544
authored
4 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
4da7b951
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
+18
-8
18 additions, 8 deletions
modules/icing/pirep_goes.py
with
18 additions
and
8 deletions
modules/icing/pirep_goes.py
+
18
−
8
View file @
72946544
...
...
@@ -61,6 +61,8 @@ def run():
lon_s
=
np
.
zeros
(
1
)
lat_s
=
np
.
zeros
(
1
)
last_clvr_file
=
None
last_h5f
=
None
for
idx
,
time
in
enumerate
(
time_keys
):
if
(
idx
%
4
)
!=
0
:
continue
...
...
@@ -70,6 +72,7 @@ def run():
lat
,
lon
,
fl
,
rpt_str
=
tup
lat_s
[
0
]
=
lat
lon_s
[
0
]
=
lon
cc
,
ll
=
nav
.
earth_to_lc_s
(
lon_s
,
lat_s
)
#images, _, _, idxs = get_images(lon_s, lat_s, time, ['14'], [10], [1])
#if images is not None:
...
...
@@ -77,14 +80,21 @@ def run():
clvr_ds
=
get_clavrx_datasource
(
time
)
clvr_file
=
clvr_ds
.
get_file
(
time
)
cc
,
ll
=
nav
.
earth_to_lc_s
(
lon_s
,
lat_s
)
try
:
h5f
=
h5py
.
File
(
clvr_file
,
'
r
'
)
except
Exception
:
h5f
.
close
()
print
(
'
Problem with file:
'
,
clvr_file
)
if
clvr_file
is
None
:
continue
if
last_clvr_file
is
None
:
last_clvr_file
=
clvr_file
else
:
if
clvr_file
==
last_clvr_file
:
hf5
=
last_h5f
else
:
last_h5f
.
close
()
try
:
h5f
=
h5py
.
File
(
clvr_file
,
'
r
'
)
except
Exception
:
h5f
.
close
()
print
(
'
Problem with file:
'
,
clvr_file
)
continue
last_h5f
=
hf5
gvals
=
get_grid_values
(
h5f
,
'
temp_11_0um_nom
'
,
ll
[
0
],
cc
[
0
],
20
)
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