ctools
2.0.0
|
Public Member Functions | |
def | __init__ |
def | process |
def | save |
Private Member Functions | |
def | _get_parameters |
def | _make_irf_file |
def | _make_caldb_index |
def | _make_dirs |
Private Attributes | |
_observation | |
_mission | |
_caldb | |
_outfile | |
_base_dir | |
_cal_dir | |
_rsp_dir | |
_caldb_inx | |
_irf_fits | |
Creates a calibration database entry for an IACT observation. The creation of a calibration database entry is useful for performing simulations for current Imaging Air Cherenkov Telescopes (IACTs). The class takes an observation definition XML file as input and uses one observation to create a calibration database entry. By default the first observation will be used, but the user can specify the index of any observation using the hidden "index" parameter.
Definition at line 32 of file csobs2caldb.py.
def cscripts.csobs2caldb.csobs2caldb.__init__ | ( | self, | |
argv | |||
) |
Constructor
Definition at line 45 of file csobs2caldb.py.
|
private |
Get parameters from parfile Raises: ValueError, IndexError, & RuntimeError.
Definition at line 68 of file csobs2caldb.py.
References cscripts.csobs2caldb.csobs2caldb._caldb, cscripts.csobs2caldb.csobs2caldb._observation, cscripts.csobs2caldb.csobs2caldb._outfile, ctobservation.obs(), cscripts.csobsdef.csobsdef.obs(), and cscripts.csiactobs.csiactobs.obs().
Referenced by cscripts.csobsinfo.csobsinfo.process(), cscript_base.cscript_base.process(), cscript_like.cscript_like.process(), cscript_obs.cscript_obs.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.csresmap.csresmap.process(), cscripts.csobsdef.csobsdef.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.csobsselect.csobsselect.process(), cscripts.csworkflow.csworkflow.process(), cscripts.csobs2caldb.csobs2caldb.process(), cscripts.cstsdist.cstsdist.process(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cspull.cspull.process(), cscripts.csphasecrv.csphasecrv.process(), cscripts.csviscube.csviscube.process(), cscripts.csresspec.csresspec.process(), cscripts.csscs.csscs.process(), cscripts.csphagen.csphagen.process(), cscripts.cssens.cssens.process(), cscripts.csspec.csspec.process(), and cscripts.csroot2caldb.csroot2caldb.process().
|
private |
Creates an IRF index FITS file
Definition at line 191 of file csobs2caldb.py.
References cscripts.csobs2caldb.csobs2caldb._base_dir, cscripts.csobs2caldb.csobs2caldb._cal_dir, cscripts.csobs2caldb.csobs2caldb._caldb, cscripts.csobs2caldb.csobs2caldb._mission, and cscripts.csobs2caldb.csobs2caldb._outfile.
Referenced by cscripts.csobs2caldb.csobs2caldb.process().
|
private |
Make CALDB directories
Definition at line 289 of file csobs2caldb.py.
References cscripts.csobs2caldb.csobs2caldb._base_dir, cscripts.csobs2caldb.csobs2caldb._cal_dir, and cscripts.csobs2caldb.csobs2caldb._rsp_dir.
Referenced by cscripts.csobs2caldb.csobs2caldb.process(), and cscripts.csroot2caldb.csroot2caldb.process().
|
private |
Creates an IRF FITS file
Definition at line 130 of file csobs2caldb.py.
Referenced by cscripts.csobs2caldb.csobs2caldb.process().
def cscripts.csobs2caldb.csobs2caldb.process | ( | self | ) |
Process the script
Definition at line 331 of file csobs2caldb.py.
References cscripts.csobs2caldb.csobs2caldb._caldb_inx, cscripts.csadd2caldb.csadd2caldb._get_parameters(), cscripts.csebins.csebins._get_parameters(), cscripts.csmodelselect.csmodelselect._get_parameters(), cscripts.csmodelinfo.csmodelinfo._get_parameters(), cscripts.csmodelmerge.csmodelmerge._get_parameters(), cscripts.csfindobs.csfindobs._get_parameters(), cscripts.csiactdata.csiactdata._get_parameters(), cscripts.csiactcopy.csiactcopy._get_parameters(), cscripts.csmodelsois.csmodelsois._get_parameters(), cscripts.cscaldb.cscaldb._get_parameters(), cscripts.csobs2caldb.csobs2caldb._get_parameters(), cscripts.csbkgmodel.csbkgmodel._get_parameters(), cscripts.csfootprint.csfootprint._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), cscripts.cslightcrv.cslightcrv._get_parameters(), cscripts.csobs2caldb.csobs2caldb._irf_fits, cscripts.csobs2caldb.csobs2caldb._make_caldb_index(), cscripts.csobs2caldb.csobs2caldb._make_dirs(), and cscripts.csobs2caldb.csobs2caldb._make_irf_file().
def cscripts.csobs2caldb.csobs2caldb.save | ( | self | ) |
Save calibration database FITS file
Definition at line 353 of file csobs2caldb.py.
References cscripts.csmodelmerge.csmodelmerge._clobber, cscripts.csobs2caldb.csobs2caldb._outfile, and cscripts.csobs2caldb.csobs2caldb._rsp_dir.
|
private |
Definition at line 57 of file csobs2caldb.py.
Referenced by cscripts.csobs2caldb.csobs2caldb._make_caldb_index(), and cscripts.csobs2caldb.csobs2caldb._make_dirs().
|
private |
Definition at line 58 of file csobs2caldb.py.
Referenced by cscripts.csobs2caldb.csobs2caldb._make_caldb_index(), and cscripts.csobs2caldb.csobs2caldb._make_dirs().
|
private |
Definition at line 55 of file csobs2caldb.py.
Referenced by cscripts.csobs2caldb.csobs2caldb._get_parameters(), and cscripts.csobs2caldb.csobs2caldb._make_caldb_index().
|
private |
Definition at line 60 of file csobs2caldb.py.
Referenced by cscripts.csobs2caldb.csobs2caldb.process().
|
private |
Definition at line 61 of file csobs2caldb.py.
Referenced by cscripts.csobs2caldb.csobs2caldb.process().
|
private |
Definition at line 54 of file csobs2caldb.py.
Referenced by cscripts.csobs2caldb.csobs2caldb._make_caldb_index().
|
private |
Definition at line 53 of file csobs2caldb.py.
Referenced by cscripts.csobs2caldb.csobs2caldb._get_parameters().
|
private |
Definition at line 56 of file csobs2caldb.py.
Referenced by cscripts.cstsmapsplit.cstsmapsplit._get_parameters(), cscripts.csobs2caldb.csobs2caldb._get_parameters(), cscripts.csobs2caldb.csobs2caldb._make_caldb_index(), and cscripts.csobs2caldb.csobs2caldb.save().
|
private |
Definition at line 59 of file csobs2caldb.py.
Referenced by cscripts.csobs2caldb.csobs2caldb._make_dirs(), and cscripts.csobs2caldb.csobs2caldb.save().