ctools
2.0.0
|
Public Member Functions | |
def | __init__ |
def | process |
Private Member Functions | |
def | _get_parameters |
def | _copy |
def | _merge |
def | _set_runs |
Private Attributes | |
_datapath | |
_remote_master | |
_remote_base | |
_prodname | |
_outpath | |
_runlist | |
_runs | |
Copies IACT data from remote machine This script copies IACT data from one location to another. It can take a list of observation IDs to allow the download specific observations. Index files get merged and updated accordingly.
Definition at line 31 of file csiactcopy.py.
def cscripts.csiactcopy.csiactcopy.__init__ | ( | self, | |
argv | |||
) |
Constructor
Definition at line 41 of file csiactcopy.py.
|
private |
Copy file to self._outpath directory Parameters ---------- source : str Path of file to be copied Returns ------- filesize : float Size of the file that was copied
Definition at line 86 of file csiactcopy.py.
References cscripts.csiactcopy.csiactcopy._outpath, and cscripts.csiactcopy.csiactcopy._remote_base.
Referenced by cscripts.csiactcopy.csiactcopy.process().
|
private |
Get parameters from parfile and setup the observation
Definition at line 62 of file csiactcopy.py.
References cscripts.csiactcopy.csiactcopy._outpath, cscripts.csfindobs.csfindobs._prodname, cscripts.csiactcopy.csiactcopy._prodname, cscripts.csiactcopy.csiactcopy._remote_master, and cscripts.csiactcopy.csiactcopy._runlist.
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.csmodelsois.csmodelsois.process(), cscripts.csobsdef.csobsdef.process(), cscripts.csmodelselect.csmodelselect.process(), cscripts.cstsmapmerge.cstsmapmerge.process(), cscripts.csobsselect.csobsselect.process(), cscripts.csworkflow.csworkflow.process(), cscripts.csobs2caldb.csobs2caldb.process(), cscripts.cstsdist.cstsdist.process(), cscripts.csiactcopy.csiactcopy.process(), cscripts.cssrcdetect.cssrcdetect.process(), cscripts.cspull.cspull.process(), cscripts.csphasecrv.csphasecrv.process(), cscripts.csiactobs.csiactobs.process(), cscripts.cslightcrv.cslightcrv.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 |
Merge remote and local fits files If the local fits file is not present, a new one is created. Parameters ---------- localfits : str Path of local index FITS file remotefits : str Path of remote index FITS file hduname : str Name of HDU extension to be merged clobber : bool Flag if remote content should overwrite local content
Definition at line 152 of file csiactcopy.py.
References cscripts.csfindobs.csfindobs._runs, and cscripts.csiactcopy.csiactcopy._runs.
Referenced by cscripts.csiactcopy.csiactcopy.process().
|
private |
Set the run list Parameters ---------- filename : `~gammalib.GFilename` Run list file name Returns ------- runs : list of int Run list
Definition at line 339 of file csiactcopy.py.
Referenced by cscripts.csiactcopy.csiactcopy.process().
def cscripts.csiactcopy.csiactcopy.process | ( | self | ) |
Process the script
Definition at line 400 of file csiactcopy.py.
References cscripts.csmodelmerge.csmodelmerge._clobber, cscripts.csiactcopy.csiactcopy._copy(), cscripts.csadd2caldb.csadd2caldb._get_parameters(), cscripts.csebins.csebins._get_parameters(), cscripts.csfindobs.csfindobs._get_parameters(), cscripts.csiactcopy.csiactcopy._get_parameters(), cscripts.cscaldb.cscaldb._get_parameters(), cscripts.csbkgmodel.csbkgmodel._get_parameters(), cscripts.csfootprint.csfootprint._get_parameters(), cscripts.csiactcopy.csiactcopy._merge(), cscripts.csiactcopy.csiactcopy._outpath, cscripts.csfindobs.csfindobs._prodname, cscripts.csiactcopy.csiactcopy._prodname, cscripts.csiactcopy.csiactcopy._remote_base, cscripts.csiactcopy.csiactcopy._remote_master, cscripts.csiactcopy.csiactcopy._runlist, cscripts.csfindobs.csfindobs._runs, cscripts.csiactcopy.csiactcopy._runs, and cscripts.csiactcopy.csiactcopy._set_runs().
|
private |
Definition at line 49 of file csiactcopy.py.
Referenced by cscripts.csiactdata.csiactdata._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), and cscripts.csiactdata.csiactdata.process().
|
private |
Definition at line 53 of file csiactcopy.py.
Referenced by cscripts.csiactcopy.csiactcopy._copy(), cscripts.csiactcopy.csiactcopy._get_parameters(), and cscripts.csiactcopy.csiactcopy.process().
|
private |
Definition at line 52 of file csiactcopy.py.
Referenced by cscripts.csiactcopy.csiactcopy._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), and cscripts.csiactcopy.csiactcopy.process().
|
private |
Definition at line 51 of file csiactcopy.py.
Referenced by cscripts.csiactcopy.csiactcopy._copy(), and cscripts.csiactcopy.csiactcopy.process().
|
private |
Definition at line 50 of file csiactcopy.py.
Referenced by cscripts.csiactcopy.csiactcopy._get_parameters(), and cscripts.csiactcopy.csiactcopy.process().
|
private |
Definition at line 54 of file csiactcopy.py.
Referenced by cscripts.csiactcopy.csiactcopy._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), cscripts.csiactcopy.csiactcopy.process(), cscripts.csiactobs.csiactobs.process(), and cscripts.csiactobs.csiactobs.runlist().
|
private |
Definition at line 55 of file csiactcopy.py.
Referenced by cscripts.csiactcopy.csiactcopy._merge(), and cscripts.csiactcopy.csiactcopy.process().