Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Source artifacts and adapters

Use this page when a local atmosphere archive must become a reproducible, source-specific, fixed-shape spectral input without hiding file or conversion choices inside JAX.

Representation contract

Contract fieldCurrent representation
Mathematical objectA host-side mapping from released files and catalog rows to an exact product descriptor, validated local topology, canonical spectrum vertices, and a prepared evaluator.
Physical conventionEvery adapter records native coordinate, density, unit, conversion, citations, and exact product identity before producing canonical surface spectra.
Runtime ownerjaxstro.atmospheres owns adapters, backends, catalog selection, artifact validity, topology, and preparation results.
Shape and unit policyReleased files may be ragged; adapters validate them on the host and produce one-dimensional canonical spectra stacked into a fixed cell or simplex.
Transform boundaryFilesystem access, parsing, ranking, and topology are not traced; only the prepared array object crosses into JAX evaluation.
EvidenceParser, catalog, artifact, adapter, overlap, real-file, and preparation tests check exact failures and provenance; policy acceptance uses separate validation evidence.
Downstream interpretation boundaryJaxstro does not acquire every archive automatically, choose a physical atmosphere family, or own observables built from the prepared surface spectrum.

One-way data boundary

The adapter boundary can be summarized as

A:(artifact,product,θ,plan)(prepared arrays,provenance,status).\mathcal{A}: (\mathrm{artifact},\mathrm{product},\boldsymbol{\theta},\mathrm{plan}) \longmapsto (\mathrm{prepared\ arrays},\mathrm{provenance},\mathrm{status}).

In (1), the left side is host-owned and may involve paths, metadata, optional data dependencies, and discrete decisions. The right side contains fixed-shape arrays plus static metadata suitable for evaluation without filesystem access.

Exact product routing

AtmosphereAdapterRegistry routes an exact product_id to a NewEraBackend, BoszBackend, SonoraBackend, or TlustyBackend. ProductDescriptor records the parameter plane, topology, and evidence-selected interpolation policy. ArtifactReport records whether the catalog and spectral store are present and match the expected identity.

Broad family names are useful for discovery but insufficient for interpolation. Resolution, composition, clouds, microturbulence, and abundance variants remain part of exact product identity.

Native-to-canonical conversion

Each adapter validates the released axes and columns before conversion. It records native semantics in SpectrumProvenance, performs the source-specific density and coordinate transform, orders the canonical axis strictly increasingly, and resamples to the request plan. Source-specific operations such as TLUSTY’s F_nu = 4 pi H_nu or duplicate-coordinate coalescing remain visible in provenance.

Failure classes

Expected scientific gaps use structured statuses: no exact dataset, missing complete topology, outside convex hull, unsupported spectral window, or unvalidated policy. Corrupt artifacts, malformed axes, and invariant violations raise exceptions because they are broken inputs, not normal coverage gaps.

The evidence supports deterministic source handling and fixed preparation rules. It does not prove that a released atmosphere family is appropriate for a particular object or that a downstream observable model is correct.