Skip to main content

This is a set of tools to compute synthetic photometry in a simple way, ideal to integrate in larger projects.

full documentation at: http://mfouesneau.github.io/docs/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 (link) 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 signitificant amount of common filters.

Each filter is minimally defined by a wavelength and throughput. Many properties such as central of 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.

https://mybinder.org/badge.svg https://img.shields.io/badge/render%20on-nbviewer-orange.svg

What’s new?

  • [November 6, 2019] astropy version available in beta (from pyphot import astropy as pyphot)

  • [April 29, 2019] sandbox contains fully unit aware passbands and lick indices libraries

  • [April 15, 2019] merged UncertainFilter to main, sandbox contains passbands accounting for spectrum units

  • [March 4, 2019] added flux calculations in photon/s/cm2

  • [March 4, 2019] added many properties per filter (lphot, lmin, lmax)

  • [June 12, 2018] adding Sun reference spectra (see :class:Sun)

  • [Apr. 26, 2018] includes Gaia nominal, DR2 and revised DR2 passbands

Installation

Before installation, make sure you have HDF5 version 1.8.4 or above (this is required for pytables, see details at: https://github.com/PyTables/PyTables).

For OSX:

brew install hdf5

For Debian-based distributions:

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

pip install pyphot
  • Manual installation

download the repository and run the setup

python setup.py install

Contributors

Author:

Morgan Fouesneau

Direct contributions to the code base:

  • Tim Morton (@timothydmorton)

  • Ariane Lancon (@lancon)

Metadata

Release files for pyphot 1.1.post20211109

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyphot 1.1.post20211109
File Size Uploaded
pyphot-1.1.post20211109.tar.gz 10.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyphot 1.1.post20211109
File Interpreter ABI Platform
pyphot-1.1.post20211109-py3-none-any.whl Python 3 none any Details

Total release size: 21.5 MB

Release files / pyphot-1.1.post20211109.tar.gz

Download URL pyphot-1.1.post20211109.tar.gz
Size 10.7 MB
Tags Source
SHA-256 checksum
How to use checksums
2aff5b2a1009f7d29eebf539da024b9af369fe4ff8747884fea7ba945a6b07c9
BLAKE2b-256 checksum
How to use checksums
137797347887e97aad54871139d8c8ff6f6df0d7752b4d7e33ef352e74eb2d2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

Release files / pyphot-1.1.post20211109-py3-none-any.whl

Download URL pyphot-1.1.post20211109-py3-none-any.whl
Size 10.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
34e233a1261f5acff8a1a46293a2bb33a5e2516141f4e6b89396483695478fc2
BLAKE2b-256 checksum
How to use checksums
62f360fd54c989af3f341ceef2c149d10e8d4d3d6c6055b48bafff425d769fae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

Release history Release notifications | RSS feed

2.1.1

2 release files

2.1.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.7

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.3

2 release files

1.2

2 release files

This release

1.1.post20211109 This release

2 release files

1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page