def _createTemplate(self): pars = self.pars gtbin = GtApp('gtbin') gtbin.run(algorithm='CMAP', evfile=pars['evfile'], scfile=pars['scfile'], outfile=self.tpl_file, nxpix=pars['nxpix'], nypix=pars['nypix'], binsz=pars['binsz'], coordsys=pars['coordsys'], xref=pars['xref'], yref=pars['yref'], axisrot=0, proj=pars['proj'], chatter=0, clobber='yes')
def _preprocess_gtltcube(self): """Run gtltcube""" from gt_apps import GtApp tool = GtApp('gtltcube') self._set_common_tool_options(tool) tool['evfile'] = 'gtmktime.fits' tool['evtable'] = 'EVENTS' tool['scfile'] = join(DOWNLOAD_DIR, SPACECRAFT) tool['sctable'] = 'SC_DATA' tool['outfile'] = 'gtltcube.fits' tool['dcostheta'] = 0.025 tool['binsz'] = 1 tool['phibins'] = 0 tool['tmin'] = 0 tool['tmax'] = 0 tool['file_version'] = 1 tool['zmax'] = 180 tool.run()