Skip to main content

lazuli-astrosim-data

Data bank for Lazuli instrument simulations.

This repository has two goals:

  1. Store the reference data shared across the Lazuli simulators (e.g. slicersim), so that every simulator uses the same inputs.
  2. Give easy access to that data through simple top-level I/O functions, so simulators never need to hard-code file paths.

The data files are shipped inside the Python package, so once it is installed they are available wherever the package is imported.

Installation

git clone https://github.com/schmidt-observatories/lazuli-astrosim-data.git
cd lazuli-astrosim-data
pip install .

or directly:

pip install git+https://github.com/schmidt-observatories/lazuli-astrosim-data.git

NGC galaxies

Content

The NGC data are in src/lazuli_astrosim_data/data/:

File Content
ngc/ngc_XXXX_spec.fits Spectral energy distribution of the galaxy, from the Brown et al. (2014) galaxy SED atlas (pysynphot / HST ETC format). Binary table with columns WAVELENGTH [Å] and FLUX [flam = erg/s/cm²/Å].
ngc/ngc_XXXX_thumbnails.fits.gz r-band image of the galaxy alone, from Legacy Surveys DR10 cutouts, made with ngcs. Stars are masked, sky is subtracted and pixels outside the galaxy are set to 0. Pixel values are in nanomaggy (AB zero point 22.5). The header holds the WCS, pixel scale, and SGA-2020 galaxy properties.
sga2020_catalog_of_ngcs.parquet SGA-2020 (Moustakas et al. 2023) catalog of NGC galaxies: Name, SMASB26, gmagSB26, rmagSB26, zmagSB26, RAJ2000, DEJ2000, z-LEDA.

Every galaxy available has a spectrum, but not every galaxy has a thumbnail.

Access

Use get_galaxy_filepath to get file paths from a galaxy name. Names are case insensitive and can be given as "NGC4321", "ngc_4321" or "NGC 4321".

from lazuli_astrosim_data.io import get_galaxy_filepath

specfile = get_galaxy_filepath("NGC4321")                   # spectrum (default)
imagefile = get_galaxy_filepath("NGC4321", which="image")   # thumbnail
specfile, imagefile = get_galaxy_filepath("NGC4321", which="both")

A FileNotFoundError is raised if the galaxy has no spectrum. The returned paths can then be read with, e.g., astropy:

from astropy.io import fits

spec = fits.getdata(specfile)       # spec["WAVELENGTH"], spec["FLUX"]
image, header = fits.getdata(imagefile, header=True)

The package data directory is also exposed as lazuli_astrosim_data.io.PACKAGE_PATH, for example to read the catalog:

import pandas as pd
from lazuli_astrosim_data.io import PACKAGE_PATH

catalog = pd.read_parquet(PACKAGE_PATH / "data" / "sga2020_catalog_of_ngcs.parquet")

Adding data

  1. Put the new files in src/lazuli_astrosim_data/data/ (in a subdirectory if it is a new data set).
  2. If you create a new subdirectory, add it to [tool.setuptools.package-data] in pyproject.toml, otherwise it will not be installed.
  3. Add an access function in src/lazuli_astrosim_data/io.py and document it here.

References

  • Brown, M. J. I. et al. 2014, ApJS, 212, 18 — An Atlas of Galaxy Spectral Energy Distributions
  • Moustakas, J. et al. 2023, ApJS, 269, 3 — Siena Galaxy Atlas 2020
  • Dey, A. et al. 2019, AJ, 157, 168 — DESI Legacy Imaging Surveys
  • Gaia Collaboration, Vallenari, A. et al. 2023, A&A, 674, A1 — Gaia DR3

Metadata

Release files for lazuli-astrosim-data 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 lazuli-astrosim-data 0.1.0
File Size Uploaded Provenance Actions
lazuli_astrosim_data-0.1.0.tar.gz 47.2 MB Without provenance Details for lazuli_astrosim_data-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lazuli-astrosim-data 0.1.0
File Interpreter ABI Platform Actions
lazuli_astrosim_data-0.1.0-py3-none-any.whl Python 3 none any Details for lazuli_astrosim_data-0.1.0-py3-none-any.whl

Total release size: 94.4 MB

Release files / lazuli_astrosim_data-0.1.0.tar.gz

Download URL lazuli_astrosim_data-0.1.0.tar.gz
Size 47.2 MB
Tags Source
SHA-256 checksum
How to use checksums
75e1c106a567fe01724e081d5644c07de73df4a98ad9e75bbdb223a140bfd8ed
BLAKE2b-256 checksum
How to use checksums
cf00bef1519caec1e5807ebce5a113bc0396ed45daa6d91065b24329b14121ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL lazuli_astrosim_data-0.1.0-py3-none-any.whl
Size 47.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b90fb29d1e918b3e6037801436716343163207631426e8ad25a30526ef0e692f
BLAKE2b-256 checksum
How to use checksums
9d46d66fd62f190742246f6e31974f15bdc957a63cc6fa79f16182ee30406da3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for lazuli-astrosim-data 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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 No 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