Support for analytical spectrum with 2D spatial model #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: