Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 2.72 KB

analysis.md

File metadata and controls

79 lines (52 loc) · 2.72 KB

Analysis

The analysis results from this paper, including the plots, are reproducible.

If you have installed the joint-crab bundle as it is described in the README, you can type in the terminal the following commands to reproduce the analysis and figures. You may choose to perform the whole analysis with a single command or do it in a step-by-step basis.

All steps in a sigle command

$ ./make.py all

List specific tasks or subcommands

$ ./make.py --help
Subcommands
  all              Run all steps.
  clean            Clean out results folder.
  extract-spectra  Extract 1d spectra
  fit-errorbands   Compute flux error bands.
  fit-spectra      Execute spectrum fit.
  fit-systematics  Fit that includes systematics.
  maps             Make and plot sky maps.
  plot-contours    Plot contours.
  plot-counts      Plot counts spectra.
  plot-errorbands  Plot SED error bands.
  plot-seds        Plot SEDs.
  provenance       Write `results/provenance.yaml`.
  summary-data     Write summary for data.
  summary-results  Write summary for results.

Step-by-step

1- Let's clean eventual previous results produced.

$ ./make.py clean

2- We perform the analysis in a procedural way.

$ ./make.py maps
$ ./make.py extract-spectra
$ ./make.py fit-spectra
$ ./make.py fit-systematics
$ ./make.py fit-errorbands

3- Then we gather the results in tables.

$ ./make.py summary-data
$ ./make.py summary-results

4- Finally, let's produce the plots.

$ ./make.py plot-counts

$ ./make.py plot-seds

$ ./make.py plot-errorbands

$ ./make.py plot-contours