Skip to main content

No project description provided

Project description

galsynthspec

Galaxy Synthetic Spectrum fitting

Galsynthspec is a Python package for fitting synthetic galaxy spectra to observed data. It is designed to work with the sfdmap package for spectral fitting and provides tools for analyzing and visualizing the results.

It combines three key features:

  1. Coordinate-based photometry retrieval using the astroquery package, allowing users to fetch photometric data from various surveys.
  2. Galaxy fitting using prospector, enabling users to fit galaxy spectra with a variety of models.
  3. Analysis and visualization tools for the fitted spectra.

If you are working with transient data, galsynthspec can also use TNS to resolve transient names to their respective coordinates, and identify a likely host using PS1.

Installation

You can try the gard way:

git clone git@github.com:robertdstein/galsynthspec.git
cd galsynthspec
pip install -e ".[dev]"
pre-commit install

galsynthspec also uses the sfdmap package for extinction corrections. While the package will be installed when using pip, it requires additional data files to function properly. To set up the data files, run the following command:

Set the environment variable SFD_DATA_DIR to the directory where you want to store the data files, and then run:

wget https://github.com/kbarbary/sfddata/archive/master.tar.gz
tar xzf master.tar.gz

You also need to install https://github.com/cconroy20/fsps

You can try the easy way, with Docker:

docker pull robertdstein/galsynthspec:latest

Then, you can run the container with:

docker run -v /my/local/dir:/mydata robertdstein/galsynthspec by-name AT2019fdr

This will map /my/local/dir on your host machine to /mydata in the container, allowing you to access the data files from within the container. It will also run the by-name command with the transient name AT2019fdr, which will resolve the name to its coordinates and fetch the photometric data.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

galsynthspec-0.1.0.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

galsynthspec-0.1.0-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file galsynthspec-0.1.0.tar.gz.

File metadata

  • Download URL: galsynthspec-0.1.0.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for galsynthspec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec7b070f4cb0b30b9cf03796ee60636e8e4cbf1bc3b255de8f42b245d4c2d866
MD5 d46c41e067b6e26a5f1944190d910cf4
BLAKE2b-256 42f638a41469ac4cffcc37bae2bbf6e20072cb789abcb7af53db41848be2603e

See more details on using hashes here.

Provenance

The following attestation bundles were made for galsynthspec-0.1.0.tar.gz:

Publisher: continuous_integration.yml on robertdstein/galsynthspec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file galsynthspec-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: galsynthspec-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for galsynthspec-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79ceb4f95c9c66a9e29964b4f2948db6942228f4be24ad2707ce18e200afe477
MD5 8fd4874a46a3b89ed52bd2a539baf771
BLAKE2b-256 7e1078564996f213368909641cf6df6e96e433ac876664797ef993f0b310fa29

See more details on using hashes here.

Provenance

The following attestation bundles were made for galsynthspec-0.1.0-py3-none-any.whl:

Publisher: continuous_integration.yml on robertdstein/galsynthspec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page