Skip to content

Commit 124942c

Browse files
committed
Set oceanFracObserved to 0 where MALI's bed elevation is > 0
1 parent e91916d commit 124942c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • compass/ocean/tests/global_ocean/mesh/remap_mali_topography

compass/ocean/tests/global_ocean/mesh/remap_mali_topography/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ def _combine_topo(self):
293293

294294
alpha = ds_out.maliFrac
295295
# NOTE: MALI's ocean fraction is already scaled by the MALI fraction
296-
ds_out['oceanFracObserved'] = (
296+
ds_out['oceanFracObserved'] = xr.where(
297+
ds_mali.bed_elevation > 0.,
298+
0.,
297299
ds_mali.oceanFrac +
298300
(1.0 - alpha) * ds_bedmachine.oceanFracObserved)
299301

0 commit comments

Comments
 (0)