|
ctools 2.1.0
|
Public Member Functions | |
| __init__ (self, *argv) | |
| process (self) | |
Protected Member Functions | |
| _get_parameters (self) | |
| _copy (self, source, clobber) | |
| _merge (self, localfits, remotefits, hduname, clobber) | |
| _set_runs (self, filename) | |
Protected 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.
| cscripts.csiactcopy.csiactcopy.__init__ | ( | self, | |
| * | argv ) |
Constructor
Definition at line 41 of file csiactcopy.py.
|
protected |
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().
|
protected |
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.csiactobs.csiactobs._prodname, cscripts.csiactcopy.csiactcopy._remote_master, cscripts.csiactcopy.csiactcopy._runlist, and cscripts.csiactobs.csiactobs._runlist.
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().
|
protected |
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().
|
protected |
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().
| cscripts.csiactcopy.csiactcopy.process | ( | self | ) |
Process the script
Definition at line 400 of file csiactcopy.py.
References cscripts.csmodelmerge.csmodelmerge._clobber, cscripts.csmodelselect.csmodelselect._clobber, cscripts.csobsselect.csobsselect._clobber, cscripts.cssrcdetect.cssrcdetect._clobber, cscripts.csiactcopy.csiactcopy._copy(), 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.csiactcopy.csiactcopy._merge(), cscripts.csiactcopy.csiactcopy._outpath, cscripts.csfindobs.csfindobs._prodname, cscripts.csiactcopy.csiactcopy._prodname, cscripts.csiactobs.csiactobs._prodname, cscripts.csiactcopy.csiactcopy._remote_base, cscripts.csiactcopy.csiactcopy._remote_master, cscripts.csiactcopy.csiactcopy._runlist, cscripts.csiactobs.csiactobs._runlist, cscripts.csfindobs.csfindobs._runs, cscripts.csiactcopy.csiactcopy._runs, and cscripts.csiactcopy.csiactcopy._set_runs().
|
protected |
Definition at line 49 of file csiactcopy.py.
Referenced by cscripts.csfindobs.csfindobs._get_parameters(), cscripts.csiactdata.csiactdata._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), and cscripts.csiactdata.csiactdata.process().
|
protected |
Definition at line 53 of file csiactcopy.py.
Referenced by cscripts.csiactcopy.csiactcopy._copy(), cscripts.csiactcopy.csiactcopy._get_parameters(), and cscripts.csiactcopy.csiactcopy.process().
|
protected |
Definition at line 52 of file csiactcopy.py.
Referenced by cscripts.csfindobs.csfindobs._get_parameters(), cscripts.csiactcopy.csiactcopy._get_parameters(), cscripts.csiactobs.csiactobs._get_parameters(), and cscripts.csiactcopy.csiactcopy.process().
|
protected |
Definition at line 51 of file csiactcopy.py.
Referenced by cscripts.csiactcopy.csiactcopy._copy(), and cscripts.csiactcopy.csiactcopy.process().
|
protected |
Definition at line 50 of file csiactcopy.py.
Referenced by cscripts.csiactcopy.csiactcopy._get_parameters(), and cscripts.csiactcopy.csiactcopy.process().
|
protected |
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().
|
protected |
Definition at line 55 of file csiactcopy.py.
Referenced by cscripts.csiactcopy.csiactcopy._merge(), cscripts.csfindobs.csfindobs.process(), cscripts.csiactcopy.csiactcopy.process(), cscripts.csfindobs.csfindobs.runs(), and cscripts.csfindobs.csfindobs.save().