Skip to content

Commit f06ea44

Browse files
committed
add geo_strf_steric_height tests
1 parent 5d405ad commit f06ea44

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

gsw/tests/geo_strf_steric_height.npy

1.18 KB
Binary file not shown.

gsw/tests/test_check_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
# Substitute new check values for the pchip interpolation version.
3535
cv.geo_strf_dyn_height = np.load(os.path.join(root_path,'geo_strf_dyn_height.npy'))
36+
cv.geo_strf_steric_height = np.load(os.path.join(root_path,'geo_strf_steric_height.npy'))
3637
cv.geo_strf_velocity = np.load(os.path.join(root_path,'geo_strf_velocity.npy'))
3738

3839
cf = Bunch()

gsw/tests/test_xarray.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
# Substitute new check values for the pchip interpolation version.
4444
cv.geo_strf_dyn_height = np.load(os.path.join(root_path,'geo_strf_dyn_height.npy'))
45+
cv.geo_strf_steric_height = np.load(os.path.join(root_path,'geo_strf_steric_height.npy'))
4546
cv.geo_strf_velocity = np.load(os.path.join(root_path,'geo_strf_velocity.npy'))
4647

4748
for name in ['SA_chck_cast', 't_chck_cast', 'p_chck_cast']:

gsw/tests/write_geo_npyfiles.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
cv.pr)
2626
np.save('geo_strf_dyn_height.npy', dyn_height)
2727

28+
steric_height = gsw.geo_strf_steric_height(cv.SA_chck_cast,
29+
cv.CT_chck_cast,
30+
cv.p_chck_cast,
31+
cv.pr)
32+
np.save('geo_strf_steric_height.npy', steric_height)
33+
2834
lon = cv.long_chck_cast
2935
lat = cv.lat_chck_cast
3036
p = cv.p_chck_cast

0 commit comments

Comments
 (0)