ctools
2.0.0
|
Public Member Functions | |
def | __init__ |
def | process |
Private Member Functions | |
def | _get_parameters |
def | _collect_tarfiles |
def | _extract_irfs |
def | _add_irf_to_cif |
def | _create_cif_table |
def | _add_irfs_to_cif |
def | _add_irfs |
Add IRFs to CALDB
Definition at line 32 of file csadd2caldb.py.
def cscripts.csadd2caldb.csadd2caldb.__init__ | ( | self, | |
argv | |||
) |
Constructor
Definition at line 38 of file csadd2caldb.py.
|
private |
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().
|
private |
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().
|
private |
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().
|
private |
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().
|
private |
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().
|
private |
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().
|
private |
Get parameters from parfile
Definition at line 50 of file csadd2caldb.py.
Referenced by cscripts.csmodelinfo.csmodelinfo.process(), cscripts.csobsinfo.csobsinfo.process(), cscript_base.cscript_base.process(), cscript_like.cscript_like.process(), cscript_obs.cscript_obs.process(), cscripts.csmodelmerge.csmodelmerge.process(), cscripts.csiactdata.csiactdata.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.csresmap.csresmap.process(), cscripts.cscaldb.cscaldb.process(), cscripts.csmodelsois.csmodelsois.process(), cscripts.csobsdef.csobsdef.process(), cscripts.csfindobs.csfindobs.process(), cscripts.csmodelselect.csmodelselect.process(), cscripts.csebins.csebins.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.csobsselect.csobsselect.process(), cscripts.csworkflow.csworkflow.process(), cscripts.csobs2caldb.csobs2caldb.process(), cscripts.cstsdist.cstsdist.process(), cscripts.csadd2caldb.csadd2caldb.process(), cscripts.csiactcopy.csiactcopy.process(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cspull.cspull.process(), cscripts.csbkgmodel.csbkgmodel.process(), cscripts.csphasecrv.csphasecrv.process(), cscripts.csiactobs.csiactobs.process(), cscripts.cslightcrv.cslightcrv.process(), cscripts.csviscube.csviscube.process(), cscripts.csresspec.csresspec.process(), cscripts.csfootprint.csfootprint.process(), cscripts.csscs.csscs.process(), cscripts.csphagen.csphagen.process(), cscripts.cssens.cssens.process(), cscripts.csspec.csspec.process(), and cscripts.csroot2caldb.csroot2caldb.process().
def cscripts.csadd2caldb.csadd2caldb.process | ( | self | ) |
Process the script
Definition at line 379 of file csadd2caldb.py.
References cscripts.csadd2caldb.csadd2caldb._add_irfs(), and cscripts.csadd2caldb.csadd2caldb._get_parameters().