Skip to main content
======================================================================
pyExtinction's documentation
======================================================================

:Authors: Clément Buton, Yannick Copin
:Contact: :email:`Yannick Copin <y.copin@ip2i.in2p3.fr>`
:Copyright: 2012-present, Clément Buton, Yannick Copin

.. only:: html

.. image:: https://img.shields.io/badge/ascl-1403.002-blue.svg?colorB=262255
:target: http://ascl.net/1403.002
:alt: ascl:1403.002

.. image:: https://img.shields.io/pypi/v/pyextinction
:target: https://pypi.org/project/pyextinction
:alt: pypi version

.. image:: https://img.shields.io/pypi/pyversions/pyextinction
:target: https://pypi.org/project/pyextinction
:alt: Supported Python Versions

.. figure:: https://readthedocs.org/projects/pyextinction/badge/?version=latest
:target: http://pyextinction.readthedocs.org/en/latest/?badge=latest
:alt: pyExtinction Documentation Status

Introduction
============

This Python :ref:`script <script>` / :ref:`package <module>` computes total
atmospheric extinction from decomposition into physical components (Rayleigh
attenuation, ozone absorption, aerosol extinction), as described in `Buton et
al. (2013) <http://adsabs.harvard.edu/abs/2013A%26A...549A...8B>`_,
*Atmospheric extinction properties above Mauna Kea from the Nearby Supernova
Factory spectro-photometric data set*.

Installation
------------

The module is installable from `pypi <https://pypi.org/project/pyextinction/>`_
(traditional dependencies: numpy_, scipy_, matplotlib_, astropy_)::

pip install pyextinction

Extinction parameters
---------------------

:ref:`atmosphericExtinction.py <script>` default extinction parameters are
adapted to mean `Mauna-Kea summit <http://www.ifa.hawaii.edu/mko/>`_
conditions:

.. table:: Atmospheric extinction parameters.

================================= =================
Parameter Value ± Error
================================= =================
*Mauna Kea*
----------------------------------------------------
Pressure 616 ± 2 mbar
Ozone column 257 ± 23 DU
Aerosols optical depth @ 1 µm 0.0076 ± 0.0014
Aerosols angstrom exponent 1.26 ± 1.33
================================= =================

.. figure:: atmosphericExtinction.*
:width: 80%

Please :email:`contact us <y.copin@ip2i.in2p3.fr>` if you have derived mean
extinction parameters for other locations.

Citations
---------

If you have found this extinction curve model useful for your research, we
would appreciate a reference to `Buton et al. (2013)
<http://adsabs.harvard.edu/abs/2013A%26A...549A...8B>`_. The software itself
can be cited with `Buton & Copin (2014)
<http://adsabs.harvard.edu/abs/2014ascl.soft03002B>`_.

Downloads
---------

* Mauna-Kea mean atmospheric extinction:
:download:`txt <atmosphericExtinction.txt>`,
:download:`fits <atmosphericExtinction.fits>`
* Latest version of the software is available from `gitlab repository
<https://gitlab.in2p3.fr/ycopin/pyExtinction>`_
* On-line documentation can be found on `gitlab pages
<https://ycopin.pages.in2p3.fr/pyExtinction>`_ (latest) and `rtfd
<http://pyextinction.readthedocs.org/en/latest/>`_ (legacy)

Licence
-------

This code is placed under the `CeCILL-C free software license agreement
<http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html>`_.

Some external links cited in the paper (potentially deprecated)
===============================================================

* SkyProbe_
* `Mauna Loa Observatory`_
* `Total Ozone measurements`_

.. _numpy: https://numpy.org/
.. _scipy: https://www.scipy.org/
.. _matplotlib: https://matplotlib.org/
.. _astropy: https://www.astropy.org/
.. _SkyProbe: http://www.cfht.hawaii.edu/Instruments/Elixir/skyprobe/home.html
.. _Mauna Loa Observatory: http://www.esrl.noaa.gov/gmd/obop/mlo/
.. _Total Ozone measurements: http://www.esrl.noaa.gov/gmd/ozwv/dobson/

Metadata

Release files for pyExtinction 2.0

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

Source distribution (sdist)

Source distribution for pyExtinction 2.0
File Size Uploaded
pyextinction-2.0.tar.gz 118.5 kB Details

Built distribution (wheel)

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

Total release size: 142.5 kB

Release files / pyextinction-2.0.tar.gz

Download URL pyextinction-2.0.tar.gz
Size 118.5 kB
Tags Source
SHA-256 checksum
How to use checksums
31dede7624e799459736fee28f465b466f0d87ec1510c1b7a555463584452ad3
BLAKE2b-256 checksum
How to use checksums
12a76da9b9b3b445ca70f34b7df054d2113f86c52b895c5502d685726800192d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.0 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.18.0"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"7.0.0-30-generic"}} HTTPX2/2.12.0

Release files / pyextinction-2.0-py3-none-any.whl

Download URL pyextinction-2.0-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
987bc1d70823024a9e107cf0f78092bb33da7c3e06939df2ce23ebc74663970b
BLAKE2b-256 checksum
How to use checksums
fd02081e5087b717ae37e2988d86c93005c97771c9205b1651ca0e4f6522133c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.0 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.18.0"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"7.0.0-30-generic"}} HTTPX2/2.12.0

Release history Release notifications | RSS feed

2.1

2 release files

This release

2.0 This release

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