Process Radiometric Calibration
ASecurityConvolve a local spectral radiance table with a band spectral response function (SRF/RSR), then calculate top-of-atmosphere (TOA) reflectance; or measure detector nonlinearity from flux-addition readings (dark, beam A, beam B, both) and fit a relative response correction. Both compare GUM and Monte Carlo uncertainty. Use for Landsat/Sentinel-style two-column SRF tables, a custom spectrometer's band response, or a photodetector linearity calibration. Not for DN-to-radiance conversion, atmosphe...
- 11 stars
- 0 votes
- 0 copies
- 1 view
- Added November 21, 2026
Works with
Security analysis
100/100Pro scans all 15 files and shows the line behind each finding
npx -y skills add laweit-lxy/optics-agent-skills --skill process-radiometric-calibration --agent claude-codeAre you the author of Process Radiometric Calibration?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/laweit-lxy-process-radiometric-calibration)---
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; or measure detector nonlinearity from flux-addition readings (dark, beam A, beam B, both) and fit a relative response correction. Both compare GUM and Monte Carlo uncertainty. Use for Landsat/Sentinel-style two-column SRF tables, a custom spectrometer's band response, or a photodetector linearity calibration. 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.
## Detector nonlinearity
For flux-addition (superposition) readings, read `references/nonlinearity-schema.md` and supply raw repeat readings of the dark, A, B and AB states at each flux step, at least four per state, with a fit degree. Run `scripts/nonlinearity.py` with the same interpreter, flags and output rules:
```bash
<python> -X utf8 -I <skill-dir>/scripts/nonlinearity.py --input <skill-dir>/examples/nonlinearity-input.json --output-dir /absolute/new-output-dir
```
Require `status=PASS` and unchanged input hashes. Report the per-step L, the chain product Q with its uncertainty and significance when `chain.status` is `AVAILABLE`, the fitted correction table within `fit.measured_range`, the reduced chi-square, the chain–fit consistency, and the GUM/Monte Carlo comparisons. Read every warning: mixed amplifier ranges, imbalance, withheld chain, steps where Q is within two standard uncertainties of 1, and `DISAGREE` with few repeats. Do not extrapolate the correction. `references/methods-and-sources.md` gives the model and its limits.
Files in this skill
- SKILL.md
- agents/openai.yaml
- examples/input.json
- examples/radiance.csv
- examples/solar.csv
- examples/srf.csv
- references/input-schema.md
- references/methods-and-sources.md
- references/runtime-lock.md
- references/runtime.json
- requirements.txt
- scripts/contract.py
- scripts/process.py
- scripts/uncertainty.py
- tests/regression.py
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.