ctools  2.0.0
 All Classes Namespaces Files Functions Variables Macros Pages
cscripts.csiactcopy.csiactcopy Class Reference
Inheritance diagram for cscripts.csiactcopy.csiactcopy:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

def cscripts.csiactcopy.csiactcopy.__init__ (   self,
  argv 
)
Constructor

Definition at line 41 of file csiactcopy.py.

Member Function Documentation

def cscripts.csiactcopy.csiactcopy._copy (   self,
  source,
  clobber 
)
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().

def cscripts.csiactcopy.csiactcopy._get_parameters (   self)
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().

def cscripts.csiactcopy.csiactcopy._merge (   self,
  localfits,
  remotefits,
  hduname,
  clobber 
)
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().

def cscripts.csiactcopy.csiactcopy._set_runs (   self,
  filename 
)
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().

Member Data Documentation

cscripts.csiactcopy.csiactcopy._datapath
private
cscripts.csiactcopy.csiactcopy._outpath
private
cscripts.csiactcopy.csiactcopy._prodname
private
cscripts.csiactcopy.csiactcopy._remote_base
private
cscripts.csiactcopy.csiactcopy._remote_master
private
cscripts.csiactcopy.csiactcopy._runs
private

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