Package invocations :: Package cu1 :: Module cu1Transfer :: Class GESTransfer
[hide private]

Class GESTransfer

source code


Transfer GES data.

Instance Methods [hide private]
 
__init__(self, instrument='', mode='', casuDir='', xferList='', versStr='', forceTransfer=False, deprecationMode='mv', database=None, UKLight=True, outPrefix=None, isTestRun=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
transfer(self, runDate)
Transfer data from CASU.
source code
 
checkOutDirs(self, inDirs)
Ensure the output directories are available.
source code
 
getCASUDirs(self, casuDir, runDate)
Get the listing for the given CASU directory.
source code
 
runScpScripts(self)
Run the scp scripts.
source code
dict(str: str)
writeScpScripts(self, casuDirDict, outDirs)
Write shell scp script based on the file list comparison.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  sysc = SystemConstants()
  gesPointings = ['m15', 'mw', 'ngc1851', 'ngc2808', 'ngc4372', ...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, instrument='', mode='', casuDir='', xferList='', versStr='', forceTransfer=False, deprecationMode='mv', database=None, UKLight=True, outPrefix=None, isTestRun=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • instrument (str) - GES instrument, ie. giraffe or uves.
  • mode (str) - GES mode, ie. nightly or stacked.
  • casuDir (str) - Directory at CASU, where FITS files are hosted.
  • database (str) - The database.
  • xferList (str) - File containig list of files to transfer.
  • forceTransfer (bool) - Force the data transfer.
  • deprecationMode (str) - Modus for deprecating files; with forceTransfer: file suffix for overwriting.
  • UKLight (bool) - Use UKLight instead of JANET.
  • outPrefix (str) - Prefix of output file(s).
  • versStr (str) - Version number of data.
  • isTestRun (bool) - If True, do not perform database modifications.
Overrides: object.__init__

writeScpScripts(self, casuDirDict, outDirs)

source code 

Write shell scp script based on the file list comparison.

Parameters:
  • casuDirDict (dict(list)) - Dict of transferable files.
  • outDirs (dict(str: str)) - Dictionary of date-version strings and their download directories.
Returns: dict(str: str)
Dictionary of downloaded file names and their paths.

Class Variable Details [hide private]

gesPointings

Value:
['m15',
 'mw',
 'ngc1851',
 'ngc2808',
 'ngc4372',
 'ngc4833',
 'ngc6752',
 'solar',
...