ctools
2.0.0
|
Public Member Functions | |
def | __init__ |
def | process |
def | save |
def | mapcube |
def | cubemodelname |
def | models |
Private Member Functions | |
def | _get_parameters |
def | _gen_cubemodel |
Private Attributes | |
_cubegen | |
_models | |
_cubemodels | |
Puts subset of sources in diffuse model cube The csmodelsois class puts a subset of sources in a model definition XML file into a model cube and generates a new model definition XML file in which the subset of sources is replaced by a model of type DiffuseMapCube.
Definition at line 29 of file csmodelsois.py.
def cscripts.csmodelsois.csmodelsois.__init__ | ( | self, | |
argv | |||
) |
Constructor Parameters ---------- argv : list of parameters Raises ------ TypeError An invalid number of command line arguments was provided.
Definition at line 40 of file csmodelsois.py.
|
private |
Generates a binned model from the model file using ctmapcube
Definition at line 114 of file csmodelsois.py.
References cscripts.csmodelsois.csmodelsois._cubemodels, cscripts.csbkgmodel.csbkgmodel._models, cscripts.csmodelselect.csmodelselect._models, cscripts.csmodelmerge.csmodelmerge._models, cscripts.csmodelinfo.csmodelinfo._models, cscripts.csiactobs.csiactobs._models, and cscripts.csmodelsois.csmodelsois._models.
Referenced by cscripts.csmodelsois.csmodelsois.process().
|
private |
Get parameters from parfile
Definition at line 66 of file csmodelsois.py.
References cscripts.csmodelsois.csmodelsois._cubegen.
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.csmodelsois.csmodelsois.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().
def cscripts.csmodelsois.csmodelsois.cubemodelname | ( | self | ) |
Return the name to be given to the cube model in the output XML file
Definition at line 227 of file csmodelsois.py.
Referenced by cscripts.csmodelsois.csmodelsois.save().
def cscripts.csmodelsois.csmodelsois.mapcube | ( | self | ) |
Return the mapcube generated by the underlying 'ctmapcube' object
Definition at line 220 of file csmodelsois.py.
def cscripts.csmodelsois.csmodelsois.models | ( | self, | |
models | |||
) |
Set the models Parameters ------- models : `~gammalib.GModels` Model container
Definition at line 234 of file csmodelsois.py.
References cscripts.csbkgmodel.csbkgmodel._models, cscripts.csmodelselect.csmodelselect._models, cscripts.csmodelmerge.csmodelmerge._models, cscripts.csmodelinfo.csmodelinfo._models, cscripts.csiactobs.csiactobs._models, and cscripts.csmodelsois.csmodelsois._models.
Referenced by cscripts.cstsdist.cstsdist.process().
def cscripts.csmodelsois.csmodelsois.process | ( | self | ) |
Implements the actual bulk of the script's tasks
Definition at line 149 of file csmodelsois.py.
References cscripts.csmodelsois.csmodelsois._cubemodels, cscripts.csmodelsois.csmodelsois._gen_cubemodel(), 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.csbkgmodel.csbkgmodel._get_parameters(), cscripts.csfootprint.csfootprint._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), and cscripts.cslightcrv.cslightcrv._get_parameters().
def cscripts.csmodelsois.csmodelsois.save | ( | self | ) |
Save the cube and optionally the updated XML model file
Definition at line 178 of file csmodelsois.py.
References cscripts.csmodelsois.csmodelsois._cubemodels, cscripts.csbkgmodel.csbkgmodel._models, cscripts.csmodelselect.csmodelselect._models, cscripts.csmodelmerge.csmodelmerge._models, cscripts.csmodelinfo.csmodelinfo._models, cscripts.csiactobs.csiactobs._models, cscripts.csmodelsois.csmodelsois._models, and cscripts.csmodelsois.csmodelsois.cubemodelname().
|
private |
Definition at line 57 of file csmodelsois.py.
Referenced by cscripts.csmodelsois.csmodelsois._get_parameters().
|
private |
Definition at line 59 of file csmodelsois.py.
Referenced by cscripts.csmodelsois.csmodelsois._gen_cubemodel(), cscripts.csmodelsois.csmodelsois.process(), and cscripts.csmodelsois.csmodelsois.save().
|
private |
Definition at line 58 of file csmodelsois.py.
Referenced by cscripts.csphagen.csphagen.__getstate__(), cscripts.cssens.cssens.__getstate__(), cscripts.cssens.cssens.__setstate__(), cscripts.csphagen.csphagen.__setstate__(), cscripts.cssens.cssens._e_bin(), cscripts.csmodelsois.csmodelsois._gen_cubemodel(), cscripts.csphagen.csphagen._get_parameters(), cscripts.csphagen.csphagen._process_observation(), cscripts.csphagen.csphagen._set_models(), cscripts.csmodelsois.csmodelsois.models(), cscripts.cssrcdetect.cssrcdetect.models(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cssens.cssens.process(), cscripts.csmodelsois.csmodelsois.save(), and cscripts.cssrcdetect.cssrcdetect.save().