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

gammapy interface: 1D spectral analysis #33

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

HealthyPear
Copy link
Member

@HealthyPear HealthyPear commented Nov 14, 2024

This PR starts to tackle #3 by adding the 1D spectral analysis case (EBL absorption is not yet taken into account, I would leave that for a separate smaller PR).

The interface is activate by adding --use-gammapy flag
to the run subcommand and will produce an estimated SED
based on the input data which can be either:

  • a set or real observations from a DataStore-compatible directory
  • a set of IRFs loaded from a file

Sky models are defined from a models.yml file instead than from the assumed_model section in the global config file (a next PR will unify the two - see #24).

I plan to add also a check fo the IRF pointings with allowed maximum difference with respect to the target source,
in case the provided IRFs are not very suited for that particular observation.

P.S: still in draft because the numbers do not convince me...I also added a get_wstat_table to the interface module with which you should get the equivalent of Li&Ma bin-wise significance from the faked spectrum_dataset_on_off, but the sigma showed on the SED plot correspond to gammapy likeyhood estimation.

@HealthyPear HealthyPear force-pushed the feature-gammapy-1d-spectrum-estimation branch from ad0c372 to 6e61758 Compare December 5, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI enhancement New feature or request gammapy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant