Python code to read in and interpolate tables for absorption of high energy gamma rays with additional helper functions
Project description
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:
State your request — briefly mention that you would like your model added.
Provide a paper reference — include the full citation or a link to the publication describing the EBL model (e.g. arXiv ID or DOI).
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ec6898e988e9d0b308e475ebcc9f4628010370efba6614899aa05fc4b69a5df
|
|
| MD5 |
4c6ab76564625a7eaba2a00ee456c04b
|
|
| BLAKE2b-256 |
12b67c0a66cf01919ca51f17ca736b3fc904deb424a4c7ba3aa0773e4b24f9b0
|
Provenance
The following attestation bundles were made for ebltable-0.6.4.dev3.tar.gz:
Publisher:
python_publish.yml on me-manu/ebltable
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ebltable-0.6.4.dev3.tar.gz -
Subject digest:
4ec6898e988e9d0b308e475ebcc9f4628010370efba6614899aa05fc4b69a5df - Sigstore transparency entry: 1722231548
- Sigstore integration time:
-
Permalink:
me-manu/ebltable@e6a5aa7f15b17eb01ca8c03933e2d042d8a9b985 -
Branch / Tag:
refs/tags/v0.6.4.dev3 - Owner: https://github.com/me-manu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python_publish.yml@e6a5aa7f15b17eb01ca8c03933e2d042d8a9b985 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f575d92babeee86114d0e57ebdc25401bfe03eb18370bcca9e76a0538d760c37
|
|
| MD5 |
964aa09b4e2fcf3d5efb623810bc74a5
|
|
| BLAKE2b-256 |
ddc495ccf055f13bdb4edc36dbcc3ca08118cb6ae60cff405df6df3e4f98eb69
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ebltable-0.6.4.dev3-py3-none-any.whl -
Subject digest:
f575d92babeee86114d0e57ebdc25401bfe03eb18370bcca9e76a0538d760c37 - Sigstore transparency entry: 1722231648
- Sigstore integration time:
-
Permalink:
me-manu/ebltable@e6a5aa7f15b17eb01ca8c03933e2d042d8a9b985 -
Branch / Tag:
refs/tags/v0.6.4.dev3 - Owner: https://github.com/me-manu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python_publish.yml@e6a5aa7f15b17eb01ca8c03933e2d042d8a9b985 -
Trigger Event:
push
-
Statement type: