Giter VIP home page Giter VIP logo

Comments (2)

cdeil avatar cdeil commented on July 19, 2024

@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". :-)

from gamma-cat.

GernotMaier avatar GernotMaier commented on July 19, 2024

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).

from gamma-cat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.