SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Namespaces | Variables
fetch_stereo_plastic.py File Reference

Namespaces

 fetchtimeserie.fetch_stereo_plastic
 
 fetch_stereo_plastic
 Download and reformat STEREO Velocity files from fetch type STEREOA_VELOCITY.
 

Variables

string fetchtimeserie.fetch_stereo_plastic.help_message
 
tuple fetchtimeserie.fetch_stereo_plastic.date_begin = module_common.utc_today-datetime.timedelta(days=10)
 
 fetchtimeserie.fetch_stereo_plastic.last_data = False
 
 fetchtimeserie.fetch_stereo_plastic.download = True
 
string fetchtimeserie.fetch_stereo_plastic.fetch_type = 'STEREOA_VELOCITY'
 
list fetchtimeserie.fetch_stereo_plastic.local_dir = interface_fetch_timeserie.fetch_info[fetch_type]
 
list fetchtimeserie.fetch_stereo_plastic.table_name = interface_fetch_timeserie.fetch_info[fetch_type]
 
tuple fetchtimeserie.fetch_stereo_plastic.log_name = os.path.join('logs','fetch_timeserie_stereo_plastic_' + '%04d'%(module_common.utc_today.year) + '%02d'%(module_common.utc_today.month) + '%02d'%(module_common.utc_today.day))
 
tuple fetchtimeserie.fetch_stereo_plastic.log_id = open(log_name,'a')
 
tuple fetchtimeserie.fetch_stereo_plastic.logs = database_timeserie.init_db(database_timeserie.database_path,1)
 
tuple fetchtimeserie.fetch_stereo_plastic.server = interface_fetch_timeserie.connect_remote_server(fetch_type)
 
tuple fetchtimeserie.fetch_stereo_plastic.all_remote_files = interface_fetch_timeserie.read_remote_server(fetch_type,server,date_min = date_begin)
 
list fetchtimeserie.fetch_stereo_plastic.pattern = interface_fetch_timeserie.fetch_info[fetch_type]
 
tuple fetchtimeserie.fetch_stereo_plastic.metafile = interface_fetch_timeserie.MetaFile()
 
list fetchtimeserie.fetch_stereo_plastic.remote_files_fm1 = [ all_remote_files[-1] ]
 
tuple fetchtimeserie.fetch_stereo_plastic.to_be_downloaded = interface_fetch_timeserie.vn2vnp1(remote_files_fm1,fetch_type,-1)
 
list fetchtimeserie.fetch_stereo_plastic.downloaded_files = []
 
list fetchtimeserie.fetch_stereo_plastic.remote_files_f0 = []
 
tuple fetchtimeserie.fetch_stereo_plastic.metafile_f0 = interface_fetch_timeserie.MetaFile()
 
tuple fetchtimeserie.fetch_stereo_plastic.to_be_f1_fetched = interface_fetch_timeserie.vn2vnp1(remote_files_f0,fetch_type,0)
 
list fetchtimeserie.fetch_stereo_plastic.f1_fetched_paths = []
 
 fetchtimeserie.fetch_stereo_plastic.path_f0 = metafile.path
 
 fetchtimeserie.fetch_stereo_plastic.file_f0 = metafile.name
 
tuple fetchtimeserie.fetch_stereo_plastic.file_f1 = interface_fetch_timeserie.set_name_np1(fetch_type,file_f0,0)
 
tuple fetchtimeserie.fetch_stereo_plastic.path_f1 = os.path.join(local_dir,file_f1)
 
list fetchtimeserie.fetch_stereo_plastic.f1_fetched_files = []
 
 fetchtimeserie.fetch_stereo_plastic.file_vx = metafile.name
 
tuple fetchtimeserie.fetch_stereo_plastic.flevel = interface_fetch_timeserie.find_fetch_level(fetch_type,file_vx)
 
tuple fetchtimeserie.fetch_stereo_plastic.date_in = interface_fetch_timeserie.get_datetime(fetch_type,flevel,file_vx)
 
tuple fetchtimeserie.fetch_stereo_plastic.date_beg = datetime.datetime(date_in.year,date_in.month,date_in.day,0)
 
tuple fetchtimeserie.fetch_stereo_plastic.date_end = datetime.datetime(date_in.year,date_in.month,date_in.day,23,59,59)
 
tuple fetchtimeserie.fetch_stereo_plastic.result = database_timeserie.find_element([table_name],conn,cur,filename = file_vx)
 
tuple fetchtimeserie.fetch_stereo_plastic.row_id