-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a bug in how landIceMask
is computed
#732
Conversation
Before this fix, cells that were more than half land according to the remapped topography dataset but had been included in the ocean (through critical passages) were mistakenly being categorized as land ice simply because they were "not ocean". With this fix, the `landIceMask` is computed based on where the `landIceFracObserved` from the remapped topography dataset is greater than 0.5. A new function is needed to compute this mask because this definition is not the same as the mask used to cull the mesh when ice-shelf cavities are excluded from the ocean domain.
@xylar Good catch. Thanks for your careful checking - better to find a bug than have it unknown. |
Were the temperature values strange but not unphysical? (Does MPAS-O issue a warning for unphysical temps?) |
The temperature values were different from the surrounding ocean but not unphysical (constant -1.8 C, which is the initial value we use under ice shelves). MPAS-Ocean doesn't have any sanity checks that I'm aware of for unphysical temperature values short of NaNs. |
Before this fix, cells that were more than half land according to the remapped topography dataset but had been included in the ocean (through critical passages) were mistakenly being categorized as land ice simply because they were "not ocean".
With this fix, the
landIceMask
is computed based on where thelandIceFracObserved
from the remapped topography dataset is greater than 0.5. A new function is needed to compute this mask because this definition is not the same as the mask used to cull the mesh when ice-shelf cavities are excluded from the ocean domain.Checklist
Testing
in this PR) any testing that was used to verify the changes