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:
- Coordinate-based photometry retrieval using the
astroquerypackage, allowing users to fetch photometric data from various surveys. - Galaxy fitting using prospector, enabling users to fit galaxy spectra with a variety of models.
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec7b070f4cb0b30b9cf03796ee60636e8e4cbf1bc3b255de8f42b245d4c2d866
|
|
| MD5 |
d46c41e067b6e26a5f1944190d910cf4
|
|
| BLAKE2b-256 |
42f638a41469ac4cffcc37bae2bbf6e20072cb789abcb7af53db41848be2603e
|
Provenance
The following attestation bundles were made for galsynthspec-0.1.0.tar.gz:
Publisher:
continuous_integration.yml on robertdstein/galsynthspec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
galsynthspec-0.1.0.tar.gz -
Subject digest:
ec7b070f4cb0b30b9cf03796ee60636e8e4cbf1bc3b255de8f42b245d4c2d866 - Sigstore transparency entry: 235339135
- Sigstore integration time:
-
Permalink:
robertdstein/galsynthspec@fcdc007ca63f66821b5829f2e5c586752d30feb2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/robertdstein
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
continuous_integration.yml@fcdc007ca63f66821b5829f2e5c586752d30feb2 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79ceb4f95c9c66a9e29964b4f2948db6942228f4be24ad2707ce18e200afe477
|
|
| MD5 |
8fd4874a46a3b89ed52bd2a539baf771
|
|
| BLAKE2b-256 |
7e1078564996f213368909641cf6df6e96e433ac876664797ef993f0b310fa29
|
Provenance
The following attestation bundles were made for galsynthspec-0.1.0-py3-none-any.whl:
Publisher:
continuous_integration.yml on robertdstein/galsynthspec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
galsynthspec-0.1.0-py3-none-any.whl -
Subject digest:
79ceb4f95c9c66a9e29964b4f2948db6942228f4be24ad2707ce18e200afe477 - Sigstore transparency entry: 235339142
- Sigstore integration time:
-
Permalink:
robertdstein/galsynthspec@fcdc007ca63f66821b5829f2e5c586752d30feb2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/robertdstein
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
continuous_integration.yml@fcdc007ca63f66821b5829f2e5c586752d30feb2 -
Trigger Event:
push
-
Statement type: