Repository navigation
Give the front, calving and grounding-line fluxes physical bounds - #36
Merged
Merged
Conversation
The bounds on licalvf, lifmassbf and ligroundf were placeholders of 1e11 kg m-2 s-1 (1e8 m/s of ice), and the six tend* totals were bounded by 1e25 kg s-1, more than the mass of the oceans per second (discussion ismip#50, issue ismip#35). A bound that nothing can reach cannot catch the one thing the range check is still for: a file in m/yr or kg m-2 yr-1 whose units attribute says kg m-2 s-1 passed unremarked. The three gridded fluxes are mass change per unit horizontal cell area (discussion ismip#22), so the flux through the face scaled by H/dx. The most extreme case, 30 m/day of front melt under 1000 m of ice on a 250 m grid, is about 1.3 kg m-2 s-1; fast calving and grounding-line fluxes are a few tenths. The new bound of 10 leaves an order of magnitude of headroom and still flags every unit-scale mistake, and the graded severity of ismip#32 makes a single calving event in a few cells a warning rather than a failure. The totals had min 0, but the gridded fields they integrate are negative for mass loss and the scalar tool integrates them as they are, so a correct tendlicalvf would have been out of range; tendacabf also goes negative for Greenland under strong warming. The sign of ligroundf is still undecided (ismip#22), so it and all six totals get symmetric bounds, +-10 and +-1e9 kg s-1 (about 3e4 Gt/yr, fifteen times today's Antarctic discharge), to be made one-sided once the convention is settled. The checker does not yet range-check scalar series, so the totals' bounds only reach the value-ranges table for now. Bump the version to 0.5.1 for the changed bounds. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Member
Author
|
@hgoelzer, are you feeling well enough to review. I will do my best on my own if not. |
hgoelzer
approved these changes
Sep 22, 2026
hgoelzer
left a comment
Member
There was a problem hiding this comment.
Looks good. Thanks for implementing those.
Member
Author
|
Thanks @hgoelzer! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #35. Raised in ismip/documentation#50; the same rows came up in ismip/documentation#22, #16 and #19.
What changes
Only
ISMIP7_variable_request.csv(and a version bump to 0.5.1). No checker logic changes.licalvflifmassbfligroundftendacabf,tendlibmassbfgr,tendlibmassbffl,tendlicalvf,tendlifmassbf,tendligroundfUnits are kg m-2 s-1 for the gridded fluxes and kg s-1 for the totals; AIS and GrIS get the same values.
Why these numbers
The gridded fluxes are mass change per unit horizontal cell area (@hgoelzer in ismip/documentation#22), i.e. the flux through the vertical face scaled by H/dx. The most extreme plausible case, 30 m/day of front melt under 1000 m of ice on a 250 m grid, is about 1.3 kg m-2 s-1; a 10 km/yr calving front or a Pine Island-like grounding-line flux is a few tenths. A bound of 10 leaves an order of magnitude of headroom, and still catches a file in m/yr (3.7e3 for 10 m/day), kg m-2 yr-1 (3.3e6) or kg m-2 day-1 (9e3) whose
unitsattribute sayskg m-2 s-1, which the old 1e11 (1e8 m/s of ice) could not. A calving event in a few cells stays a warning under the graded severity from #32.The totals had min 0, but
licalvfandlifmassbfare negative for mass loss (ismip/documentation#16) andismip7-scalar-processingintegrates them with a plain area-weighted sum, so a correcttendlicalvfwas out of range;tendacabfalso goes negative for Greenland under strong warming. The sign ofligroundfis still open (@tkleiner in ismip/documentation#22), so it and the six totals get symmetric bounds for now: ±10 and ±1e9 kg s-1 (about 3e4 Gt/yr, fifteen times today's Antarctic discharge). Once the convention is settled they can be made one-sided in a follow-up. The checker does not yet range-check scalar series, so the totals' bounds only reach the value-ranges table today.Testing
pytest tests: 190 passed (the synthetic files are generated at both ends of every range, so they exercise the new bounds).value-ranges.mdtable renders the new rows as expected.🤖 Generated with Claude Code