Skip to content

fix(lmc): fill in-domain NaN precip gaps so corrupt AORC days do not …#12

Merged
HenryGeorgist merged 1 commit into
mainfrom
feat/aorc-daily-netcdf-geojson-shp-actions
Jul 15, 2026
Merged

fix(lmc): fill in-domain NaN precip gaps so corrupt AORC days do not …#12
HenryGeorgist merged 1 commit into
mainfrom
feat/aorc-daily-netcdf-geojson-shp-actions

Conversation

@HenryGeorgist

Copy link
Copy Markdown
Collaborator

…empty the domain

The AORC mirror has NaN patches on isolated storm days (e.g. 1985-11-07, 2003-10-19, 2024-06-18). 3.LMC.py sums raw precip over the whole basin polygon and requires every year's annual-max window to be finite, so one corrupt cell NaNs the L-moment of every anchor whose footprint covers it. Over the full ~45yr record this collapsed the L-moment field from 2675 cells to 47, so CLMPV could not grow a transposition domain (a clean 5yr window hid the problem).

run_lmc now fills in-domain NaN precip cells with 0 before LMC. Off-domain cells (NaN in every file) are left untouched, so the valid-anchor set is unchanged; each cell's spatial L-moment averages over all years, so one 0-filled bad day is negligible. Verified in-container: LMCol chunk 0 finite cells 11 -> 424.

…empty the domain

The AORC mirror has NaN patches on isolated storm days (e.g. 1985-11-07,
2003-10-19, 2024-06-18). 3.LMC.py sums raw precip over the whole basin polygon
and requires every year's annual-max window to be finite, so one corrupt cell
NaNs the L-moment of every anchor whose footprint covers it. Over the full ~45yr
record this collapsed the L-moment field from 2675 cells to 47, so CLMPV could
not grow a transposition domain (a clean 5yr window hid the problem).

run_lmc now fills in-domain NaN precip cells with 0 before LMC. Off-domain cells
(NaN in every file) are left untouched, so the valid-anchor set is unchanged;
each cell's spatial L-moment averages over all years, so one 0-filled bad day is
negligible. Verified in-container: LMCol chunk 0 finite cells 11 -> 424.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@HenryGeorgist
HenryGeorgist merged commit bc87dae into main Jul 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant