Skip to main content

Python code to read in and interpolate tables for absorption of high energy gamma rays with additional helper functions

Project description

Latest Release Build License Issues DOI

Python packages to read in and interpolate tables for the photon density of the Extragalactic Background Light (EBL) and the resulting opacity for high energy gamma rays.

Prerequisites

Python 3.8 or higher and the following packages:

  • numpy >= 1.19

  • scipy >= 1.7

  • astropy >= 4.0

Installation

You can use pip to install the package:

pip install ebltable

Example scripts and notebooks are provided on the github page in the example/ and notebooks/ folder, https://github.com/me-manu/ebltable

Adding a New EBL Model

If you would like to have your EBL model included in ebltable, please open a GitHub issue and include the following information:

  1. State your request — briefly mention that you would like your model added.

  2. Provide a paper reference — include the full citation or a link to the publication describing the EBL model (e.g. arXiv ID or DOI).

  3. Upload the data files — attach two ASCII tables to the issue:

    EBL intensity table

    An n × m matrix of EBL intensities νIν [nW m-2 sr-1] for n redshifts and m wavelengths (in µm). The table must include a column for z = 0. See ebl_saldana21_comoving.txt for a worked example of the expected layout.

    Optical depth table

    An n × m matrix of optical depth values τ for n redshifts and m gamma-ray energies (in TeV or GeV — please specify the unit). See ebl_dominguez11.out for a worked example of the expected layout.

License

ebltable is distributed under the modified BSD License.

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

ebltable-0.6.4.tar.gz (9.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ebltable-0.6.4-py3-none-any.whl (9.4 MB view details)

Uploaded Python 3

File details

Details for the file ebltable-0.6.4.tar.gz.

File metadata

  • Download URL: ebltable-0.6.4.tar.gz
  • Upload date:
  • Size: 9.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ebltable-0.6.4.tar.gz
Algorithm Hash digest
SHA256 59358cd66c92e6adc8b4ef9be068b881b3ff644943d01d7e7a41b2f2e349d7fa
MD5 559a57d18328f74f57588da6d270f704
BLAKE2b-256 b4672859cc4e9e87a4018e5f3ad0de3250f5ba0977bde845feee471a7b632bd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for ebltable-0.6.4.tar.gz:

Publisher: python_publish.yml on me-manu/ebltable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ebltable-0.6.4-py3-none-any.whl.

File metadata

  • Download URL: ebltable-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 9.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ebltable-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b14065a0e95d7f312ec2234cdba080afb950ec39f854d6cac1c76f2162ec004c
MD5 95be0b15754d032f43c88fdffe04672e
BLAKE2b-256 2be86dff3be24319ac14f9319edf2a137c9210ababa1b6567e19707c3278bb2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ebltable-0.6.4-py3-none-any.whl:

Publisher: python_publish.yml on me-manu/ebltable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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