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
64faf508
Commit
64faf508
authored
2 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
8f2aa2a5
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
modules/util/viirs.py
+12
-1
12 additions, 1 deletion
modules/util/viirs.py
with
12 additions
and
1 deletion
modules/util/viirs.py
+
12
−
1
View file @
64faf508
import
numpy
as
np
import
numpy
as
np
import
h5py
import
h5py
from
util.util
import
get_grid_values
from
util.util
import
get_grid_values
,
get_grid_values_all
import
glob
import
glob
mod_res_params
=
[
'
M07
'
,
'
M08
'
,
'
M10
'
,
'
M12
'
,
'
M13
'
,
'
M14
'
,
'
M15
'
,
'
M16
'
]
mod_res_params
=
[
'
M07
'
,
'
M08
'
,
'
M10
'
,
'
M12
'
,
'
M13
'
,
'
M14
'
,
'
M15
'
,
'
M16
'
]
...
@@ -70,3 +70,14 @@ def run(mod_res_filename, img_res_filename, mod_tiles, img_tiles):
...
@@ -70,3 +70,14 @@ def run(mod_res_filename, img_res_filename, mod_tiles, img_tiles):
img_h5f
.
close
()
img_h5f
.
close
()
def
run_test
(
directory
):
files
=
glob
.
glob
(
directory
+
'
clavrx_snpp_viirs*.h5
'
)
for
file
in
files
:
h5f
=
h5py
.
File
(
file
,
'
r
'
)
opd_nl
=
get_grid_values_all
(
h5f
,
'
cld_opd_nlcomp
'
)
reff_nl
=
get_grid_values_all
(
h5f
,
'
cld_reff_nlcomp
'
)
if
np
.
sum
(
np
.
isnan
(
opd_nl
))
<
opd_nl
.
size
and
np
.
sum
(
np
.
isnan
(
reff_nl
))
<
reff_nl
.
size
:
print
(
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