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_table
ObservationTable
Observation index table
- target_pos
SkyCoord
Target position
- obs_table
Attributes Summary
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
Methods Documentation
-
plot_offset_distribution
(self, ax=None, bins=None)[source]¶ Construct the offset distribution of the observations.
- Parameters
- ax
Axes
or None, optional. The
Axes
object to be drawn on. If None, uses the currentAxes
.- 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.
- ax
- Returns
- ax
Axes
Axis
- ax
-
plot_zenith_distribution
(self, ax=None, bins=None)[source]¶ Construct the zenith distribution of the observations.
- Parameters
- ax
Axes
or None, optional. The
Axes
object to be drawn on. If None, uses the currentAxes
.- 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.
- ax
- Returns
- ax
Axes
Axis
- ax