Skip to main content

Python code to read in and interpolate tables for absorption of high energy gamma rays

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.


Python 2.7 and newest versions of the following packages: - numpy - scipy - astropy


Download the package, add the path of the repository to your python home variable, e.g. by typing (or including in your .bashrc file): > export PYTHONPATH=”$PYTHONPATH:/path/to/ebltable:/some/other/path:”

To use EBL model files, you have to set the EBL_FILE_PATH environment variable, e.g., by typing > export EBL_FILE_PATH=/path/to/ebltable/ebl_model_files

The EBL model files are included in the ebl path. Check the installation by running > python

The script is heavily commented to explain its use.


eblstud is distributed under the modified BSD License.

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page