ObservationList¶
-
class
gammapy.data.
ObservationList
(initlist=None)[source]¶ Bases:
collections.UserList
List of
DataStoreObservation
.Could be extended to hold a more generic class of observations.
Methods Summary
append
(item)S.append(value) – append value to the end of the sequence clear
()copy
()count
(value)extend
(other)S.extend(iterable) – extend sequence by appending elements from the iterable index
(value, [start, [stop]])Raises ValueError if the value is not present. insert
(i, item)S.insert(index, value) – insert value before index make_mean_edisp
(position, e_true, e_reco[, …])Compute mean energy dispersion. make_mean_psf
(position[, energy, rad])Compute mean energy-dependent PSF. pop
([index])Raise IndexError if list is empty or index is out of range. remove
(item)S.remove(value) – remove first occurrence of value. reverse
()S.reverse() – reverse IN PLACE sort
(*args, **kwds)Methods Documentation
-
append
(item)¶ S.append(value) – append value to the end of the sequence
-
clear
() → None -- remove all items from S¶
-
copy
()¶
-
count
(value) → integer -- return number of occurrences of value¶
-
extend
(other)¶ S.extend(iterable) – extend sequence by appending elements from the iterable
-
index
(value[, start[, stop]]) → integer -- return first index of value.¶ Raises ValueError if the value is not present.
-
insert
(i, item)¶ S.insert(index, value) – insert value before index
-
make_mean_edisp
(position, e_true, e_reco, low_reco_threshold=<Energy 0.002 TeV>, high_reco_threshold=<Energy 150. TeV>)[source]¶ Compute mean energy dispersion.
Compute the mean edisp of a set of observations j at a given position
The stacking is implemented in
stack_edisp()
Parameters: position :
SkyCoord
Position at which to compute the mean EDISP
e_true :
EnergyBounds
True energy axis
e_reco :
EnergyBounds
Reconstructed energy axis
low_reco_threshold :
Energy
low energy threshold in reco energy, default 0.002 TeV
high_reco_threshold :
Energy
high energy threshold in reco energy , default 150 TeV
Returns: stacked_edisp :
EnergyDispersion
Stacked EDISP for a set of observation
-
make_mean_psf
(position, energy=None, rad=None)[source]¶ Compute mean energy-dependent PSF.
Parameters: position :
SkyCoord
Position at which to compute the PSF
energy :
Quantity
1-dim energy array for the output PSF. If none is given, the energy array of the PSF from the first observation is used.
rad :
Angle
1-dim offset wrt source position array for the output PSF. If none is given, the energy array of the PSF from the first observation is used.
Returns: psf :
EnergyDependentTablePSF
Mean PSF
-
pop
([index]) → item -- remove and return item at index (default last).¶ Raise IndexError if list is empty or index is out of range.
-
remove
(item)¶ S.remove(value) – remove first occurrence of value. Raise ValueError if the value is not present.
-
reverse
()¶ S.reverse() – reverse IN PLACE
-
sort
(*args, **kwds)¶
-