ctools  2.0.0
 All Classes Namespaces Files Functions Variables Macros Pages
cscripts.csadd2caldb.csadd2caldb Class Reference
Inheritance diagram for cscripts.csadd2caldb.csadd2caldb:

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
 

Detailed Description

Add IRFs to CALDB

Definition at line 32 of file csadd2caldb.py.

Constructor & Destructor Documentation

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

Definition at line 38 of file csadd2caldb.py.

Member Function Documentation

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

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

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

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

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

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

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