Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

mfouesneau/pyphot

pyphot -- A tool for computing photometry from spectra

https://static.pepy.tech/badge/pyphot https://static.pepy.tech/badge/pyphot/month

This is a set of tools for computing synthetic photometry in a simple way, ideal for integration into larger projects.

Full documentation at: http://mfouesneau.github.io/pyphot/

The inputs are photonic or energetic response functions for the desired photometric bands and stellar spectra. The modules are flexible to handle units in the wavelength definition through a simplified version of pint and astropy.units

Filters are represented individually by a Filter object. Collections of filters are handled with a Library. We provide an internal library that contains a significant number of common filters.

Each filter is minimally defined by a wavelength and throughput. Many properties, such as the central or pivot wavelength, are computed internally. When units are provided for the wavelength, zero points in multiple units are also accessible (AB, Vega magnitude, Jy, erg/s/cm2/AA). The default detector type is assumed to be photonic, but energetic detectors are also handled for the computations.

What's new?

See release notes

Installation

Before installation, make sure you have HDF5 version 1.8.4 or later (required for pytables; see details at https://github.com/PyTables/PyTables). We will remove this dependency in a future release.

For OSX:

brew install hdf5

For Debian-based distributions:

sudo apt-get install libhdf5-serial-dev
  • Installation from PyPI
pip install pyphot

pip install git+https://github.com/mfouesneau/pyphot   # if you want the unreleased version
  • Manual installation

Download the repository and run the setup

git clone https://github.com/mfouesneau/pyphot
cd pyphot
pip install .

Contributors

Author:

Morgan Fouesneau

Direct contributions to the code base:

  • Tim Morton (@timothydmorton)
  • Ariane Lancon (@lancon)

Related projects

  • cphot is a spin-off project that provides a C++ version of pyphot

About

suite to deal with passband photometry

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 9