ctools 2.1.0.dev
|
Public Member Functions | |
__init__ (self, *argv) | |
process (self) | |
Protected Member Functions | |
_get_parameters (self) | |
_collect_tarfiles (self, indir) | |
_extract_irfs (self, file, outdir) | |
_add_irf_to_cif (self, prod, hdu, irf) | |
_create_cif_table (self) | |
_add_irfs_to_cif (self, prod, irfs) | |
_add_irfs (self) | |
Add IRFs to CALDB
Definition at line 32 of file csadd2caldb.py.
cscripts.csadd2caldb.csadd2caldb.__init__ | ( | self, | |
* | argv ) |
Constructor
Definition at line 38 of file csadd2caldb.py.
|
protected |
Add IRF to calibration index file HDU Parameters ---------- prod : str Production hdu : ~gammalib.GFitsBinTable CIF HDU table irf : dict IRF dictionary
Definition at line 191 of file csadd2caldb.py.
Referenced by cscripts.csadd2caldb.csadd2caldb._add_irfs_to_cif().
|
protected |
Add IRFs to calibration database
Definition at line 336 of file csadd2caldb.py.
References cscripts.csadd2caldb.csadd2caldb._add_irfs_to_cif(), cscripts.csadd2caldb.csadd2caldb._collect_tarfiles(), and cscripts.csadd2caldb.csadd2caldb._extract_irfs().
Referenced by cscripts.csadd2caldb.csadd2caldb.process().
|
protected |
Add IRFs to calibration index file Parameters ---------- prod : str Production irfs : list List of IRFs
Definition at line 301 of file csadd2caldb.py.
References cscripts.csadd2caldb.csadd2caldb._add_irf_to_cif(), and cscripts.csadd2caldb.csadd2caldb._create_cif_table().
Referenced by cscripts.csadd2caldb.csadd2caldb._add_irfs().
|
protected |
Collect tarfiles Parameters ---------- indir : string Input directory Returns ------- tarfiles : list of str List of tarfiles
Definition at line 64 of file csadd2caldb.py.
Referenced by cscripts.csadd2caldb.csadd2caldb._add_irfs().
|
protected |
Create Calibration Database Index File binary table Returns ------- table : ~gammalib.GFitsBinTable Calibration Database Index File binary table
Definition at line 262 of file csadd2caldb.py.
Referenced by cscripts.csadd2caldb.csadd2caldb._add_irfs_to_cif().
|
protected |
Collect IRFs from tarfile Parameters ---------- file : str Tarfile with IRFs outdir : str Output directory Returns ------- irfs : list List of IRF dictionaries
Definition at line 92 of file csadd2caldb.py.
Referenced by cscripts.csadd2caldb.csadd2caldb._add_irfs().
|
protected |
Get parameters from parfile
Definition at line 50 of file csadd2caldb.py.
Referenced by cscripts.csadd2caldb.csadd2caldb.process(), cscripts.csbkgmodel.csbkgmodel.process(), cscripts.cscaldb.cscaldb.process(), cscripts.csebins.csebins.process(), cscripts.csfindobs.csfindobs.process(), cscripts.csfootprint.csfootprint.process(), cscripts.csiactcopy.csiactcopy.process(), cscripts.csiactdata.csiactdata.process(), cscripts.csiactobs.csiactobs.process(), cscripts.cslightcrv.cslightcrv.process(), cscripts.csmodelinfo.csmodelinfo.process(), cscripts.csmodelmerge.csmodelmerge.process(), cscripts.csmodelselect.csmodelselect.process(), cscripts.csmodelsois.csmodelsois.process(), cscripts.csobs2caldb.csobs2caldb.process(), cscripts.csobsdef.csobsdef.process(), cscripts.csobsinfo.csobsinfo.process(), cscripts.csobsselect.csobsselect.process(), cscripts.csphagen.csphagen.process(), cscripts.csphasecrv.csphasecrv.process(), cscripts.cspull.cspull.process(), cscripts.csresmap.csresmap.process(), cscripts.csresspec.csresspec.process(), cscripts.csroot2caldb.csroot2caldb.process(), cscripts.csscs.csscs.process(), cscripts.cssens.cssens.process(), cscripts.csspec.csspec.process(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cstsdist.cstsdist.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.csviscube.csviscube.process(), and cscripts.csworkflow.csworkflow.process().
cscripts.csadd2caldb.csadd2caldb.process | ( | self | ) |
Process the script
Definition at line 379 of file csadd2caldb.py.
References cscripts.csadd2caldb.csadd2caldb._add_irfs(), cscripts.csadd2caldb.csadd2caldb._get_parameters(), cscripts.csbkgmodel.csbkgmodel._get_parameters(), cscripts.cscaldb.cscaldb._get_parameters(), cscripts.csebins.csebins._get_parameters(), cscripts.csfindobs.csfindobs._get_parameters(), cscripts.csfootprint.csfootprint._get_parameters(), cscripts.csiactcopy.csiactcopy._get_parameters(), cscripts.csiactdata.csiactdata._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), cscripts.cslightcrv.cslightcrv._get_parameters(), cscripts.csmodelinfo.csmodelinfo._get_parameters(), cscripts.csmodelmerge.csmodelmerge._get_parameters(), cscripts.csmodelselect.csmodelselect._get_parameters(), cscripts.csmodelsois.csmodelsois._get_parameters(), cscripts.csobs2caldb.csobs2caldb._get_parameters(), cscripts.csobsdef.csobsdef._get_parameters(), cscripts.csobsinfo.csobsinfo._get_parameters(), cscripts.csobsselect.csobsselect._get_parameters(), cscripts.csphagen.csphagen._get_parameters(), cscripts.csphasecrv.csphasecrv._get_parameters(), cscripts.cspull.cspull._get_parameters(), cscripts.csresmap.csresmap._get_parameters(), cscripts.csresspec.csresspec._get_parameters(), cscripts.csroot2caldb.csroot2caldb._get_parameters(), cscripts.csscs.csscs._get_parameters(), cscripts.cssens.cssens._get_parameters(), cscripts.csspec.csspec._get_parameters(), cscripts.cssrcdetect.cssrcdetect._get_parameters(), cscripts.cstsdist.cstsdist._get_parameters(), cscripts.cstsmapmerge.cstsmapmerge._get_parameters(), cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), cscripts.csviscube.csviscube._get_parameters(), and cscripts.csworkflow.csworkflow._get_parameters().