Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition of power law with exponential cut off #220

Closed
GernotMaier opened this issue Feb 17, 2018 · 2 comments
Closed

Definition of power law with exponential cut off #220

GernotMaier opened this issue Feb 17, 2018 · 2 comments

Comments

@GernotMaier
Copy link
Collaborator

Noticed right that the definition of the power law with exponential cut off is different than expected. Can you please confirm?

I've expected: dN/dE = I0 · (E/E_ref)−Γ · exp(−E/Ecut)

Looks like the implementation is dN/dE = I0 · (E/E_ref)−Γ · exp(−E*lambda)

If this is true, all ecpl in the VERITAS files need to be adjusted. I will do this, but please confirm that the second implementation is the one used.

@cdeil
Copy link
Contributor

cdeil commented Feb 18, 2018

@GernotMaier - The difference in the equations you give is just whether they contain e_cut or lambda=1/e_cut, right?

In gamma-cat we currently use e_cut.

You can see this in the schema:


and how the catalog is filled:
data['spec_ecpl_e_cut'] = spec_pars['e_cut'].get_or_default('val').to('TeV')


Indeed when we map to a spectral model in Gammapy
https://github.com/gammapy/gammapy/blob/f48b22d7f7ab9430bb2ab78521736a6e381b5318/gammapy/catalog/gammacat.py#L271
we use
http://docs.gammapy.org/dev/api/gammapy.spectrum.models.ExponentialCutoffPowerLaw.html which has lambda, but that is filled as lambda=1/e_cut.


Note that if needed, we can add more spectral models to gamma-cat and Gammapy.
E.g. in Gammapy we already have this second ECPL parametrisation because it was used in the Fermi-LAT 3FGL catalog: http://docs.gammapy.org/dev/api/gammapy.spectrum.models.ExponentialCutoffPowerLaw3FGL.html


@GernotMaier - So is there an issue with the data entry for VERITAS?

The HESS catalog will come out soon and I want to add the data to gamma-cat. There we use lambda and lambda_err. So I guess we should add an ECPL variant to gamma-cat that supports direct data entry of lambda and lambda_err, no? Any suggestion for what to call it? I think in HESS this is "ecpl3". :-)

@GernotMaier
Copy link
Collaborator Author

OK - everything clear. I missed the 1/E_cut and was simply confused - so nothing additional is needed and there is no issue with this.

(good to be closed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants