Skip to content

Commit fa9d65f

Browse files
committed
add test_steric_height_mrst to test steric height using the MRST-PCHIP interpolation method
1 parent f06ea44 commit fa9d65f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

gsw/tests/test_geostrophy.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,15 @@ def test_dyn_height_mrst():
113113
strf = gsw.geo_strf_dyn_height(SA, CT, p, p_ref=pr, interp_method='mrst')
114114

115115
assert_allclose(strf, cv.geo_strf_dyn_height, rtol=0, atol=cv.geo_strf_dyn_height_ca)
116+
117+
def test_steric_height_mrst():
118+
"""
119+
Tests the MRST-PCHIP interpolation method.
120+
"""
121+
p = cv.p_chck_cast
122+
CT = cv.CT_chck_cast
123+
SA = cv.SA_chck_cast
124+
pr = cv.pr
125+
strf = gsw.geo_strf_steric_height(SA, CT, p, p_ref=pr, interp_method='mrst')
126+
127+
assert_allclose(strf, cv.geo_strf_steric_height, rtol=0, atol=cv.geo_strf_steric_height_ca)

0 commit comments

Comments
 (0)