process-radiometric-calibration
Convolve a local spectral radiance table with a band spectral response function (SRF/RSR), then calculate top-of-atmosphere (TOA) reflectance and compare GUM and Monte Carlo uncertainty. Use for Landsat/Sentinel-style two-column SRF tables or a custom spectrometer's band response
Install
npx skills add https://github.com/laweit-lxy/optics-agent-skills/tree/main/skills/process-radiometric-calibration
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install laweit-lxy-optics-agent-skills@llmmart
git clone https://github.com/laweit-lxy/optics-agent-skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole laweit-lxy/optics-agent-skills collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Process Radiometric Calibration
- Read
references/input-schema.md. Use one band per JSON input, with explicit wavelength and spectral-density units. Check the source metadata for a common wavelength medium; the CLI only records the supplied declaration. For TOA, use the acquisition date, solar zenith (not elevation) and either a solar spectrum or a band-averaged solar irradiance, both at 1 au. - Use the dedicated Python environment in
references/runtime-lock.md. Supply an absolute input path and a new absolute output directory with an existing parent. The tool opens the input JSON and CSV files read-only and refuses URLs, UNC paths, symlinks and reparse points. - Run the CLI and read
report.json. Requirestatus=PASSand matching before/after SHA-256 hashes for all inputs. Coverage failures name the missing range: supply a spectrum covering the full SRF support rather than truncating or extrapolating. OnFAIL,resultis null. - Report SRF support and band radiance in the canonical units. For TOA also report the irradiance source, day of year, approximate Earth–Sun distance, zenith, and dimensionless reflectance. Read warnings before using values outside [0, 1].
- When uncertainty is supplied, report the GUM estimate and standard uncertainty, the Monte Carlo mean, standard uncertainty and equal-tail 95% interval, and the comparison verdict. For
DISAGREE, keep both results and investigate the listed causes before choosing a reported uncertainty. Readreferences/methods-and-sources.mdfor thresholds and model limits. If uncertainties were not supplied, report them as not evaluated.
Run
<python> is the pinned interpreter; <skill-dir> is the absolute path to this skill. The example is synthetic.
<python> -X utf8 -I <skill-dir>/scripts/process.py --input <skill-dir>/examples/input.json --output-dir /absolute/new-output-dir
Use scripts/contract.py --output-dir <absolute-new-directory> to qualify the runtime without processing input. Use tests/regression.py --output-dir <absolute-new-directory> to run the analytic regressions in fresh CLI processes with the same interpreter and flags.
Files (optics-agent-skills)
-
agents
-
openai.yaml 323 B
Loading…
-
-
examples
-
input.json 600 B
Loading… -
radiance.csv 35 B · in bundle
-
solar.csv 41 B · in bundle
-
srf.csv 36 B · in bundle
-
-
references
-
input-schema.md 4.6 KB
Loading… -
methods-and-sources.md 4.6 KB
Loading… -
runtime-lock.md 1.9 KB
Loading… -
runtime.json 27 B
Loading…
-
-
scripts
-
contract.py 7.1 KB
Loading… -
process.py 8.9 KB
Loading… -
uncertainty.py 5.4 KB
Loading…
-
-
tests
-
regression.py 10.4 KB
Loading…
-
-
requirements.txt 13 B
Loading… -
SKILL.md 2.5 KB
--- name: process-radiometric-calibration description: Convolve a local spectral radiance table with a band spectral response function (SRF/RSR), then calculate top-of-atmosphere (TOA) reflectance and compare GUM and Monte Carlo uncertainty. Use for Landsat/Sentinel-style two-column SRF tables or a custom spectrometer's band response. Not for DN-to-radiance conversion, atmospheric correction, or pixel-to-wavelength calibration. --- # Process Radiometric Calibration 1. Read `references/input-schema.md`. Use one band per JSON input, with explicit wavelength and spectral-density units. Check the source metadata for a common wavelength medium; the CLI only records the supplied declaration. For TOA, use the acquisition date, solar zenith (not elevation) and either a solar spectrum or a band-averaged solar irradiance, both at 1 au. 2. Use the dedicated Python environment in `references/runtime-lock.md`. Supply an absolute input path and a new absolute output directory with an existing parent. The tool opens the input JSON and CSV files read-only and refuses URLs, UNC paths, symlinks and reparse points. 3. Run the CLI and read `report.json`. Require `status=PASS` and matching before/after SHA-256 hashes for all inputs. Coverage failures name the missing range: supply a spectrum covering the full SRF support rather than truncating or extrapolating. On `FAIL`, `result` is null. 4. Report SRF support and band radiance in the canonical units. For TOA also report the irradiance source, day of year, approximate Earth–Sun distance, zenith, and dimensionless reflectance. Read warnings before using values outside [0, 1]. 5. When uncertainty is supplied, report the GUM estimate and standard uncertainty, the Monte Carlo mean, standard uncertainty and equal-tail 95% interval, and the comparison verdict. For `DISAGREE`, keep both results and investigate the listed causes before choosing a reported uncertainty. Read `references/methods-and-sources.md` for thresholds and model limits. If uncertainties were not supplied, report them as not evaluated. ## Run `<python>` is the pinned interpreter; `<skill-dir>` is the absolute path to this skill. The example is synthetic. ```bash <python> -X utf8 -I <skill-dir>/scripts/process.py --input <skill-dir>/examples/input.json --output-dir /absolute/new-output-dir ``` Use `scripts/contract.py --output-dir <absolute-new-directory>` to qualify the runtime without processing input. Use `tests/regression.py --output-dir <absolute-new-directory>` to run the analytic regressions in fresh CLI processes with the same interpreter and flags.
Reviews (0)
No reviews yet.
Comments
Sign in to join the conversation.
No comments yet. Start the conversation.