예제 #1
0
파일: irfs.py 프로젝트: NAH8/fermipy
 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
예제 #2
0
    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)
예제 #3
0
    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)
예제 #4
0
파일: irfs.py 프로젝트: jefemagril/fermipy
 def __init__(self, data, hpx):
     HpxMap.__init__(self, data, hpx)
예제 #5
0
파일: irfs.py 프로젝트: mfacorcoran/fermipy
 def __init__(self, data, hpx):
     HpxMap.__init__(self, data, hpx)