Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pyicon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Fraser William Goldsworth
pyicon
Commits
2453b4a2
Commit
2453b4a2
authored
1 year ago
by
Fraser Goldsworth
Browse files
Options
Downloads
Patches
Plain Diff
added sketch for edges2vertex
parent
f53030ec
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
pyicon/pyicon_calc_xr.py
+34
-0
34 additions, 0 deletions
pyicon/pyicon_calc_xr.py
with
34 additions
and
0 deletions
pyicon/pyicon_calc_xr.py
+
34
−
0
View file @
2453b4a2
...
...
@@ -416,6 +416,40 @@ def xr_edges2edges_via_cell(ds_IcD, vn_e, scalar, dze='const'):
out_vn_e
=
()
return
out_vn_e
## Mapping between edges and vertices
def
xr_edges2vertex
(
ds_IcD
,
e_vector
,
dze
,
dzv
,
dAd
,
edge2vertex_coeff
=
None
):
"""
Maps edge vectors to vertices using equation 22 of Korn (2017)
Parameters
----------
ds_IcD : xr.Dataset
pyicon dataset containing coordinate info
e_vector : xr.DataArray
Dataarray containing vector variable on cell edges.
dze : xr.DataArray
dz defined on edges
dzv : xr.DataArray
dz defined on vertices
edge2vertex_coeff : xr.DataArray or None
COMMENT
Returns
-------
vertex_vec : xr.DataArray
edge vector interpolated to the vertices
Notes
-----
This uses the formula defined in equation 22 of Korn (2017).
"""
pass
## Divergence
def
xr_calc_div_coeff
(
ds_IcD
):
...
...
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