Solar references and source records

Choose a bundled spectrum and check its units, assumptions, and provenance.

Use import skyloc as sloc, then call sloc.get_solspect() to load solar irradiance at 1 au. Use the default source="tsis_full" for broad coverage, source="tsis" for finer spectral detail, or source="astm" for ASTM-based work and wavelengths beyond 200 µm.

Choosing a reference

Source Choose it for Spectral detail
"tsis_full" (default) Broadband, ultraviolet, and infrared calculations 1 nm bin averages
"tsis" Features lost in the full product’s 1 nm bins 0.1 nm Gaussian FWHM; 0.025 nm sampling
"astm" Reproducing ASTM results or coverage beyond 200 µm Nonuniform grid; resolution varies with wavelength

TSIS full: broad coverage

The central HSRS v2 reference covers 0.202–2.73 µm. The extension adds ultraviolet observations and a modeled infrared baseline, with observed solar lines where available.

Values are 1 nm bin averages. Their nominal edges span 0.115–200 µm; they are not samples smoothed by a 1 nm Gaussian. The table below gives the first and last bin centers. Infrared uncertainty reaches about 8% by 100 µm and remains at 8% to 200 µm. See Coddington et al. (2023), §4.1.

Finer TSIS: spectral features

The HSRS v2 p1nm variant uses 0.1 nm Gaussian FWHM and 0.025 nm sampling. Sampling interval and spectral resolution are different. It shares the central reference with "tsis_full", but smoothing and binning give different sampled values.

Both products are described by Coddington et al. (2023), Table 1 and §4.1.

ASTM: legacy results and longer wavelengths

The ASTM E490-00 (2000) reference describes air-mass-zero irradiance normalized to 1366.1 W m⁻². Its grid is nonuniform and its spectral resolution varies with wavelength. Differences from TSIS include the reference data, spectral detail, and irradiance normalization.

Wavelength coverage

Source Packaged Parquet file Rows Exact center range [µm]
"tsis_full" tsis1_hsrs_binned_fs.parquet 199,885 0.1155–199.9995
"tsis" tsis1_hsrs_p1nm.parquet 101,120 0.202–2.729975
"astm" astm_e490.parquet 1,697 0.1195–1000

Available columns

All available source columns load by default. The returned Astropy QTable uses these units:

Column Meaning Unit Source availability
wl Wavelength µm All
flam Spectral irradiance W m⁻² µm⁻¹ All
dflam Published absolute irradiance uncertainty W m⁻² µm⁻¹ Both TSIS products
bandwidth Source Gaussian FWHM µm Finer TSIS
fnu, ABmag Derived spectral irradiance and AB magnitude MJy, mag Computed for all sources

The stored TSIS uncertainty column loads as dflam. ASTM has no uncertainty or bandwidth column.

Parquet files use nm and W m⁻² nm⁻¹. Loading divides wavelengths and widths by 1000 and multiplies spectral irradiances and their uncertainties by 1000.

import skyloc as sloc

solar = sloc.get_solspect()
fine = sloc.get_solspect(source="tsis")
physical = sloc.get_solspect(
    cols2drop=("dflam", "bandwidth"), add_fnu=False, add_abmag=False
)

Use cols2drop to omit columns. Known names absent from a source are ignored; unknown names raise ValueError. Required wl and flam cannot be dropped. Dropping fnu or ABmag overrides its add flag.

add_fnu and add_abmag are independent and default to True. AB magnitudes use 3631 Jy as the zero point; zero irradiance gives zero fnu and infinite ABmag. These are monochromatic magnitudes, not filter-integrated magnitudes.

Loading and interpolation

Supply wavelength nodes to interpolate; plain values are in µm. Quantities in other length units are accepted. Pass table=solar to reuse a loaded table; source and table are mutually exclusive.

flam is interpolated linearly. Order and duplicate queries are kept; an empty query returns an empty table. Extrapolation raises ValueError. Magnitudes are computed after interpolating irradiance. This samples points; it does not integrate a filter, conserve flux during rebinning, or restore unresolved spectral structure.

Uncertainty assumptions

Interpolation propagates dflam using neighboring error correlations:

  • dflam_rho=1.0 (default): fully correlated neighboring errors; an upper bound.
  • dflam_rho=0: independent neighboring errors.
  • A justified scalar or one value per source interval: another correlation model.

Correlations must be finite and dimensionless, within [-1, 1]. Nondefault correlations require interpolation with retained dflam. Exact source nodes keep their original uncertainty. Result metadata records dflam_propagation as "upper_bound" when all correlations are 1, otherwise "neighbor_correlation".

The files contain no covariance. Published uncertainty definitions vary by spectral region, including model comparisons in the infrared; they are not uniformly independent 1σ errors.

Propagation excludes wavelength errors, interpolation model error, and output covariance. Outputs sharing source samples may be correlated even with dflam_rho=0; reusing an interpolated table cannot recover those correlations. No uncertainty columns are derived for fnu or ABmag.

Interpolation drops bandwidth with an INFO log: the native Gaussian width no longer describes the interpolated response. Other columns in a custom table are copied on its native grid. Interpolation raises ValueError if those extra columns remain; drop them with cols2drop.

Storage and sources

Identify a snapshot

Keep each Parquet file and its JSON record together when updating data. The records are in the installed package’s skyloc/data/ directory:

Source Record Original download date Reference
TSIS full tsis1_hsrs_binned_fs.json 2026-09-08 LASP full-spectrum record, data DOI
Finer TSIS tsis1_hsrs_p1nm.json 2026-09-07 LASP finer-spectrum record, data DOI
ASTM astm_e490.json Unknown NLR reference page

LASP/LISIRD provides the TSIS products. Their CSVs have no version field; the records identify the downloaded snapshot by date and checksum. Both were converted on 2026-09-08 without resampling, rescaling, normalization, or conversion to float32.

ASTM’s original repository CSV has no recorded download date or exact download URL. Its checksum identifies that CSV, not a new NLR download. The official source identification was checked on 2026-09-08; a row-by-row comparison with the currently hosted NLR data was not performed. The record also links to the NLR data disclaimer.

Inspect a record without copying its hashes into documentation:

import json
from importlib.resources import files

record = json.loads(
    files("skyloc").joinpath("data/tsis1_hsrs_binned_fs.json").read_text()
)

The records contain download_url, landing_page, reference_doi when available, and upstream_csv_sha256, packaged_sha256, numeric_sha256. numeric_checksum_encoding defines the numeric hash: all columns in parquet_columns order, as a C-order little-endian float64 matrix.

Compare storage formats

Parquet preserves the original numeric columns as float64, with physical units and source metadata. Conversion uses lossless Zstandard compression and byte-stream-split encoding; CSV text formatting is not preserved.

Source Original CSV [kB] Gzip CSV [kB] Parquet [kB]
ASTM 21.6 8.1 12.7
Finer TSIS 5,397.6 2,025.9 943.2
TSIS full 10,305.8 3,875.7 1,479.7

Gzip is smaller for ASTM alone. Parquet is used consistently because it reduces the previously bundled ASTM CSV and TSIS gzip files, keeps units, and supports column selection without parsing CSV text. PyArrow is already a package dependency.

For parameter details, use the solar-spectrum API. For a worked example, use the solar tutorial.