Synthetic absorber catalog generator from astrophysical simulations
Project description
SALSA
SALSA: Synthetic Absorption Line Surveyor Application is a Python tool that constructs synthetic absorber catalogs from hydrodynamic galaxy simulations. Salsa heavily utilizes yt to access simulation data and Trident to create light rays/sight lines and generate synthetic spectra.
Observational studies generate large absorber catalogs by studying the absorption line spectra of distant quasars, as their light passes through intervening galaxies. Salsa can generate similar catalogs from cosmological and galactic simulations, allowing research to study these simulations from an observers perspective. This can give new insights into the data as well as help facilitate comparisons and collaboration between simulations and observations.
Salsa allows us to dip into galactic simulations and start to chip away at the many unknowns of the universe
A JOSS paper was published for SALSA and we recommend reading it for an overview of the package and its possible uses. If you do use SALSA in a project we ask that you cite this paper.
For detailed information on how to install and run salsa, Read the Docs here
Install
If you have all the dependencies installed, you can clone the repository and run these commands:
$ git clone https://github.com/biboyd/SALSA.git
$ cd SALSA
$ pip install -e .
$ python
>>> import salsa
Now you should be all set to code!
Installing dependencies
To help with installing dependencies, enivronment.yml
is included in the
repository. First,
install conda
Then you should be able to create a conda environment via:
$ conda env create --file environment.yml
$ conda activate salsa-env
Note that you need gcc compiler installed (which it often already is on most machines). For a more detailed description see the installation guide which also includes tips if you want to install dependencies on your own.
Getting Started
For an annotated example go here. Or launch an interactive jupyter hosted on Binder here (note that the notebook may take some time to load as it generally has to build the repository).
If you want to explore on your own, the easiest way to get started is use
salsa.generate_catalog()
. This takes:
- The simulation dataset
- Number of light rays/sightlines to make
- Directory to save those light rays
- A list of ions
- Some other optional parameters.
This creates a number light rays and then extracts absorbers for each ion. Apandas.DataFrame
is returned with information about all the absorbers which can then be further analyzed.
Contributing Guidelines
All contributions are welcome! This is an open-source project, built on many other open-source projects. Contributing can take many forms including: contributing code, testing and experimenting, or offering ideas for different features.
If you are interested in contributing you can contact us directly at boyd.brendan@stonybrook.edu or add an issue on this Github page.
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
File details
Details for the file astro-salsa-1.0.0.tar.gz
.
File metadata
- Download URL: astro-salsa-1.0.0.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 450bd089d491090551794eab44ce84f491f7c643ced373e39e0b1eb9519cb2ed |
|
MD5 | 94d2c87dff397fb8e3823838da5f4a7b |
|
BLAKE2b-256 | e66b51be524ef70c56ff7dcdef354711dc18a7b92a6a30033972d14e313ceed2 |
File details
Details for the file astro_salsa-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: astro_salsa-1.0.0-py3-none-any.whl
- Upload date:
- Size: 33.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b8c4861297ca87ee0e4268932e663879d83a1d1aa62dd34299e5c19f1570a15 |
|
MD5 | 3acefe137e40af5ecabfd81f7cc5aa47 |
|
BLAKE2b-256 | 02e4f9bee7e868354cb96956625097c0d4d0b3321d868f3ac0c443dbf2baa40d |