def __init__(self, data, hpx, cth_edges, tstart=None, tstop=None): HpxMap.__init__(self, data, hpx) self._cth_edges = cth_edges self._cth_center = edge_to_center(self._cth_edges) self._cth_width = edge_to_width(self._cth_edges) self._domega = (self._cth_edges[1:] - self._cth_edges[:-1]) * 2 * np.pi self._tstart = tstart self._tstop = tstop
def __init__(self, data, hpx, cth_edges, **kwargs): HpxMap.__init__(self, data, hpx) self._cth_edges = cth_edges self._cth_center = edge_to_center(self._cth_edges) self._cth_width = edge_to_width(self._cth_edges) self._domega = (self._cth_edges[1:] - self._cth_edges[:-1]) * 2 * np.pi self._tstart = kwargs.get('tstart', None) self._tstop = kwargs.get('tstop', None) self._zmin = kwargs.get('zmin', 0.0) self._zmax = kwargs.get('zmax', 180.0) self._tab_gti = kwargs.get('tab_gti', None) self._header = kwargs.get('header', None) self._data_wt = kwargs.get('data_wt', None) if self._data_wt is None: self._data_wt = np.zeros_like(self.data) if self._tab_gti is None: cols = [Column(name='START', dtype='f8', unit='s'), Column(name='STOP', dtype='f8', unit='s')] self._tab_gti = Table(cols)
def __init__(self, data, hpx): HpxMap.__init__(self, data, hpx)