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

Namespaces

 fetchmap2D.fetch_wso_filled_cr
 
 fetch_wso_filled_cr
 Download and reformat magnetic carrington maps from fetch type WSO_FILLED_CR.
 

Variables

string fetchmap2D.fetch_wso_filled_cr.help_message
 
tuple fetchmap2D.fetch_wso_filled_cr.date_begin = datetime.datetime(1900,1,1)
 
tuple fetchmap2D.fetch_wso_filled_cr.date_end = datetime.datetime(module_common.utc_today.year+1,12,31)
 
 fetchmap2D.fetch_wso_filled_cr.last_map = False
 
 fetchmap2D.fetch_wso_filled_cr.first_map = False
 
 fetchmap2D.fetch_wso_filled_cr.download = True
 
int fetchmap2D.fetch_wso_filled_cr.verbose = 0
 
string fetchmap2D.fetch_wso_filled_cr.fetch_type = 'WSO_FILLED_CR'
 
list fetchmap2D.fetch_wso_filled_cr.local_dir = interface_fetch_map2D.fetch_info[fetch_type]
 
list fetchmap2D.fetch_wso_filled_cr.table_name = interface_fetch_map2D.fetch_info[fetch_type]
 
list fetchmap2D.fetch_wso_filled_cr.data_type = interface_fetch_map2D.fetch_info[fetch_type]
 
list fetchmap2D.fetch_wso_filled_cr.map_type = interface_fetch_map2D.fetch_info[fetch_type]
 
list fetchmap2D.fetch_wso_filled_cr.vmin = interface_fetch_map2D.fetch_info[fetch_type]
 
list fetchmap2D.fetch_wso_filled_cr.vmax = interface_fetch_map2D.fetch_info[fetch_type]
 
tuple fetchmap2D.fetch_wso_filled_cr.log_name = os.path.join('logs','fetch_map2D_wso_filled_cr_' + '%04d'%(module_common.utc_today.year) + '%02d'%(module_common.utc_today.month) + '%02d'%(module_common.utc_today.day))
 
tuple fetchmap2D.fetch_wso_filled_cr.log_id = open(log_name,'a')
 
tuple fetchmap2D.fetch_wso_filled_cr.itime1 = module_timespace.Time()
 
tuple fetchmap2D.fetch_wso_filled_cr.itime2 = module_timespace.Time()
 
tuple fetchmap2D.fetch_wso_filled_cr.logs = database_map2D.init_db(database_map2D.database_path,1)
 
string fetchmap2D.fetch_wso_filled_cr.message = '... Connecting to and reading wso.stanford.edu website...'
 
tuple fetchmap2D.fetch_wso_filled_cr.server = interface_fetch_map2D.connect_remote_server(fetch_type)
 
tuple fetchmap2D.fetch_wso_filled_cr.all_remote_files = interface_fetch_map2D.read_remote_server(fetch_type,server)
 
list fetchmap2D.fetch_wso_filled_cr.pattern = interface_fetch_map2D.fetch_info[fetch_type]
 
tuple fetchmap2D.fetch_wso_filled_cr.metafile = interface_fetch_map2D.MetaFile()
 
 fetchmap2D.fetch_wso_filled_cr.ncar_begin = itime1.ncar
 
 fetchmap2D.fetch_wso_filled_cr.ncar_end = itime2.ncar
 
list fetchmap2D.fetch_wso_filled_cr.remote_files_fm1 = [ all_remote_files[-1] ]
 
tuple fetchmap2D.fetch_wso_filled_cr.to_be_downloaded = interface_fetch_map2D.vn2vnp1(remote_files_fm1,fetch_type,-1)
 
list fetchmap2D.fetch_wso_filled_cr.downloaded_files = []
 
list fetchmap2D.fetch_wso_filled_cr.remote_files_f0 = []
 
tuple fetchmap2D.fetch_wso_filled_cr.metafile_f0 = interface_fetch_map2D.MetaFile()
 
tuple fetchmap2D.fetch_wso_filled_cr.to_be_f1_fetched = interface_fetch_map2D.vn2vnp1(remote_files_f0,fetch_type,0)
 
list fetchmap2D.fetch_wso_filled_cr.f1_fetched_paths = []
 
 fetchmap2D.fetch_wso_filled_cr.file_f0 = metafile.name
 
 fetchmap2D.fetch_wso_filled_cr.path_f0 = metafile.path
 
tuple fetchmap2D.fetch_wso_filled_cr.file_f1 = interface_fetch_map2D.set_name_np1(fetch_type,file_f0,0)
 
tuple fetchmap2D.fetch_wso_filled_cr.path_f1 = os.path.join(local_dir,file_f1)
 
tuple fetchmap2D.fetch_wso_filled_cr.data = module_wso_wso_map2D.read_v0(path_f0)
 
list fetchmap2D.fetch_wso_filled_cr.f1_fetched_files = []
 
list fetchmap2D.fetch_wso_filled_cr.remote_files_f1 = []
 
tuple fetchmap2D.fetch_wso_filled_cr.metafile_f1 = interface_fetch_map2D.MetaFile()
 
tuple fetchmap2D.fetch_wso_filled_cr.name_f1 = interface_fetch_map2D.set_name_np1(fetch_type,metafile_f0.name,0)
 
tuple fetchmap2D.fetch_wso_filled_cr.to_be_f2_fetched = interface_fetch_map2D.vn2vnp1(remote_files_f1,fetch_type,1)
 
list fetchmap2D.fetch_wso_filled_cr.f2_fetched_paths = []
 
tuple fetchmap2D.fetch_wso_filled_cr.current_dir = os.getcwd()
 
tuple fetchmap2D.fetch_wso_filled_cr.file_f2 = interface_fetch_map2D.set_name_np1(fetch_type,file_f1,1)
 
string fetchmap2D.fetch_wso_filled_cr.command = 'ln -sf '
 
list fetchmap2D.fetch_wso_filled_cr.f2_fetched_files = []
 
 fetchmap2D.fetch_wso_filled_cr.file_fx = metafile.name
 
tuple fetchmap2D.fetch_wso_filled_cr.flevel = interface_fetch_map2D.find_fetch_level(fetch_type,file_fx)
 
tuple fetchmap2D.fetch_wso_filled_cr.result = database_map2D.find_element([table_name],conn,cur,filename = file_fx)
 
tuple fetchmap2D.fetch_wso_filled_cr.row_id