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
4cbd18d4
Commit
4cbd18d4
authored
9 months ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
9629fc32
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/contrail/util.py
+3
-3
3 additions, 3 deletions
modules/contrail/util.py
with
3 additions
and
3 deletions
modules/contrail/util.py
+
3
−
3
View file @
4cbd18d4
...
...
@@ -62,8 +62,8 @@ def extract(mask_image, image_ts, clavrx_path):
contrail_lats
=
contrail_lats
[
keep
]
# Indexes of contrail_press for individual bins
bins
=
np
.
arange
(
100
,
1000
,
50
)
binned_indexes
=
np
.
digitize
(
contrail_press
,
bins
)
press_
bins
=
np
.
arange
(
100
,
1000
,
50
)
binned_indexes
=
np
.
digitize
(
contrail_press
,
press_
bins
)
# Store the indexes in a dictionary where the key is the bin number and value is the list of indexes
bins_dict
=
{}
...
...
@@ -111,7 +111,7 @@ def extract(mask_image, image_ts, clavrx_path):
all_list
=
[]
voxel_dict
=
{
key
:
[]
for
key
in
bins_dict
.
keys
()}
for
key
in
bins_dict
.
keys
():
press_level
=
bins
[
key
]
press_level
=
press_
bins
[
key
]
print
(
'
working on pressure level:
'
,
press_level
)
for
c_idx
in
bins_dict
[
key
]:
press
=
contrail_press
[
c_idx
]
...
...
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