EBL Models

The EBL module come from the ebltable git repository (see https://github.com/me-manu/ebltable)

Supported Models

Currently there is 5 models supported :

Each model is read using

from ebltable.tau_from_model import OptDepth as OD
tau = OD(model = 'inoue')
# Source redshift
z   = 0.2
# array with energies in TeV
ETeV = np.logspace(-1,1,50)

# calculating the optical depth for a redshift z and TeV energies
# this returns a two dimensional array with dimensions
# of the redshift array times dimensions of the energy array.
# Since z is a scalar here, it will return a 1 x 50 dim array.
t = tau.opt_depth_array(z,ETeV)

Flux correction

For correction of the flux, you can then compute

import numpy
correction = numpy.exp(-1. * t[0])

Example

The example script can help to understand and will produce this plot

_images/EBL_correction_Ex.png

Exemple of flux in A.U. corrected with the supported models. This plot has been generated by the script ExempleEBL.py