PHACountsSpectrumList¶
-
class
gammapy.spectrum.
PHACountsSpectrumList
[source]¶ Bases:
list
List of
PHACountsSpectrum
objects.All spectra must have the same energy binning. This represent the PHA type II data format. See https://heasarc.gsfc.nasa.gov/docs/heasarc/ofwg/docs/spectra/ogip_92_007/node8.html
Methods Summary
append
($self, object, /)Append object to the end of the list. clear
($self, /)Remove all items from list. copy
($self, /)Return a shallow copy of the list. count
($self, value, /)Return number of occurrences of value. extend
($self, iterable, /)Extend list by appending elements from the iterable. from_hdulist
(hdulist)Create from HDUList
.index
($self, value[, start, stop])Return first index of value. insert
($self, index, object, /)Insert object before index. pop
($self[, index])Remove and return item at index (default last). read
(filename)Read from file. remove
($self, value, /)Remove first occurrence of value. reverse
($self, /)Reverse IN PLACE. sort
($self, /, *[, key, reverse])Stable sort IN PLACE. to_hdulist
()Convert to HDUList
to_table
()Convert to Table
.write
(outdir, **kwargs)Write to file Methods Documentation
-
append
($self, object, /)¶ Append object to the end of the list.
-
clear
($self, /)¶ Remove all items from list.
-
copy
($self, /)¶ Return a shallow copy of the list.
-
count
($self, value, /)¶ Return number of occurrences of value.
-
extend
($self, iterable, /)¶ Extend list by appending elements from the iterable.
-
index
($self, value, start=0, stop=sys.maxsize, /)¶ Return first index of value.
Raises ValueError if the value is not present.
-
insert
($self, index, object, /)¶ Insert object before index.
-
pop
($self, index=-1, /)¶ Remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.
-
remove
($self, value, /)¶ Remove first occurrence of value.
Raises ValueError if the value is not present.
-
reverse
($self, /)¶ Reverse IN PLACE.
-
sort
($self, /, *, key=None, reverse=False)¶ Stable sort IN PLACE.
-