Skip to content

Commit

Permalink
Switch to AIS_2to10km mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Jul 26, 2024
1 parent 025449e commit 4799ea7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion compass/ocean/tests/global_ocean/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, mpas_core):

self._add_tests(mesh_names=['SO12to30', 'SOwISC12to30'])
self._add_tests(mesh_names=['SOwISC12to30'],
mali_ais_topo='AIS_4to20km')
mali_ais_topo='AIS_2to10km')

self._add_tests(mesh_names=['WC14', 'WCwISC14'])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, test_case, base_mesh_step, mesh_name, mali_ais_topo):
mesh_name : str
The name of the MPAS mesh to include in the mapping file
mali_ais_topo : str, optional
mali_ais_topo : str, optional
Short name for the MALI dataset to use for Antarctic Ice Sheet
topography
"""
Expand Down Expand Up @@ -230,27 +230,27 @@ def _combine_topo(self):
'landIceThkObserved']:
ds_out[var] = ds_mali[var]

ds_out['landIceFracObserved'] = ds_mali['landIceFracConserve']
ds_out['landIceFracObserved'] = ds_mali['landIceFrac']

ds_out['landIceFloatingFracObserved'] = (
ds_mali['landIceFrac'] -
ds_mali['landIceGroundedFrac'])

for var in ['maliFracBilinear', 'maliFracConserve']:
for var in ['maliFrac']:
mali_field = ds_mali[var]
mali_field = xr.where(mali_field.notnull(), mali_field, 0.)
ds_out[var] = mali_field

# for now, blend topography at calving fronts, but we may want a
# smoother blend in the future
alpha = ds_mali.landIceFracBilinear
alpha = ds_mali.landIceFrac
ds_out['bed_elevation'] = (
alpha * ds_mali.bed_elevation +
(1.0 - alpha) * ds_bedmachine.bed_elevation)

alpha = ds_out.maliFracConserve
alpha = ds_out.maliFrac
ds_out['oceanFracObserved'] = (
alpha * ds_mali.oceanFracConserve +
alpha * ds_mali.oceanFrac +
(1.0 - alpha) * ds_bedmachine.oceanFracObserved)

ds_out['ssh'] = ds_out.landIceDraftObserved
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# config options related to remapping MALI topography to an MPAS-Ocean mesh
[remap_mali_topography]

# The name of the MALI topogrpahy file
mali_filename = ais_2to10km_20231222_modifiedBathymetry-drop20m-smooth6x_bulldozedTroughs-75-400m_BEDMAP2-ASE-mjh.nc

0 comments on commit 4799ea7

Please sign in to comment.