Skip to main content

Simple photon count utility for astronomical fluxes

Project description

How Many Bloody Photons

Tiny repo to calculate astronomical photon counts for various instruments

Install

pip install git+https://github.com/AstarVienna/HowManyBloodyPhotons.git 

Basic usage

>>> from astropy import units as u
>>> import hmbp

Find the number of photons emitted by Vega in V band [ph s-1 m-2]::

>> > hmbp.in_zero_vega_mags("V")

Find the number of photons emitted by a Ks=20 [ABmag] point source through the HAWKI Ks filter::

>> > hmbp.for_flux_in_filter("Ks", 20 * u.ABmag,
                             observatory="Paranal",
                             instrument="HAWKI")

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

HowManyPhotons-0.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

HowManyPhotons-0.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page