Dust Compendium
Dust attenuation tables for simple galactic geometries, computed by running the Hyperion Monte Carlo radiative transfer code over a grid of galaxy models.
A tabulation gives the fraction of starlight escaping a galaxy as a function of
wavelength, inclination, the optical depth of each dusty component, and the
sizes of the components themselves. Galacticus
reads them through its dustAttenuationAtlasCompendium class. The method is
described in Benson (2018).
Full documentation is at dust-compendium.readthedocs.io.
Installation
pip install dust-compendium
That gives the library and the command line tool. Computing new tabulations additionally needs Hyperion, in two parts, neither of which is a dependency of this package:
- its Python front-end, which has to come from source for now — the current
PyPI release calls
np.string_when writing a model, which NumPy 2 removed; - its Fortran solvers, which
pipdoes not install at all.
Using it
dust-compendium validate configs/compendium-d03-rv3.1.yaml # what would this run?
dust-compendium build configs/compendium-d03-rv3.1.yaml # write the model inputs
dust-compendium run configs/compendium-d03-rv3.1.yaml # solve them, here or on Slurm
dust-compendium collect configs/compendium-d03-rv3.1.yaml # assemble the tabulation
dust-compendium plot attenuations.hdf5 -q curve -c opticalDepth
dust-compendium compare attenuations.hdf5 --atlas /path/to/atlas.hdf5
A campaign is described by a YAML file. Any value written as a range becomes an axis of the tabulation; a galaxy is a set of named components, each of which may carry stars, dust, both or neither. Each step reads what the one before it left on disk, so any of them can be interrupted and resumed.
configs/ holds the configuration for the published Draine R_V=3.1 tabulation,
one adding dust to the spheroid, and one matched to Ferrara et al. (1999) for
validation.
Validation
Reproducing Ferrara et al. (1999) with matched grains, geometry and grids gives a median absolute difference from their published atlas of 0.0034 in disk transmission, with 99.9% of entries within 0.02 — as close as the original scripts got, and near the 0.005 floor set by the atlas being published to two decimal places.
Provenance
This replaces the Perl and Python 2 scripts written for the 2018 paper, which are preserved verbatim in the first commit of this repository. Rewriting them turned up several defects, two of which reached published data; those are described under Published datasets.
License
MIT. See LICENSE.
Metadata
Release files for dust-compendium 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dust_compendium-0.2.0.tar.gz | 129.3 kB | With provenance | Details for dust_compendium-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dust_compendium-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for dust_compendium-0.2.0-py3-none-any.whl |
Total release size: 205.9 kB
Release files / dust_compendium-0.2.0.tar.gz
| Download URL | dust_compendium-0.2.0.tar.gz |
|---|---|
| Size | 129.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8c9c260d6d8913fd4faf28a9dab557aa798dc62ca0ded82ae6fe704799eb739
|
|
BLAKE2b-256 checksum How to use checksums |
9eaf9455131a5516c9fc2899069471c682faab8d3253d23e9d16835c9142afe4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 27, 2026.
Transparency logRelease files / dust_compendium-0.2.0-py3-none-any.whl
| Download URL | dust_compendium-0.2.0-py3-none-any.whl |
|---|---|
| Size | 76.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21a1ade2c6d03ad524edd0d3f12922134b34712f2c213434c4d0d7b12fbe080b
|
|
BLAKE2b-256 checksum How to use checksums |
6efaa48c1370efaa865e6446a039d1e41bc94f28c1f99b42f92b4e205d52ef5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 27, 2026.
Transparency logSecurity for dust-compendium 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dust_compendium-0.2.0.tar.gz
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 Oct 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.