ObservationTableSummary

class gammapy.data.ObservationTableSummary(obs_table, target_pos=None)[source]

Bases: object

Observation table summary.

Class allowing to summarize informations contained in Observation index table (ObservationTable)

Parameters
obs_tableObservationTable

Observation index table

target_posSkyCoord

Target position

Attributes Summary

offset

Observation pointing ot target offset (Angle).

Methods Summary

plot_offset_distribution(self[, ax, bins])

Construct the offset distribution of the observations.

plot_zenith_distribution(self[, ax, bins])

Construct the zenith distribution of the observations.

Attributes Documentation

offset

Observation pointing ot target offset (Angle).

Methods Documentation

plot_offset_distribution(self, ax=None, bins=None)[source]

Construct the offset distribution of the observations.

Parameters
axAxes or None, optional.

The Axes object to be drawn on. If None, uses the current Axes.

binsinteger or array_like, optional

Binning specification, passed to matplotlib.pyplot.hist. By default, 10 bins from 0 deg to max offset + 0.5 deg is used.

Returns
axAxes

Axis

plot_zenith_distribution(self, ax=None, bins=None)[source]

Construct the zenith distribution of the observations.

Parameters
axAxes or None, optional.

The Axes object to be drawn on. If None, uses the current Axes.

binsinteger or array_like, optional

Binning specification, passed to matplotlib.pyplot.hist. By default, 30 bins from 0 deg to max zenith + 5 deg is used.

Returns
axAxes

Axis