Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tricco
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Climate
tricco
Commits
07152da4
Commit
07152da4
authored
3 years ago
by
Aiko Voigt
Browse files
Options
Downloads
Patches
Plain Diff
Fixed severed bug in how the ICON input data was thresholded
parent
0fe1e4d2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cctrigrid/prepare.py
+4
-4
4 additions, 4 deletions
cctrigrid/prepare.py
examples/example-2d.ipynb
+9
-9
9 additions, 9 deletions
examples/example-2d.ipynb
examples/example-3d.ipynb
+11
-11
11 additions, 11 deletions
examples/example-3d.ipynb
with
24 additions
and
24 deletions
cctrigrid/prepare.py
+
4
−
4
View file @
07152da4
...
...
@@ -49,8 +49,8 @@ def field_icon(path, file, var, threshold, cubulation):
# field on triangular grid
field
=
xr
.
open_dataset
(
path
+
file
)[
var
].
squeeze
().
values
field
[
field
>=
threshold
]
=
1
field
[
field
<
threshold
]
=
0
#
threshold
field
field
=
np
.
where
(
field
<
threshold
,
0
,
1
)
# determine size of array that holds cubulation
array_size
=
0
...
...
@@ -75,8 +75,8 @@ def field_icon_lev(path, file, var, threshold, cubulation):
# field on triangular grid
field
=
xr
.
open_dataset
(
path
+
file
)[
var
].
squeeze
().
values
field
[
field
>=
threshold
]
=
1
field
[
field
<
threshold
]
=
0
#
threshold
field
field
=
np
.
where
(
field
<
threshold
,
0
,
1
)
nlev
=
np
.
shape
(
field
)[
0
]
...
...
This diff is collapsed.
Click to expand it.
examples/example-2d.ipynb
+
9
−
9
View file @
07152da4
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
examples/example-3d.ipynb
+
11
−
11
View file @
07152da4
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