Skip to main content

Dust Compendium

CI Documentation

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 pip does not install at all.

See the installation notes.

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.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dust-compendium 0.1.0
File Size Uploaded Provenance Actions
dust_compendium-0.1.0.tar.gz 103.2 kB With provenance Details for dust_compendium-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dust-compendium 0.1.0
File Interpreter ABI Platform Actions
dust_compendium-0.1.0-py3-none-any.whl Python 3 none any Details for dust_compendium-0.1.0-py3-none-any.whl

Total release size: 170.9 kB

Release files / dust_compendium-0.1.0.tar.gz

Download URL dust_compendium-0.1.0.tar.gz
Size 103.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bc8a6f03a248a13c69cba46797a64a5ed3e1e3545d975ce5fa4fa635d6c60a85
BLAKE2b-256 checksum
How to use checksums
f24cfc2bc306a1075c2f94001abc5bdc101f101abfab8078021e1ed41e890710
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 17, 2026.

Transparency log

Release files / dust_compendium-0.1.0-py3-none-any.whl

Download URL dust_compendium-0.1.0-py3-none-any.whl
Size 67.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f41b260593a2ffe5f92b678903f8fadb3b455ee635bfdc8636bef8eb652e0d95
BLAKE2b-256 checksum
How to use checksums
da79ac8af0b8163f9446c2f2e927c0325dde1441972051d963f01f31807ef208
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 17, 2026.

Transparency log

Security for dust-compendium 0.1.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.

Select from 2 files

Attestation for dust_compendium-0.1.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 Sep 17, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page