ctools
2.1.0.dev
|
Public Member Functions | |
def | __init__ |
def | process |
def | save |
Private Member Functions | |
def | _get_parameters |
def | _log_selection |
def | _select_observation |
def | _select_circle |
def | _select_box |
Selects observations from an observation definition XML file
Definition at line 29 of file csobsselect.py.
def cscripts.csobsselect.csobsselect.__init__ | ( | self, | |
argv | |||
) |
Constructor
Definition at line 35 of file csobsselect.py.
|
private |
Get parameters from parfile and setup observations
Definition at line 47 of file csobsselect.py.
References ctobservation.obs(), cscripts.csobsdef.csobsdef.obs(), and cscripts.csiactobs.csiactobs.obs().
Referenced by cscript_base.cscript_base.process(), cscript_like.cscript_like.process(), cscript_obs.cscript_obs.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.csresmap.csresmap.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.csobsselect.csobsselect.process(), cscripts.csworkflow.csworkflow.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 |
Log observation selection Parameters ---------- obs : `~gammalib.GObservation` Observation msg : str Message
Definition at line 91 of file csobsselect.py.
Referenced by cscripts.csobsselect.csobsselect._select_box(), cscripts.csobsselect.csobsselect._select_circle(), and cscripts.csobsselect.csobsselect._select_observation().
|
private |
Select observation in a pointing box Parameters ---------- obs : `~gammalib.GCTAObservation` CTA observation Returns ------- select : bool Observation selection flag
Definition at line 211 of file csobsselect.py.
References cscripts.csobsselect.csobsselect._log_selection().
Referenced by cscripts.csobsselect.csobsselect._select_observation().
|
private |
Select observation in a pointing circle Parameters ---------- obs : `~gammalib.GCTAObservation` CTA observation Returns ------- select : bool Observation selection flag
Definition at line 170 of file csobsselect.py.
References cscripts.csobsselect.csobsselect._log_selection().
Referenced by cscripts.csobsselect.csobsselect._select_observation().
|
private |
Select observation Parameters ---------- obs : `~gammalib.GObservation` Observation Returns ------- select : bool Observation selection flag
Definition at line 118 of file csobsselect.py.
References cscripts.csobsselect.csobsselect._log_selection(), cscripts.csobsselect.csobsselect._select_box(), and cscripts.csobsselect.csobsselect._select_circle().
Referenced by cscripts.csobsselect.csobsselect.process().
def cscripts.csobsselect.csobsselect.process | ( | self | ) |
Process the script
Definition at line 293 of file csobsselect.py.
References cscripts.csobsselect.csobsselect._get_parameters(), 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.csobsinfo.csobsinfo._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.csobsdef.csobsdef._get_parameters(), cscripts.cslightcrv.cslightcrv._get_parameters(), cscripts.csobsselect.csobsselect._select_observation(), ctobservation.obs(), cscripts.csobsdef.csobsdef.obs(), and cscripts.csiactobs.csiactobs.obs().
def cscripts.csobsselect.csobsselect.save | ( | self | ) |
Save observation definition XML file
Definition at line 328 of file csobsselect.py.
References cscripts.csmodelmerge.csmodelmerge._clobber, ctobservation.obs(), cscripts.csobsdef.csobsdef.obs(), and cscripts.csiactobs.csiactobs.obs().