fermi-lat / Fermitools-conda

Conda recipe files for the Fermi Sciencetools software analysis package: Fermitools
https://fermi.gsfc.nasa.gov/ssc/data/analysis/
BSD 3-Clause "New" or "Revised" License
34 stars 17 forks source link

Query on using EBL model for EBL correction #155

Closed sushmitaagarwal closed 11 months ago

sushmitaagarwal commented 1 year ago

I want to evaluate the level of EBL absorption in a LAT spectrum. I came across this girhub repository which provided a hint that some package is available for using different model (e.g. Franceschini 2008, Stecker et al 2006) for EBL correction. I cannot figure out a way to use these models in the ExpCutoff fitting. I also came across issue number #57 which hinted at a possible way to measure the level of absorption for different models. How can I include different EBL models for cutoff correction? Please suggest

nmirabal commented 11 months ago

The XML format for including the EBL in the ExpCutoff fitting is as follows. You can see the differences in the "spectrum type" line and the EBL lines that follow the ExpCutoff definition. There you have to adjust redshift, tau_norm to your source and value in ebl_model refers to the models described in https://github.com/fermi-lat/celestialSources/blob/master/eblAtten/data/README_EBLmodels.txt

Finally, make sure that RA and Dec in skydirfunction are correct for your source position

nmirabal commented 11 months ago

Right click to download XML file https://fermi.gsfc.nasa.gov/ssc/data/analysis/scitools/expebl.xml

sushmitaagarwal commented 11 months ago

Can you also specify what is tau_norm parameter for a source?

nmirabal commented 11 months ago

That's the optical depth for the EBL model. You can read more about that in the following link for instance https://arxiv.org/pdf/1705.10256v1.pdf