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.5 or higher and the following packages:
  • numpy

  • scipy

  • astropy

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.dev3.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.dev3-py3-none-any.whl (9.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ebltable-0.6.4.dev3.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.dev3.tar.gz
Algorithm Hash digest
SHA256 4ec6898e988e9d0b308e475ebcc9f4628010370efba6614899aa05fc4b69a5df
MD5 4c6ab76564625a7eaba2a00ee456c04b
BLAKE2b-256 12b67c0a66cf01919ca51f17ca736b3fc904deb424a4c7ba3aa0773e4b24f9b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ebltable-0.6.4.dev3.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.dev3-py3-none-any.whl.

File metadata

  • Download URL: ebltable-0.6.4.dev3-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.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 f575d92babeee86114d0e57ebdc25401bfe03eb18370bcca9e76a0538d760c37
MD5 964aa09b4e2fcf3d5efb623810bc74a5
BLAKE2b-256 ddc495ccf055f13bdb4edc36dbcc3ca08118cb6ae60cff405df6df3e4f98eb69

See more details on using hashes here.

Provenance

The following attestation bundles were made for ebltable-0.6.4.dev3-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