spectrAccess
spectrAccess is a Python client to download and harmonise the reference data used to calibrate and validate satellite sensors (cal/val). It finds, downloads and reads data from RadCalNet, GSICS, AERONET, CAMS, Landsat, Sentinel-2 and NASA EMIT, and returns each source as a tidy pandas table in one shared schema. Every value carries an uncertainty record (the published uncertainty where the source gives one, a stated status where it does not), and every row keeps its source, URL and retrieval time.
It is written for remote sensing and Earth observation scientists, calibration engineers and satellite data providers who spend too much time on portal logins, file formats and unit conventions instead of the comparison itself.
spectrAccess fetches data on your behalf, using your own free account where a source needs one. It never re-serves or redistributes source data; each connector's DATA_TERMS.md lists that provider's terms and citation requirements.
Install
pip install spectraccess
For local development:
pip install -e ".[test]"
Large-archive adapters keep their maintained provider clients optional. For Sentinel-2 discovery and download through CDSETool:
pip install "spectraccess[cdse]"
For CAMS EAC4 access through ECMWF's maintained CDS API client:
pip install "spectraccess[cams]"
For EMIT L1B/L2A discovery and download through NASA earthaccess:
pip install "spectraccess[emit]"
The EMIT extra requires Python 3.12 or newer (the requirement of the reviewed
earthaccess==0.18.0 client). The base package and other extras continue to
support the Python versions declared in the package metadata.
For Landsat Collection-2 discovery and download through EODAG/USGS:
pip install "spectraccess[landsat]"
Quickstart
from spectraccess.connectors.gsics import GSICSConnector
connector = GSICSConnector()
datasets = connector.discover()
target = datasets[0]
raw = connector.fetch(target)
table = connector.parse(raw)
print(table.head())
Connectors
| Connector | Status | Auth requirement |
|---|---|---|
| GSICS GPPA | Available (EUMETSAT live, verified end-to-end; CMA catalog live but content-empty as of 2026-07-05; NOAA STAR pending, host unreachable 2026-07-05) | None for public THREDDS catalogs |
| MODIS/VIIRS calibration LUT | VIIRS connector shape available; NOAA STAR F-factor THREDDS URL pending verification; MODIS planned | None for public VIIRS THREDDS; MODIS source design pending |
| RadCalNet | Available (official JSON API; checked by hand against the live portal, 2026-07) | Free portal account; HTTP Basic auth via BYO credentials |
| Sentinel-2 CDSE | Available (thin adapter over maintained cdsetool; public discovery, BYO-credential download) |
None for catalogue discovery; free CDSE account for product download |
| NASA AERONET v3 | Available (native client for the public v3 web service; per-band AOD, Angstrom exponent, precipitable water; 550 nm AOD interpolation helper) | None; cite AERONET and the site PI (see DATA_TERMS.md) |
| CAMS EAC4 / JASMIN | Available (JASMIN cache access plus thin ADS adapter over maintained cdsapi; explicit CAMS forecast product for dates EAC4 does not yet cover) |
None for JASMIN, whose public mirror currently holds files only up to 2025-10-03; free ADS account/token for later dates and automatic fallback |
| NASA EMIT L1B/L2A | Available (thin adapter over maintained earthaccess) |
None for CMR discovery; free Earthdata Login for protected NetCDF download |
| Landsat 8/9 Collection 2 L1TP | Available (thin adapter over maintained EODAG USGS plugin; preserves tier and WRS-2 identity) | Free USGS EarthExplorer account and M2M application token via BYO credentials |
NOAA/NESDIS GSICS products are also mirrored on the EUMETSAT collaboration server's master THREDDS catalog (nesdisProducts.xml), so some NESDIS product families may already be reachable via the EUMETSAT connector default even while the canonical NOAA STAR host is down.
Landsat (USGS), RadCalNet, and CAMS via ADS have fixture tests, but they have not yet been exercised against the live services in CI: they need account credentials, and the weekly live checks skip them until those are configured. The free JASMIN CAMS mirror has no files after 2025-10-03, so recent CAMS dates need an ADS account and token.
Canonical schema
Alongside each connector's native parse() output, connectors can additionally emit
a shared, versioned, long/tidy canonical schema (spectraccess.core.schema, currently
SCHEMA_VERSION = "1.0") so downstream tools can consume any source through one stable
contract: one row per quantity value plus its uncertainty record. GSICS, RadCalNet and
AERONET expose this via to_canonical(native_frame, ...) and the connector convenience
method parse_canonical(raw, ...); the Sentinel-2 CDSE, EMIT and Landsat connectors emit
canonical scene metadata via target_to_canonical(target). CAMS returns its native
frame only.
| column | meaning |
|---|---|
time, platform, instrument, band, wavelength_nm |
observation identity |
site, latitude, longitude |
ground-site location, when applicable |
reference |
reference sensor/standard for differential quantities |
quantity (required, never null) |
snake_case quantity name (CF standard_name when one exists) |
value, units |
the measurement |
unc_value, unc_status, unc_k, unc_provider |
the uncertainty record (see below) |
source (required, never null), source_agency, source_url, retrieved_at |
provenance |
Uncertainty is a record, not a bare number: unc_value may be null, but unc_status never
is. unc_status is one of:
provided: the source itself supplied the uncertainty.derived: computed from other quantities by a downstream tool (no connector emits this yet).prior: an assumed/prior uncertainty, not measured for this row.unknown: no uncertainty value is available (unc_valueis null).
RadCalNet .output files carry an absolute, dimensionless uncertainty value
for each wavelength and observation. The native frame preserves it as
toa_reflectance_unc together with toa_reflectance_unc_status,
toa_reflectance_unc_provider, and toa_reflectance_unc_k. Positive source
values are provided; negative values are climatological magnitudes and are
therefore prior; fill or absent values are unknown. RadCalNet R2 does not
state a coverage factor, so toa_reflectance_unc_k and canonical unc_k stay
null. spectrAccess never substitutes a fixed percentage or assumes k=1.
.input files hold the surface reflectance the TOA values were propagated
from, so they parse to surface_reflectance and its matching _unc columns
(canonical quantity="surface_reflectance").
The Sentinel-2 CDSE connector canonicalizes the provider's scene cloud-cover
metadata as quantity="scene_cloud_cover". CDSE does not publish a numerical
uncertainty for that field, so it is honestly labelled unc_status="unknown"
with null unc_value, unc_k, and unc_provider. Product identity, footprint,
processing version, catalogue/download URLs, and the exact provider metadata
remain attached as provenance. spectrAccess does not parse SAFE pixels or
reimplement CDSE transport; those stay with CDSETool and downstream consumers.
The CAMS connector returns a CAMSResult that names base_dir (the directory
containing the date subtree) and date_dir (the YYYY_MM_DD subtree)
separately. This is an intentional typed contract: consumers such as SIAC that
append the date must use base_dir, while format converters can work inside
date_dir. requested_source, resolved_source, dataset URL, retrieval time,
cache status, and exact local assets are retained as native provenance. The
connector retrieves source assets only; atmospheric-correction and
model-specific format conversion remain downstream responsibilities.
Constructor arguments override environment variables: CAMS_SOURCE,
ADS_TOKEN, CAMS_FORECAST_CYCLE, CAMS_FORECAST_LEAD_HOURS,
SPECTRACCESS_CAMS_CACHE_DIR (default ~/.cache/spectraccess/cams), and
SPECTRACCESS_CAMS_FALLBACK_URL (a second mirror with the JASMIN layout).
The EMIT connector likewise keeps the multi-gigabyte science cubes opaque. Its
canonical output covers only source-provided scene metadata (cloud cover and
solar angles), each labelled unc_status="unknown" because CMR does not publish
an uncertainty for those metadata values. Exact collection/native IDs, footprint,
orbit/scene, asset URLs, byte sizes, and SHA-512 checksums remain in the target
provenance. Cube/GLT interpretation and scientific admission are deliberately
downstream concerns; connector availability is not a claim-grade endorsement.
The Landsat connector applies the same boundary to Collection-2 L1TP products:
EODAG owns USGS search, authentication, retries, and download transport;
spectrAccess preserves the provider product ID, display ID, collection number,
tier (T1, T2, or RT), WRS-2 path/row, footprint, provider metadata, and a
stable cache identifier. Its canonical row describes only provider scene cloud
cover, with unknown uncertainty; archive pixels remain a downstream concern.
Call spectraccess.core.schema.validate(df) to check a frame against the schema; it raises
SchemaError naming every violation found. Extra, connector-specific columns are always
allowed and pass through validation untouched.
Maintainer: SpectraWorks B.V. Built by SpectraWorks, makers of RefCal, the cross-sensor calibration layer.
spectrAccess code is licensed under Apache-2.0. Source data remains governed by each external portal's own data terms; see each connector's DATA_TERMS.md.
Metadata
Release files for spectraccess 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spectraccess-0.1.1.tar.gz | 114.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spectraccess-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 198.9 kB
Release files / spectraccess-0.1.1.tar.gz
| Download URL | spectraccess-0.1.1.tar.gz |
|---|---|
| Size | 114.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a9a1e8b0032e3783bb3d769bc620a7040971c371b4e521baa2cb18058ea378c
|
|
BLAKE2b-256 checksum How to use checksums |
2fac83e60b8e7e73e9f7e76c751641986471bb7b7ba09edda05242bb243eb44f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / spectraccess-0.1.1-py3-none-any.whl
| Download URL | spectraccess-0.1.1-py3-none-any.whl |
|---|---|
| Size | 84.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6aa6ab31afa17cb59a79c9289a0c012eb49b3b3f3e45f5a993b4b86707c21fa2
|
|
BLAKE2b-256 checksum How to use checksums |
30beaf60da6c3d3de093c8a619b6ae7c78bb862d0c0a2fd294f11b405674f9cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency log