Exemplo n.º 1
0
 def download_func(remote_base_url, local_base_dir,
                   directory, fname, remote_fname, extension):
     local_dir = local_base_dir / directory
     fgm_options = url_options
     fgm_options['FILE_NAME'] = fname + extension
     fgm_options['FILE_PATH'] = '/ufa/HiRes/VHM-FGM/' + yearstr
     remote_url = ulysses_url
     for key in fgm_options:
         remote_url += key + '=' + fgm_options[key] + '&'
     try:
         util._load_remote(remote_url, fname + extension, local_dir, 'ascii')
     except Exception as err:
         return
Exemplo n.º 2
0
 def download_func(remote_base_url, local_base_dir,
                   directory, fname, remote_fname, extension):
     local_dir = local_base_dir / directory
     swics_options = url_options
     swics_options['FILE_NAME'] = fname + extension
     swics_options['FILE_PATH'] = '/ufa/HiRes/data/swics'
     for key in swics_options:
         remote_base_url += key + '=' + swics_options[key] + '&'
     try:
         util._load_remote(remote_base_url, fname + extension, local_dir, 'ascii')
         # f = util.load('', local_dir, remote_base_url)
     except Exception as err:
         return
Exemplo n.º 3
0
 def download_func(remote_base_url, local_base_dir,
                   directory, fname, remote_fname, extension):
     local_dir = local_base_dir / directory
     swoops_options = url_options
     year = fname[1:3]
     # doy = fname[5:8]
     swoops_options['FILE_NAME'] = fname + extension
     swoops_options['FILE_PATH'] =\
         ('/ufa/stageIngestArea/swoops/ions/bamion{}.zip_files'.format(year))
     for key in swoops_options:
         remote_base_url += key + '=' + swoops_options[key] + '&'
     try:
         util._load_remote(remote_base_url, fname + extension, local_dir, 'ascii')
         # f = util.load('', local_dir, remote_base_url)
     except Exception as err:
         return