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

Support for analytical spectrum with 2D spatial model #11

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

IevgenVovk
Copy link
Collaborator

Closes #9

Adds new FitsMapSource source class that joins the analytical spectral model with the 2D FITS map of the surface brightness. The class may be set for a given source indicating the "fitsmap" spatial model type.

FitsMapSource assumes the sky map FITS defines the flux unit in the "BUNIT" keyword of the primary extension; if the keyword is missing it will deduce it assuming a unitary total flux from the total sky area covered by world coordinate system, defined in the header.

Usage example in the config file:

sources:
    - name: "diffuse_source"
      emission_type: "gamma"
      spatial:
          type: 'fitsmap'
          file_name: 'sky_map.fits'
      spectral:
          type: 'pwlec'
          norm: '1.0e-25 1/(cm2 s eV)'
          e0: '1 TeV'
          index: -2
          ecut: '10 TeV'

@IevgenVovk IevgenVovk linked an issue Jan 9, 2024 that may be closed by this pull request
@IevgenVovk
Copy link
Collaborator Author

@mstrzys , any comments on this MR?

@mstrzys
Copy link
Collaborator

mstrzys commented Aug 5, 2024

I cannot recall whether you replied via a different channel, but I cannot see any replies to my comments here.

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

Successfully merging this pull request may close these issues.

Support for analytical spectrum + 2D spatial model
2 participants