We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e91916d commit 124942cCopy full SHA for 124942c
1 file changed
compass/ocean/tests/global_ocean/mesh/remap_mali_topography/__init__.py
@@ -293,7 +293,9 @@ def _combine_topo(self):
293
294
alpha = ds_out.maliFrac
295
# NOTE: MALI's ocean fraction is already scaled by the MALI fraction
296
- ds_out['oceanFracObserved'] = (
+ ds_out['oceanFracObserved'] = xr.where(
297
+ ds_mali.bed_elevation > 0.,
298
+ 0.,
299
ds_mali.oceanFrac +
300
(1.0 - alpha) * ds_bedmachine.oceanFracObserved)
301
0 commit comments