Returns the joint progenitor probability (probability that a galaxy is a spheroid at z=0) for a given redshift, mass, environment (percentile) and star-formation rate.
Project description
## README for tabulate_progenitor_probability.py
### Reference: [Martin et al. 2018a](https://doi.org/10.1093/mnras/stx3057 “Martin+18a”) Martin, G., Kaviraj, S., Devriendt J. E. G., Dubois Y., Pichon C., Laigle C.
### Contact: [g.martin4@herts.ac.uk](mailto:g.martin4@herts.ac.uk “email”)
### Purpose: Reads fractions.dat binary file and returns the joint progenitor probability for given redshift, mass, environment (percentile) and star-formation rate (i.e. the probability that a galaxy with given properties has spheroidal morphology at z=0). If one or more dimensions are not specified, the joint progenitor probability is returned with missing dimensions marginalised out.
### Prerequisites: * fractions.dat * numpy * scipy
### Installation:
pip install git+https://github.com/garrethmartin/progenitor-fractions.git
### Usage:
#### Using the built-in script:
tabulate_progenitor_probability.py -z 0.4 -m 10.8 0.266751184855
tabulate_progenitor_probability.py –help
- usage: tabulate_progenitor_probability.py [-h] [-z REDSHIFT] [-m MASS]
[-p DENSITY] [-s SFR]
- optional arguments:
- -h, --help
show this help message and exit
- -z REDSHIFT, --redshift REDSHIFT
Redshift
- -m MASS, --mass MASS
Log10 stellar mass/M_sun
- -p DENSITY, --density DENSITY
Local number density percentile [0,100]
- -s SFR, --SFR SFR
SFR in M_sun/yr
-z redshift
-m log10(stellar mass / M_sun)
-p percentile of local number density in the range [0,100] (see [Martin et al. 2018a](https://doi.org/10.1093/mnras/stx3057 “Martin+18a”))
-s star formation rate in M_sun/yr
#### Importing the package ` from progenitor_probability import progenitor_probability >>> progenitor_probability(redshift=0.4, mass=10.8) 0.266751184855 `
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
Hashes for progenitor_probability-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2b0e7bf71ffdd1dfeb338d264e927524636bff872ed50f3ad2a0d59e8e21fcd |
|
MD5 | 66f30b92b89586f6719505d5f1982511 |
|
BLAKE2b-256 | 513588de3383397d981db9b42ea65068afcb73d0b5cc17b9e27b6e1f25680fac |
Hashes for progenitor_probability-1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf42e2b229faab1035184a64683b95f384fabf0c1e5759148381c9d08a675f13 |
|
MD5 | 7585c825ea8dafde696e4643fa6ce1fa |
|
BLAKE2b-256 | 986e947df96e6f1ea07cfe71349428b77287f82649a60b869d93dc0aa68765c2 |