Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pgierz committed Nov 25, 2024
1 parent 412b1db commit 5796efa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pymorize/fesom_1p4/nodes_to_levels.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def interpolate_dataset(ds_in, variable, mesh, indices):
return interpolate_dataarray(da_in, mesh, indices)


# FIXME(PG): This should be... a method of the mesh object??
def indicies_from_mesh(mesh):
# Precompute depth indices
indices = {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_fesom_1p4_nodes_to_levels.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_nodes_to_levels_with_awicm_1p0_recom_data(awicm_1p0_recom_data):
mesh = load_mesh_data.load_mesh(
f"{awicm_1p0_recom_data}/awi-esm-1-1-lr_kh800/piControl/input/fesom/mesh/"
)
indices = nodes_to_levels.indicies_for_mesh(mesh)
indices = nodes_to_levels.indicies_from_mesh(mesh)
ds_out = nodes_to_levels.interpolate_dataarray(ds, mesh, indices)
# NOTE(PG): For now, just check if the output object is created
# FIXME(PG): Correctness check...
Expand Down

0 comments on commit 5796efa

Please sign in to comment.