SpectrumAnalysisIACT

class gammapy.scripts.SpectrumAnalysisIACT(observations, config)[source]

Bases: object

High-level analysis class to perform a full 1D IACT spectral analysis.

Observation selection must have happened before.

Config options:

Parameters:
observations : Observations

Observations to analyse

config : dict

Config dict

Attributes Summary

spectrum_result FluxPointsDataset

Methods Summary

run(self[, optimize_opts]) Run all steps.
run_extraction(self) Run all steps for the spectrum extraction.
run_fit(self[, optimize_opts]) Run all step for the spectrum fit.
write(self, filename[, mode]) Write to YAML file.

Attributes Documentation

spectrum_result

FluxPointsDataset

Methods Documentation

run(self, optimize_opts=None)[source]

Run all steps.

run_extraction(self)[source]

Run all steps for the spectrum extraction.

run_fit(self, optimize_opts=None)[source]

Run all step for the spectrum fit.

write(self, filename, mode='w')[source]

Write to YAML file.

Parameters:
filename : str

File to write

mode : str

Write mode