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