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

Namespaces

 fetchmap2D.fetch_wso_date
 
 fetch_wso_date
 Download synoptic carrington maps from fetch type WSO_DATE.
 

Variables

string fetchmap2D.fetch_wso_date.help_message
 
tuple fetchmap2D.fetch_wso_date.date_begin = module_common.utc_today-datetime.timedelta(days=60)
 
tuple fetchmap2D.fetch_wso_date.date_end = datetime.datetime(module_common.utc_today.year+1,12,31)
 
 fetchmap2D.fetch_wso_date.last_map = False
 
 fetchmap2D.fetch_wso_date.first_map = False
 
 fetchmap2D.fetch_wso_date.download = True
 
int fetchmap2D.fetch_wso_date.verbose = 0
 
string fetchmap2D.fetch_wso_date.fetch_type = 'WSO_DATE'
 Default value (part 2) if last_map: date_begin = module_common.utc_today - datetime.timedelta(days = 1) date_end = datetime.datetime(module_common.utc_today.year+1,12,31) if first_map: date_end = date_begin + datetime.timedelta(days = 1) More...
 
list fetchmap2D.fetch_wso_date.local_dir = interface_fetch_map2D.fetch_info[fetch_type]
 
list fetchmap2D.fetch_wso_date.table_name = interface_fetch_map2D.fetch_info[fetch_type]
 
list fetchmap2D.fetch_wso_date.data_type = interface_fetch_map2D.fetch_info[fetch_type]
 
list fetchmap2D.fetch_wso_date.map_type = interface_fetch_map2D.fetch_info[fetch_type]
 
list fetchmap2D.fetch_wso_date.vmin = interface_fetch_map2D.fetch_info[fetch_type]
 
list fetchmap2D.fetch_wso_date.vmax = interface_fetch_map2D.fetch_info[fetch_type]
 
tuple fetchmap2D.fetch_wso_date.log_name = os.path.join('logs','fetch_map2D_wso_date_' + '%04d'%(module_common.utc_today.year) + '%02d'%(module_common.utc_today.month) + '%02d'%(module_common.utc_today.day))
 
tuple fetchmap2D.fetch_wso_date.log_id = open(log_name,'a')
 
tuple fetchmap2D.fetch_wso_date.itime = module_timespace.Time()
 
tuple fetchmap2D.fetch_wso_date.logs = database_map2D.init_db(database_map2D.database_path,1)
 
string fetchmap2D.fetch_wso_date.message = '... Connecting and reading to wso.stanford.edu website...'
 
tuple fetchmap2D.fetch_wso_date.server = interface_fetch_map2D.connect_remote_server(fetch_type)
 
tuple fetchmap2D.fetch_wso_date.remote_files_fm1 = interface_fetch_map2D.read_remote_server(fetch_type,server)
 
tuple fetchmap2D.fetch_wso_date.to_be_downloaded = interface_fetch_map2D.vn2vnp1(remote_files_fm1,fetch_type,-1)
 
list fetchmap2D.fetch_wso_date.downloaded_files = []
 
tuple fetchmap2D.fetch_wso_date.metafile = interface_fetch_map2D.MetaFile()
 
list fetchmap2D.fetch_wso_date.remote_files_f0 = []
 
tuple fetchmap2D.fetch_wso_date.metafile_f0 = interface_fetch_map2D.MetaFile()
 
 fetchmap2D.fetch_wso_date.name_f0 = metafile_fm1.name
 
tuple fetchmap2D.fetch_wso_date.date_obs = module_wso_wso_map2D.get_observation_date(remote_files_f0[0].path)
 
list fetchmap2D.fetch_wso_date.f1_fetched_files = []
 
 fetchmap2D.fetch_wso_date.tobeformatted = False
 
tuple fetchmap2D.fetch_wso_date.metafile_np1 = interface_fetch_map2D.MetaFile()
 
tuple fetchmap2D.fetch_wso_date.is_present_np1 = os.path.isfile(metafile_np1.path)
 
list fetchmap2D.fetch_wso_date.remote_files_f1 = []
 
tuple fetchmap2D.fetch_wso_date.basename = os.path.basename(filename)
 
tuple fetchmap2D.fetch_wso_date.date_in = interface_fetch_map2D.get_datetime(fetch_type,1,basename)
 
tuple fetchmap2D.fetch_wso_date.metafile_f1 = interface_fetch_map2D.MetaFile()
 
tuple fetchmap2D.fetch_wso_date.to_be_f2_fetched = interface_fetch_map2D.vn2vnp1(remote_files_f1,fetch_type,1)
 
list fetchmap2D.fetch_wso_date.f2_fetched_paths = []
 
 fetchmap2D.fetch_wso_date.file_f1 = metafile.name
 
 fetchmap2D.fetch_wso_date.path_f1 = metafile.path
 
tuple fetchmap2D.fetch_wso_date.file_f2 = interface_fetch_map2D.set_name_np1(fetch_type,file_f1,1)
 
tuple fetchmap2D.fetch_wso_date.path_v2 = os.path.join(local_dir,file_f2)
 
tuple fetchmap2D.fetch_wso_date.data = module_wso_wso_map2D.read_v0(path_f1)
 
list fetchmap2D.fetch_wso_date.f2_fetched_files = []
 
 fetchmap2D.fetch_wso_date.file_fx = metafile.name
 
tuple fetchmap2D.fetch_wso_date.flevel = interface_fetch_map2D.find_fetch_level(fetch_type,file_fx)
 
tuple fetchmap2D.fetch_wso_date.result = database_map2D.find_element([table_name],conn,cur,filename = file_fx)
 
tuple fetchmap2D.fetch_wso_date.fetch_level = metafile.mdate.strftime('%Y-%m-%d %H:%M:%S')
 
tuple fetchmap2D.fetch_wso_date.row_id