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
1e282db4
Commit
1e282db4
authored
2 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
4ae756f8
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/util/viirs_l1b_l2.py
+1
-2
1 addition, 2 deletions
modules/util/viirs_l1b_l2.py
with
1 addition
and
2 deletions
modules/util/viirs_l1b_l2.py
+
1
−
2
View file @
1e282db4
...
@@ -59,7 +59,7 @@ def process_cld_prob(grd_k):
...
@@ -59,7 +59,7 @@ def process_cld_prob(grd_k):
num_keep
=
np
.
sum
(
keep
)
num_keep
=
np
.
sum
(
keep
)
keep_clr
=
np
.
where
(
keep
,
grd_k
<
0.20
,
False
)
keep_clr
=
np
.
where
(
keep
,
grd_k
<
0.20
,
False
)
frac_keep
=
np
.
sum
(
keep_clr
)
/
num_keep
frac_keep
=
np
.
sum
(
keep_clr
)
/
num_keep
if
not
(
0.3
8
<
frac_keep
<
0.6
2
):
if
not
(
0.3
5
<
frac_keep
<
0.6
5
):
return
None
return
None
grd_k
=
np
.
where
(
np
.
invert
(
keep
),
0
,
grd_k
)
# Convert NaN to 0
grd_k
=
np
.
where
(
np
.
invert
(
keep
),
0
,
grd_k
)
# Convert NaN to 0
return
grd_k
return
grd_k
...
@@ -96,7 +96,6 @@ def run_all(directory, out_directory, day_night='ANY', start=10):
...
@@ -96,7 +96,6 @@ def run_all(directory, out_directory, day_night='ANY', start=10):
num_files
=
len
(
data_files
)
num_files
=
len
(
data_files
)
print
(
'
Start, number of files:
'
,
num_files
)
print
(
'
Start, number of files:
'
,
num_files
)
# hist_10 = np.zeros((10), dtype=np.int64)
for
idx
,
data_f
in
enumerate
(
data_files
):
for
idx
,
data_f
in
enumerate
(
data_files
):
# if idx % 4 == 0: # if we want to skip some files
# if idx % 4 == 0: # if we want to skip some files
...
...
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