Stellar population synthesis tools
Project description
FASTAR
FASTAR is a fully differentiable, evolutionary stellar population synthesis code. It generates single stellar population (SSP) model predictions for both spectroscopic (from ~3,500 Å to ~7,400 Å, at a 2.51 Å FWHM resolution) and spectral energy distribution (SED, from ~2,000 Å to ~11,500 Å) measurements.
Unlike traditional SSP models, FASTAR produces continuous predictions for any age, metallicity and initial mass function (IMF) value. It also supports SSP model uncertainty estimation through Monte Carlo sampling.
Critically, FASTAR can also generate on the fly semi-resolved SSP models assuming the IMF is not fully sampled, i.e., when the number of stars per resolution element is not large enough.
Ingredients
- MILES — empirical stellar library
- BOSZ — theoretical stellar library
- Worthey & Lee (2011) — bolometric correction tables
- BaSTI-IAC — isochrones
Features
- NN-based predictions of stellar spectra.
- SSP synthesis for photometric and spectroscopic data.
- Integrated and semi-resolved SSP predictions.
Installation
git clone https://github.com/inavarro/fastar.git
cd fastar/
pip install .
This will install it in the current environment, but it is recommended to use
a virtual environment for the installation (using venv, conda, uv or the
tool of your choosing).
Development installation
If you wish to modify the fastar code, we recommend to use the provided
Makefile to setup your environment. It uses uv
to setup a virtual environment and it should be transparent to the developer.
git clone https://github.com/inavarro/fastar.git
cd fastar/
make install-dev
# ... do your development and test them
make tests
# ... add your changes and do a commit
# git add ...
# git commit ...
# This will trigger some automatic checks (format, linting,...) that you must
# address before committing (some of them are fixed automatically).
git push
Changes are welcome! But remember that it is always safer to work on your local fork and only when your development is finished you can proceed to do a PR.
Quick Start
from fastar import IntegratedSSPSynthesizer
from fastar.imf import kroupa
ssp = IntegratedSSPSynthesizer(imf_function=kroupa)
flux = ssp.synthesize(age=10.0, met=0.0)
wave = ssp.wave
Project details
Release history Release notifications | RSS feed
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 fastar_astro-0.1.2.tar.gz.
File metadata
- Download URL: fastar_astro-0.1.2.tar.gz
- Upload date:
- Size: 69.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34f9da0e246737e5524f12f12249be3a406f506d7dcb27b3e6d9928a42e6b77e
|
|
| MD5 |
31c7e5befc0a25f27d14089ee3294586
|
|
| BLAKE2b-256 |
fb47cc7a90c7165a006f456bc368387c7cd66800c14d6d631df58e4d5e477f8d
|
Provenance
The following attestation bundles were made for fastar_astro-0.1.2.tar.gz:
Publisher:
publish.yml on inavarro/fastar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastar_astro-0.1.2.tar.gz -
Subject digest:
34f9da0e246737e5524f12f12249be3a406f506d7dcb27b3e6d9928a42e6b77e - Sigstore transparency entry: 1396610099
- Sigstore integration time:
-
Permalink:
inavarro/fastar@aac6a363d5685b14f2b9b6691db1880406beb3e9 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/inavarro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aac6a363d5685b14f2b9b6691db1880406beb3e9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fastar_astro-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fastar_astro-0.1.2-py3-none-any.whl
- Upload date:
- Size: 61.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
069d82d5bb4dd392caaf10a1219b8768877dcdda68b567e5fba47952de0840a7
|
|
| MD5 |
3cb45e039148d5c2754d0b45575bd9e6
|
|
| BLAKE2b-256 |
18b011a6329478040c5bbee6f2ecec24a7a333ec92f81b008cb850ec5fb60b23
|
Provenance
The following attestation bundles were made for fastar_astro-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on inavarro/fastar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastar_astro-0.1.2-py3-none-any.whl -
Subject digest:
069d82d5bb4dd392caaf10a1219b8768877dcdda68b567e5fba47952de0840a7 - Sigstore transparency entry: 1396610108
- Sigstore integration time:
-
Permalink:
inavarro/fastar@aac6a363d5685b14f2b9b6691db1880406beb3e9 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/inavarro
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aac6a363d5685b14f2b9b6691db1880406beb3e9 -
Trigger Event:
push
-
Statement type: