Skip to content

Add PICASO CK table#130

Merged
chengcli merged 5 commits into
mainfrom
cli/add_picaso_ck
Jun 10, 2026
Merged

Add PICASO CK table#130
chengcli merged 5 commits into
mainfrom
cli/add_picaso_ck

Conversation

@chengcli

@chengcli chengcli commented Jun 9, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 9, 2026 23:17
@chengcli chengcli requested a review from luminoctum as a code owner June 9, 2026 23:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for a new PICASO correlated‑k (NetCDF) opacity table format and wires it into the RadiationBand opacity factory, alongside a small adjustment to Toon solver handling (default args + Planck/temperature gating).

Changes:

  • Add PicasoCK opacity implementation (NetCDF reader + interpolation-based forward).
  • Register "picaso-ck" as a supported opacity type in RadiationBand (docs + factory switch) and in the Python type stub.
  • Update Toon solver integration to (a) expose forward default args metadata and (b) only pass temperatures to the solver when Planck emission is enabled; ensure Toon has at least 3 optical-property slots.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/rtsolver/toon_mckay89.hpp Exposes forward default-argument metadata for Toon module.
src/radiation/radiation_band.hpp Documents the new "picaso-ck" opacity type.
src/radiation/radiation_band.cpp Adds PicasoCK factory path; adjusts Toon property sizing and temperature/Planck handling.
src/opacity/picaso_ck.hpp Declares the new PICASO correlated‑k opacity module.
src/opacity/picaso_ck.cpp Implements NetCDF loading and interpolated opacity evaluation.
python/opacity.pyi Updates the documented valid OpacityOptions.type values to include "picaso-ck".

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/radiation/radiation_band.cpp
Comment thread src/opacity/picaso_ck.cpp Outdated
chengcli and others added 2 commits June 9, 2026 19:50
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@chengcli chengcli merged commit a7fbd5f into main Jun 10, 2026
3 checks passed
@chengcli chengcli deleted the cli/add_picaso_ck branch June 10, 2026 02:38
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.

3 participants