Skip to content

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 IevgenVovk requested a review from mstrzys January 9, 2024 12:35
@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

3 participants