Skip to content

Commit

Permalink
Merge pull request #467 from trhille/add_iceMask_to_interp_script
Browse files Browse the repository at this point in the history
Add an iceMask field to the interpolation script

Add an iceMask field to the interpolation script, which can be used
for trimming down fields to the original extent of ice after
interpolating. This is useful when fields must be extrapolated before
using the interpolation script in order to avoid including zeros, NaNs,
or large missing values in the interpolation at the ice edge.
  • Loading branch information
matthewhoffman authored Jun 22, 2022
2 parents 9510ed6 + ccf322e commit 554a338
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions landice/mesh_tools_li/interpolate_to_mpasli_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ def vertical_interp_MPAS_grid(mpas_grid_input_layers, destVertCoord, input_layer
if filetype=='cism':

fieldInfo['thickness'] = {'InputName':'thk', 'scalefactor':1.0, 'offset':0.0, 'gridType':'x1', 'vertDim':False}
fieldInfo['iceMask'] = {'InputName':'iceMask', 'scalefactor':1.0, 'offset':0.0, 'gridType':'x1', 'vertDim':False}
if not args.thicknessOnly:
fieldInfo['bedTopography'] = {'InputName':'topg', 'scalefactor':1.0, 'offset':0.0, 'gridType':'x1', 'vertDim':False}
fieldInfo['sfcMassBal'] = {'InputName':'smb', 'scalefactor':1.0/(3600.0*24.0*365.0), 'offset':0.0, 'gridType':'x1', 'vertDim':False} # Assuming mm/yr w.e. units for smb
Expand Down

0 comments on commit 554a338

Please sign in to comment.