Observation¶
-
class
gammapy.data.
Observation
(obs_id=None, gti=None, pointing=None, aeff=None, edisp=None, psf=None, bkg=None, deadtime_fraction=0.0)[source]¶ Bases:
object
In-memory observation.
- Parameters
- obs_idint
Observation ID as identifier
- pointing
SkyCoord
Pointing position in icrs coordinates
- aeff
EffectiveAreaTable2D
Effective area used for simulating the observation
- edisp
EnergyDispersion2D
Energy dispersion IRF for simulating the observation
- psf
PSF3D
PSF IRF used for simulating the observation
- bkg
Background3D
Background rate model
- gti
GTI
Table with GTI start and stop time
- deadtimefloat, optional
Deadtime fraction, defaults to 0
Attributes Summary
Methods Summary
create
(pointing[, obs_id, livetime, tstart, …])Create an observation.
from_caldb
(pointing[, obs_id, livetime, …])Create an observation using IRFs from a given CTA CALDB.
Attributes Documentation
-
observation_live_time_duration
¶
-
observation_time_duration
¶
-
tstart
¶
-
tstop
¶
Methods Documentation
-
classmethod
create
(pointing, obs_id=None, livetime=None, tstart=None, tstop=None, irfs=None, deadtime_fraction=0.0)[source]¶ Create an observation.
User must either provide the livetime, or the start and stop times.
- Parameters
- pointing
SkyCoord
Pointing position
- obs_idint
Observation ID as identifier
- livetime~astropy.units.Quantity`
Livetime exposure of the simulated observation
- tstart
Quantity
Start time of observation
- tstop
Quantity
Stop time of observation
- irfsdict
IRFs used for simulating the observation:
bkg
,aeff
,psf
,edisp
- deadtime_fractionfloat, optional
Deadtime fraction, defaults to 0
- pointing
- Returns
-
classmethod
from_caldb
(pointing, obs_id=None, livetime=None, tstart=None, tstop=None, caldb='prod2', irf='South0.5hr', deadtime_fraction=0.0)[source]¶ Create an observation using IRFs from a given CTA CALDB.
- Parameters
- pointing
SkyCoord
Pointing position
- obs_idint
Observation ID as identifier
- livetime~astropy.units.Quantity`
Livetime exposure of the simulated observation
- tstart
Quantity
Start time of observation
- tstop
Quantity
Stop time of observation
- caldbstr
Calibration database
- irfstr
Type of Instrumental response function.
- deadtime_fractionfloat, optional
Deadtime fraction, defaults to 0
- pointing
- Returns