Skip to content

refactor(cork): rename picket-fence radiation scheme to CORK (correlated-k)#213

Merged
JoyMonteiro merged 3 commits into
developfrom
feature/cork-radiation
Jun 18, 2026
Merged

refactor(cork): rename picket-fence radiation scheme to CORK (correlated-k)#213
JoyMonteiro merged 3 commits into
developfrom
feature/cork-radiation

Conversation

@JoyMonteiro

Copy link
Copy Markdown
Member

What

Renames the radiation component formerly called picket fence to CORK (CORrelated-K) throughout the codebase.

  • Package: climt._components.picket_fenceclimt._components.cork
  • Data: climt._data.picket_fenceclimt._data.cork
  • Classes: PicketFenceLongwave / PicketFenceShortwaveCorkLongwaveRadiation / CorkShortwaveRadiation
  • Tests, scripts, the table builder (scripts/cork_table_builder/, tests/cork_table_builder/), benchmarks, and docs (including dated plans/specs) renamed; pf/PF abbreviations swept.

Why

The scheme is now a full correlated-k code, not the original Parmentier & Guillot two-band gray ("picket fence") approximation, so the old name no longer describes what it does. CORK is short, pronounceable, and encodes "correlated-k".

What is deliberately not renamed

The analytic gray path is still optics="parmentier" (climt._components.cork.optics.parmentier), and the parmentier2014 citation / "non-grey analytical model" wording are unchanged. "Picket fence" remains the correct literature term for the Parmentier & Guillot approximation itself — only the project's own scheme name changed.

Reviewer notes

  • Mechanical rename only. The cork/ Python diff is name-only (14 insertions / 14 deletions across 7 files; every removed line carried a picket/pf token). No numerical logic changed.
  • Data tables relocated via git mv — bytes unchanged.
  • Rebased onto current develop, so it incorporates the wheel-slim work (PR chore: slim wheel/sdist, drop stale Chaverot Earth LW tables #209): the 6 stale Earth LW tables stay deleted (not resurrected under cork/), and setup.py/MANIFEST.in trimming is preserved.
  • Graph regenerated (graphify update + augment_graph.py).
  • Verification: 96 cork-related tests pass (1 skipped) on the rebased tree. The slow, CI-excluded test_hd209458b_reproduction 2%-regression test is a pre-existing tolerance issue independent of this rename (identical kernels + byte-identical k-tables ⇒ identical physics) and is left untouched.

🤖 Generated with Claude Code

JoyMonteiro and others added 3 commits June 17, 2026 23:00
Automated band-placement optimizer on top of the linepyline correlated-k
generator: greedy residual-driven loop seeded by a spectral correlation-
breakdown split metric, encoding the band-refinement campaign learnings
(band width over g-points, wide window, continuum decoupling for moist).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ptance

10-task TDD plan: refactor assemble_lw_table, OptimizerConfig, cached
kappa-cube/LBL-truth (linepyline env), correlation-breakdown split metric,
choose_action brain, greedy loop with stall->best-so-far, CLI driver, and
a manual end-to-end Earth-LW smoke gate. Spec acceptance narrowed to an
OLR hard gate with heating-rate reported (gating deferred to v2).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ted-k)

The scheme is now a full correlated-k code, not the original Parmentier &
Guillot two-band gray ("picket fence") approximation, so the name no longer
fits. Rename to CORK (CORrelated-K) throughout:

- Package climt._components.picket_fence -> climt._components.cork
- Data   climt._data.picket_fence       -> climt._data.cork
- Classes PicketFence{Longwave,Shortwave} -> Cork{Longwave,Shortwave}Radiation
- Tests, scripts, table-builder, benchmarks, and docs (incl. dated
  plans/specs) renamed; pf/PF abbreviations swept.

Preserved: the analytic gray path is still optics="parmentier"
(climt._components.cork.optics.parmentier) and the parmentier2014 citation /
"non-grey analytical model" wording are unchanged -- "picket fence" remains
the literature term for the Parmentier & Guillot approximation itself.

Data .nc/.npz tables relocated via git mv (bytes unchanged). Graph
regenerated (graphify update + augment_graph.py).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@JoyMonteiro JoyMonteiro merged commit 2552583 into develop Jun 18, 2026
7 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