Skip to main content

SED fitting with non-parametric star formation histories

Project description

# Dense Basis SED fitting

An implementation of the Dense Basis method tailored to SED fitting, in particular, to the task of recovering accurate star formation history (SFH) information from galaxy spectral energy distributions (SEDs). The current code is being adapted from its original use-case (simultaneously fitting specific large catalogs of galaxies) to being a general purpose SED fitting code and acting as a module to compress and decompress SFHs.

As such, it is currently in an beta phase, where existing modules are being improved upon and crash-tested and thorough documentation is being written. If you are interested in using, testing or extending the repository, please shoot me an email.

### Installation and usage:

To use the package, clone the repository and run python setup.py install within the dense_basis folder. More detailed intstructions can be found at [dense-basis.readthedocs.io](https://dense-basis.readthedocs.io).

Documentation on usage and basic tutorials can also be found at [dense-basis.readthedocs.io](https://dense-basis.readthedocs.io).

A good place to get started is [here](https://github.com/kartheikiyer/dense_basis/blob/master/docs/tutorials/getting_started.ipynb).

References: - [Iyer & Gawiser (2017)](https://iopscience.iop.org/article/10.3847/1538-4357/aa63f0/meta) - [Iyer et al. (2019)](https://iopscience.iop.org/article/10.3847/1538-4357/ab2052/meta)

Contact: - kartheik.iyer@dunlap.utoronto.ca

### Changelog

v.0.1.8 - added plotting functions in the SedFit() class for posterior spectra and SFHs - added the dynamic_decoupling flag for the sSFR priors, which automatically sets the timescale on which SFR decoupling occurs (if invoked) to scale with redshift. - fixed a bug in the ‘sSFRlognormal’ sampling of the priors. - added parallelization using MultiPool from [schwimmbad](https://schwimmbad.readthedocs.io/en/latest/_modules/schwimmbad/multiprocessing.html). - pregrid generation can now be parallelized using the generate_atlas_in_parallel_zgrid() command. - changed the default value of decouple_sfr_time in tuple_to_sfh() to avoid a low-z error

v.0.1.7 - added arguments in makespec() to return spectra splined to an input wavelength array - added dynamic_norm argument to sed fitter (calculates free norm during fitting for better accuracy, but slower)

v.0.1.6 - added a class for the SED fitter - added the plot_atlas_priors() function - overhauled atlas generation with the makespec() function for self-consistency - added some bugfixes to the gp_sfh module for high sSFR values

v.0.1.5 - added basic MCMC support with emcee in the main repo instead of dense_basis_toolbelt

v.0.1.4 - The FSPS/python-FSPS requirement is no longer necessary, if a user requires only the GP-SFH module. - added more options to SFR sampling - flat in SFR, sSFR or lognormal in sSFR. removed the separate sample_sSFR_prior option - added option for tx_alpha sampling from IllustrisTNG (0<z<6, Nparam<10) - removed the squeeze_tx option - this can be effectively implemented with a larger value for the concentration parameter - implemented rough mass-metallicity prior - implemented flat and exponential dust priors for the Calzetti law, and a rough implementaion of the CF00 law using priors from Pacifici+16 - removed sample_all_params_safesSFR, and the safedraw=True in make_N_prior_draws - removed the min SFR in the sample_sfh_tuple function - updated the GP tuple_to_sfh module to decouple SFR if necessary. - overhauled the generate_atlas() and load_atlas() functions, - shifted storage of precomputed pregrids/atlas(es) from scipy.io to hickle

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

dense_basis-0.1.9.tar.gz (37.0 kB view details)

Uploaded Source

Built Distributions

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

dense_basis-0.1.9-py3.9.egg (58.4 MB view details)

Uploaded Egg

dense_basis-0.1.9-py3-none-any.whl (58.4 MB view details)

Uploaded Python 3

File details

Details for the file dense_basis-0.1.9.tar.gz.

File metadata

  • Download URL: dense_basis-0.1.9.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for dense_basis-0.1.9.tar.gz
Algorithm Hash digest
SHA256 62cdda7fb55a95a68f769150ce79752117df35409130294a2708f87b48ddd241
MD5 baebf323bdbe17c7e821689753aaae48
BLAKE2b-256 65bd35b4ecb9b42152b0539cf585b821a193f93fd55638bb7bcea99de930a73b

See more details on using hashes here.

File details

Details for the file dense_basis-0.1.9-py3.9.egg.

File metadata

  • Download URL: dense_basis-0.1.9-py3.9.egg
  • Upload date:
  • Size: 58.4 MB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for dense_basis-0.1.9-py3.9.egg
Algorithm Hash digest
SHA256 dd31efe7a1ffb36cd327d7fc2654d2a3bebed9da4e0fccb2934d4fcbea8ea53f
MD5 1ff19b127fc9718364343a5243785956
BLAKE2b-256 5d607e87d281901d83dbc8336ac00569b20d76d03212d85d27c96df6ab7f7f49

See more details on using hashes here.

File details

Details for the file dense_basis-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: dense_basis-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 58.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for dense_basis-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1a7754dc5e7812e9aa3298ffabe9736a84cb9d4a4c66d9fe31ba4edc401ff0dd
MD5 f886eda97309cd138198896ff1802c06
BLAKE2b-256 53b0bf7aab32d3faec9ef3c6c3ff62cbbafb08dd94f7208ed9f707b6891b0aca

See more details on using hashes here.

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