me-manu / ebltable

Python package to read in tabulated photon densities and gamma-ray opacities
BSD 3-Clause "New" or "Revised" License
12 stars 12 forks source link

Fix interpolation at low redshift values for optical depth tables #3

Closed me-manu closed 2 years ago

me-manu commented 2 years ago

Many optical depth tables do not include an entry at z=0 (they should be zero there) which can lead to problems as reported, e.g., here: https://github.com/me-manu/gammaALPs/issues/1

An easy fix would be to include a row (if missing) in the interpolation tables forcing tau=0 for all energies if z=0.

me-manu commented 2 years ago

PR #4 takes care of that by adding tau = 0 for z=0 for the interpolation.