Skip to content

Commit b541528

Browse files
Allow vertical extrapolation
This avoids issues where small changes in vertical coordinate cause nans to occur in locations that the reference mask indicates are valid
1 parent 672a159 commit b541528

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

landice/mesh_tools_li/interpolate_mpasOcean_to_mali.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,10 @@ def remap_mpas_to_mali(self, year):
321321
# potential mpas-ocean hybrid coordinate. Also should speed up ncremap
322322
# because the number of ismip6 vert levels is less than most ocean meshes
323323
st = time.time()
324-
vertInterpTF = _vertical_interpolate(self, tf.data, mcce.data)
324+
# allow vertical extrapolation.
325+
# this avoids issues where small changes in vertical coordinate cause nans to
326+
# occur in locations that the reference mask indicates are valid
327+
vertInterpTF = _vertical_interpolate(self, tf.data, mcce.data, markExtrap=False)
325328
nd = time.time()
326329
tm = nd - st
327330
print("vertical interpolation:", tm, "seconds")

0 commit comments

Comments
 (0)