Skip to content

Give the front, calving and grounding-line fluxes physical bounds - #36

Merged
xylar merged 1 commit into
ismip:mainfrom
xylar:flux-value-ranges
Sep 22, 2026
Merged

xylar merged 1 commit into
ismip:mainfrom
xylar:flux-value-ranges

Conversation

@xylar

@xylar xylar commented Sep 22, 2026

Copy link
Copy Markdown
Member

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.

variable before after
licalvf -1e11 … 0 -10 … 0
lifmassbf -1e11 … 0 -10 … 0
ligroundf -1e9 … 1e11 -10 … 10
tendacabf, tendlibmassbfgr, tendlibmassbffl, tendlicalvf, tendlifmassbf, tendligroundf 0 … 1e25 -1e9 … 1e9

Units 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 units attribute says kg 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 licalvf and lifmassbf are negative for mass loss (ismip/documentation#16) and ismip7-scalar-processing integrates them with a plain area-weighted sum, so a correct tendlicalvf was out of range; tendacabf also goes negative for Greenland under strong warming. The sign of ligroundf is 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).
  • The generated value-ranges.md table renders the new rows as expected.

🤖 Generated with Claude Code

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>
@xylar xylar self-assigned this Sep 22, 2026
@xylar
xylar requested a review from hgoelzer September 22, 2026 09:34
@xylar xylar added the bug Something isn't working label Sep 22, 2026
@xylar

xylar commented Sep 22, 2026

Copy link
Copy Markdown
Member Author

@hgoelzer, are you feeling well enough to review. I will do my best on my own if not.

@hgoelzer hgoelzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for implementing those.

@xylar

xylar commented Sep 22, 2026

Copy link
Copy Markdown
Member Author

Thanks @hgoelzer!

@xylar
xylar merged commit 9da8c7e into ismip:main Sep 22, 2026
6 checks passed
@xylar
xylar deleted the flux-value-ranges branch October 6, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Placeholder value ranges on the calving, front-melt and grounding-line fluxes, and wrong sign on their totals

2 participants