Repository navigation
Conversation
…ion, ocean floor Development state of 0.2.0 before the code overhaul: - OceanLayerOptics carries absorbers (one component per absorber or absorption part), scatterers and inelastic components. - Pigment partitions of phytoplankton absorption (ProspectPigments, Bidigare1990Pigments) and absorption parts. - Absorbed power, photons and PAR per component from the solver's scalar irradiance; inelastic emission per layer. - Chlorophyll fluorescence driven by excitation pathways, with the chloroplast-level emission spectra used by Fluspect. - TabulatedLambertianBottom. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TRfrLS11vLye7ZcoRFSe5B
…tives
Changed results (see CHANGELOG, "Changed results"):
- Phytoplankton{Bricaud1998} absorption is A(λ)·Chl^E(λ), as the bundled
HydroLight table defines it (was A·Chl^(1−E)); it is particulate
absorption (phytoplankton plus detritus). Unchanged at Chl = 1.
- Water Raman is an energy conversion by default (Mobley et al. 1993,
HydroLight); the photon form is PhotonConversion().
- FellMineral defaults follow Fell (1997): ω = 0.95, B = 0.036.
- Pigment partitions hold the edge shares outside their tables;
photoprotective carotenoids are a separate class with zero transfer.
Breaking (see "Breaking" and the migration section of the docs):
- layer_optics and column_optics take the element type as an optional
first argument; the FT keyword is gone.
- Result structs have array type parameters and Adapt rules; phase_id is
a vector of content keys; Gordon1992 is removed.
- WaterRaman carries its conversion units and linear_depolarization.
Added:
- Results and spectral tables move to device arrays with Adapt (tested on
JLArrays and CUDA); Float32 models return Float32.
- Model parameters can carry ForwardDiff dual numbers through
layer_optics and column_optics.
- Every physical parameter is a field or keyword with a documented
default (docs: reference/parameters.md).
- Raman phase function, conversion-unit types, table lookup types.
- Tests: Aqua, JET, ExplicitImports, inference, Float32, device,
published-value references, parameter exposure.
Packaging: Adapt is a dependency; Interpolations is dropped; docs build
is strict; version 0.2.0.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TRfrLS11vLye7ZcoRFSe5B
This branch has not been deployed
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.
Prepares OceanOptics 0.2.0. Do not tag yet: a follow-up on the Raman defaults (coefficient, exponent, band shape) against newly added papers may still change results.
Two commits:
Changed results
Phytoplankton{Bricaud1998}absorption is nowA(λ)·Chl^E(λ), as the bundled HydroLight table defines it (ap = A·[chl]^E). Version 0.1.0 computesA·Chl^(1−E). The two agree at Chl = 1; at 440 nm the new value is 0.54× the old at Chl = 0.1 and 1.86× at Chl = 10. The quantity is particulate absorption (phytoplankton plus detritus), and the docs now say so.WaterRaman(conversion = PhotonConversion()).FellMineraldefaults follow Fell (1997): ω = 0.95 and B = 0.036 (were 0.96 and 0.03).Breaking
layer_opticsandcolumn_opticstake the element type as an optional first argument; theFTkeyword is gone.OceanLayerOptics{FT}is no longer concrete.phase_idis a vector of content keys, one per expansion.WaterRamanhas conversion units and alinear_depolarizationfield (default 0.17, Mobley Eq. 9; the definition follows Porto 1966).Gordon1992is removed; it was never implemented.The CHANGELOG lists all of them, and the docs have a "Migrating from 0.1" section with before/after code.
Added
docs/src/reference/parameters.md. A test checks that each one changes the result.Adapt.adapt, tested on JLArrays and CUDA. Float32 models return Float32.layer_opticsandcolumn_optics.Packaging
CI.ymlruns the tests;Documentation.ymlbuilds the docs on pull requests and deploys on main and tags.Bundled data
The Fluspect emission and PROSPECT-D absorption tables were transcribed from the SCOPE parameter file. They are bundled as data with attribution; no SCOPE code is included. Their headers state what is known of their provenance.
Checks run locally
macOS and GitHub CI have not run yet.
🤖 Generated with Claude Code
https://claude.ai/code/session_01TRfrLS11vLye7ZcoRFSe5B