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

Public Member Functions

 __init__ (self, *argv)
 
 process (self)
 
 save (self)
 

Protected Member Functions

 _get_parameters (self)
 
 _log_selection (self, obs, msg)
 
 _select_observation (self, obs)
 
 _select_circle (self, obs)
 
 _select_box (self, obs)
 

Protected Attributes

 _clobber
 

Detailed Description

Selects observations from an observation definition XML file

Definition at line 29 of file csobsselect.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 35 of file csobsselect.py.

Member Function Documentation

◆ _get_parameters()

cscripts.csobsselect.csobsselect._get_parameters ( self)
protected
Get parameters from parfile and setup observations

Definition at line 47 of file csobsselect.py.

References cscripts.csiactobs.csiactobs.obs(), cscripts.csobsdef.csobsdef.obs(), ctobservation.obs(), and ctobservation.obs().

Referenced by cscripts.csadd2caldb.csadd2caldb.process(), cscripts.csbkgmodel.csbkgmodel.process(), cscripts.cscaldb.cscaldb.process(), cscripts.csebins.csebins.process(), cscripts.csfindobs.csfindobs.process(), cscripts.csfootprint.csfootprint.process(), cscripts.csiactcopy.csiactcopy.process(), cscripts.csiactdata.csiactdata.process(), cscripts.csiactobs.csiactobs.process(), cscripts.cslightcrv.cslightcrv.process(), cscripts.csmodelinfo.csmodelinfo.process(), cscripts.csmodelmerge.csmodelmerge.process(), cscripts.csmodelselect.csmodelselect.process(), cscripts.csmodelsois.csmodelsois.process(), cscripts.csobs2caldb.csobs2caldb.process(), cscripts.csobsdef.csobsdef.process(), cscripts.csobsinfo.csobsinfo.process(), cscripts.csobsselect.csobsselect.process(), cscripts.csphagen.csphagen.process(), cscripts.csphasecrv.csphasecrv.process(), cscripts.cspull.cspull.process(), cscripts.csresmap.csresmap.process(), cscripts.csresspec.csresspec.process(), cscripts.csroot2caldb.csroot2caldb.process(), cscripts.csscs.csscs.process(), cscripts.cssens.cssens.process(), cscripts.csspec.csspec.process(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cstsdist.cstsdist.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.cstsmapsplit.cstsmapsplit.process(), cscripts.csviscube.csviscube.process(), and cscripts.csworkflow.csworkflow.process().

◆ _log_selection()

cscripts.csobsselect.csobsselect._log_selection ( self,
obs,
msg )
protected
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().

◆ _select_box()

cscripts.csobsselect.csobsselect._select_box ( self,
obs )
protected
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().

◆ _select_circle()

cscripts.csobsselect.csobsselect._select_circle ( self,
obs )
protected
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().

◆ _select_observation()

cscripts.csobsselect.csobsselect._select_observation ( self,
obs )
protected
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().

◆ process()

cscripts.csobsselect.csobsselect.process ( self)
Process the script

Definition at line 293 of file csobsselect.py.

References 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(), cscripts.csworkflow.csworkflow._get_parameters(), cscripts.csobsselect.csobsselect._select_observation(), cscripts.csiactobs.csiactobs.obs(), cscripts.csobsdef.csobsdef.obs(), ctobservation.obs(), and ctobservation.obs().

◆ save()

cscripts.csobsselect.csobsselect.save ( self)
Save observation definition XML file

Definition at line 328 of file csobsselect.py.

Member Data Documentation

◆ _clobber


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