ctools 2.1.0.dev
Loading...
Searching...
No Matches
cscripts.csadd2caldb.csadd2caldb Class Reference
Inheritance diagram for cscripts.csadd2caldb.csadd2caldb:

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)
 

Detailed Description

Add IRFs to CALDB

Definition at line 32 of file csadd2caldb.py.

Constructor & Destructor Documentation

◆ __init__()

cscripts.csadd2caldb.csadd2caldb.__init__ ( self,
* argv )
Constructor

Definition at line 38 of file csadd2caldb.py.

Member Function Documentation

◆ _add_irf_to_cif()

cscripts.csadd2caldb.csadd2caldb._add_irf_to_cif ( self,
prod,
hdu,
irf )
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().

◆ _add_irfs()

cscripts.csadd2caldb.csadd2caldb._add_irfs ( self)
protected

◆ _add_irfs_to_cif()

cscripts.csadd2caldb.csadd2caldb._add_irfs_to_cif ( self,
prod,
irfs )
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().

◆ _collect_tarfiles()

cscripts.csadd2caldb.csadd2caldb._collect_tarfiles ( self,
indir )
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().

◆ _create_cif_table()

cscripts.csadd2caldb.csadd2caldb._create_cif_table ( self)
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().

◆ _extract_irfs()

cscripts.csadd2caldb.csadd2caldb._extract_irfs ( self,
file,
outdir )
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().

◆ _get_parameters()

cscripts.csadd2caldb.csadd2caldb._get_parameters ( self)
protected

◆ 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().


The documentation for this class was generated from the following file: