Skip to content

Commit

Permalink
Merge branch 'CROCO_fix_sigma_calculation' of https://github.com/Ocea…
Browse files Browse the repository at this point in the history
…nParcels/parcels into CROCO_fix_sigma_calculation
  • Loading branch information
erikvansebille committed Dec 5, 2024
2 parents 269f604 + 0b02191 commit 9b3fe7e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_advection.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,12 @@ def test_conversion_3DCROCO():
"""Test of the (SciPy) version of the conversion from depth to sigma in CROCO
Values below are retrieved using xroms and hardcoded in the method (to avoid dependency on xroms):
# x, y = 10, 20
# s_xroms = ds.s_w.values
# z_xroms = ds.z_w.isel(time=0).isel(eta_rho=y).isel(xi_rho=x).values
# lat, lon = ds.y_rho.values[y, x], ds.x_rho.values[y, x]
```py
x, y = 10, 20
s_xroms = ds.s_w.values
z_xroms = ds.z_w.isel(time=0).isel(eta_rho=y).isel(xi_rho=x).values
lat, lon = ds.y_rho.values[y, x], ds.x_rho.values[y, x]
```
"""
fieldset = FieldSet.from_modulefile(TEST_DATA / "fieldset_CROCO3D.py")

Expand Down

0 comments on commit 9b3fe7e

Please sign in to comment.