Variables | |
string | help_message |
int | ncar_min = 2207 |
int | ncar_max = 2207 |
tmp = ncar_min | |
tuple | corfield_exec = os.path.join(module_corona.path_corfield_pfss,'test_read_map') |
tuple | connect_tool_path = os.getcwd() |
string | axis_name_y = 'Latitude' |
string | axis_name_x = 'Carrington Longitude' |
int | axis_size = 10 |
string | axis_color = 'k' |
int | dphi = 40 |
list | xtick_loc = [ i*dphi for i in range(0,int(360./dphi)+1) ] |
list | xtick_label = [ str(int(xtick_loc[i])) for i in range(0,len(xtick_loc)) ] |
list | ytick_loc = [ -90,-80,-60,-40,-20,0,20,40,60,80,90 ] |
list | ytick_label = [ str(int(ytick_loc[i])) for i in range(0,len(ytick_loc)) ] |
tuple | folder_test = os.path.join('dir.test','COMPARE_DB_CORFIELD') |
tuple | fig_size = (25,15) |
int | fig_resolution = 100 |
list | map2D_types = ['WSO_CR','NSO_CR'] |
list | map2D_numsub = [1,4] |
tuple | fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution) |
int | i = -1 |
Step 1. More... | |
string | map2D_type = 'WSO' |
Step 1.1. More... | |
tuple | corfield_output_name = ('_CR%4d') |
tuple | corfield_output_file = os.path.join('dir.output',map2D_type.lower() + corfield_output_name + '_txt_tmp.dat') |
tuple | map2D_path = interface_read_map2D.ncar2map(map2D_type,ncar) |
string | map2D_time = 'crmap' |
tuple | simu_path = model_corfield_pfss.create_simu_folder() |
Step 1.2. More... | |
tuple | sub = plt.subplot(230+map2D_numsub[i]) |
Step 1.3. More... | |
tuple | ifile = open(os.path.join(simu_path,corfield_output_file)) |
tuple | map2D_corfield = ascii_map2D.read(ifile) |
tuple | img = plot_common.map2D(sub,map2D_type,map2D_corfield,0) |
tuple | eq = plot_common.equator(sub,'black') |
tuple | map2D_python = interface_read_map2D.read(map2D_type,map2D_path) |
Step 2. More... | |
tuple | map2D_diff = module_map2D.rel_diff(map2D_python,map2D_corfield) |
DIFFERENCE. More... | |
string db_corfield_map2D_crmap.axis_color = 'k' |
string db_corfield_map2D_crmap.axis_name_x = 'Carrington Longitude' |
string db_corfield_map2D_crmap.axis_name_y = 'Latitude' |
int db_corfield_map2D_crmap.axis_size = 10 |
tuple db_corfield_map2D_crmap.connect_tool_path = os.getcwd() |
tuple db_corfield_map2D_crmap.corfield_exec = os.path.join(module_corona.path_corfield_pfss,'test_read_map') |
tuple db_corfield_map2D_crmap.corfield_output_file = os.path.join('dir.output',map2D_type.lower() + corfield_output_name + '_txt_tmp.dat') |
tuple db_corfield_map2D_crmap.corfield_output_name = ('_CR%4d') |
int db_corfield_map2D_crmap.dphi = 40 |
tuple db_corfield_map2D_crmap.eq = plot_common.equator(sub,'black') |
tuple db_corfield_map2D_crmap.fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution) |
int db_corfield_map2D_crmap.fig_resolution = 100 |
tuple db_corfield_map2D_crmap.fig_size = (25,15) |
tuple db_corfield_map2D_crmap.folder_test = os.path.join('dir.test','COMPARE_DB_CORFIELD') |
string db_corfield_map2D_crmap.help_message |
int db_corfield_map2D_crmap.i = -1 |
Step 1.
Loop for all map2D_types
tuple db_corfield_map2D_crmap.ifile = open(os.path.join(simu_path,corfield_output_file)) |
tuple db_corfield_map2D_crmap.img = plot_common.map2D(sub,map2D_type,map2D_corfield,0) |
tuple db_corfield_map2D_crmap.map2D_corfield = ascii_map2D.read(ifile) |
tuple db_corfield_map2D_crmap.map2D_diff = module_map2D.rel_diff(map2D_python,map2D_corfield) |
DIFFERENCE.
list db_corfield_map2D_crmap.map2D_numsub = [1,4] |
tuple db_corfield_map2D_crmap.map2D_path = interface_read_map2D.ncar2map(map2D_type,ncar) |
tuple db_corfield_map2D_crmap.map2D_python = interface_read_map2D.read(map2D_type,map2D_path) |
Step 2.
Python reading.
string db_corfield_map2D_crmap.map2D_time = 'crmap' |
string db_corfield_map2D_crmap.map2D_type = 'WSO' |
Step 1.1.
Initialisation Corfield map2D outputs filename
list db_corfield_map2D_crmap.map2D_types = ['WSO_CR','NSO_CR'] |
tuple db_corfield_map2D_crmap.ncar_max = 2207 |
tuple db_corfield_map2D_crmap.ncar_min = 2207 |
tuple db_corfield_map2D_crmap.simu_path = model_corfield_pfss.create_simu_folder() |
Step 1.2.
Corfield reading/writing. Corfield simulation name
tuple db_corfield_map2D_crmap.sub = plt.subplot(230+map2D_numsub[i]) |
Step 1.3.
Plot map2D.
db_corfield_map2D_crmap.tmp = ncar_min |
list db_corfield_map2D_crmap.xtick_label = [ str(int(xtick_loc[i])) for i in range(0,len(xtick_loc)) ] |
list db_corfield_map2D_crmap.ytick_label = [ str(int(ytick_loc[i])) for i in range(0,len(ytick_loc)) ] |
list db_corfield_map2D_crmap.ytick_loc = [ -90,-80,-60,-40,-20,0,20,40,60,80,90 ] |