Skip to main content
https://img.shields.io/pypi/v/pyphot.svg https://zenodo.org/badge/70060728.svg https://static.pepy.tech/badge/pyphot https://static.pepy.tech/badge/pyphot/month https://img.shields.io/badge/python-3.9,_3.10,_3.11,_3.12,_3.13,_3.14-blue.svg

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.

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

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)

Metadata

Release files for pyphot 2.1.1

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 2.1.1
File Size Uploaded
pyphot-2.1.1.tar.gz 16.1 MB Details

Built distribution (wheel)

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

Total release size: 31.9 MB

Release files / pyphot-2.1.1.tar.gz

Download URL pyphot-2.1.1.tar.gz
Size 16.1 MB
Tags Source
SHA-256 checksum
How to use checksums
3b384662757b3559008af6fa82ad557608988fabb14a24663cd769f69a7cf392
BLAKE2b-256 checksum
How to use checksums
b638f860ff1180fbe2206bb6f965ace07eb64785e58f9db6a2dcabdaafe5185f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pyphot-2.1.1-py3-none-any.whl

Download URL pyphot-2.1.1-py3-none-any.whl
Size 15.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
98937d2ee371a7fd490ce1528474fd3a8da0a033da9e9b236a5a4a93d52a3456
BLAKE2b-256 checksum
How to use checksums
0313eacf01f3d0e82d68701bed63b9a74fecc2747e32d9f414e3daca365cace4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

2.1.1 This release

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

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