ObservationTableSummary¶
-
class
gammapy.data.ObservationTableSummary(obs_table, target_pos=None)[source]¶ Bases:
objectObservation 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
Attributes Summary
offsetObservation 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 :
Axesor None, optional. The
Axesobject to be drawn on. If None, uses the currentAxes.- bins : integer 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: - ax :
Axes Axis
- ax :
-
plot_zenith_distribution(self, ax=None, bins=None)[source]¶ Construct the zenith distribution of the observations.
Parameters: - ax :
Axesor None, optional. The
Axesobject to be drawn on. If None, uses the currentAxes.- bins : integer 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: - ax :
Axes Axis
- ax :
- obs_table :