SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Variables
test_map2D_lower_resolution Namespace Reference

Variables

tuple date = datetime.datetime(2019,1,1)
 
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','TEST_ADAPT')
 
tuple fig_size = (12,6)
 
int fig_resolution = 100
 
tuple fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution)
 
string map2D_type = 'ADAPT'
 Read the high resolution map2D. More...
 
tuple map2D_path = interface_read_map2D.date2map(map2D_type,date)
 
tuple map2D_high = interface_read_map2D.read(map2D_type,map2D_path)
 
tuple map2D_low = module_map2D.lower_resolution(map2D_high,2)
 
tuple sub = plt.subplot(221)
 
tuple img = plot_common.map2D(sub,map2D_type,map2D_high,1)
 
tuple eq = plot_common.equator(sub,'black')
 
tuple the = module_toolbox_num.nearest(map2D_high.the,0.)
 
tuple index_high = np.where(map2D_high.the==the)
 
tuple index_low = np.where(map2D_low.the==the)
 
list the_hr = map2D_high.the[index_high]
 
list the_lr = map2D_low.the[index_low]
 

Variable Documentation

string test_map2D_lower_resolution.axis_color = 'k'
string test_map2D_lower_resolution.axis_name_x = 'Carrington Longitude'
string test_map2D_lower_resolution.axis_name_y = 'Latitude'
int test_map2D_lower_resolution.axis_size = 10
tuple test_map2D_lower_resolution.date = datetime.datetime(2019,1,1)
int test_map2D_lower_resolution.dphi = 40
tuple test_map2D_lower_resolution.eq = plot_common.equator(sub,'black')
tuple test_map2D_lower_resolution.fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution)
int test_map2D_lower_resolution.fig_resolution = 100
tuple test_map2D_lower_resolution.fig_size = (12,6)
tuple test_map2D_lower_resolution.folder_test = os.path.join('dir.test','TEST_ADAPT')
tuple test_map2D_lower_resolution.img = plot_common.map2D(sub,map2D_type,map2D_high,1)
tuple test_map2D_lower_resolution.index_high = np.where(map2D_high.the==the)
tuple test_map2D_lower_resolution.index_low = np.where(map2D_low.the==the)
tuple test_map2D_lower_resolution.map2D_high = interface_read_map2D.read(map2D_type,map2D_path)
tuple test_map2D_lower_resolution.map2D_low = module_map2D.lower_resolution(map2D_high,2)
tuple test_map2D_lower_resolution.map2D_path = interface_read_map2D.date2map(map2D_type,date)
string test_map2D_lower_resolution.map2D_type = 'ADAPT'

Read the high resolution map2D.

tuple test_map2D_lower_resolution.sub = plt.subplot(221)
tuple test_map2D_lower_resolution.the = module_toolbox_num.nearest(map2D_high.the,0.)
list test_map2D_lower_resolution.the_hr = map2D_high.the[index_high]
list test_map2D_lower_resolution.the_lr = map2D_low.the[index_low]
list test_map2D_lower_resolution.xtick_label = [ str(int(xtick_loc[i])) for i in range(0,len(xtick_loc)) ]
list test_map2D_lower_resolution.xtick_loc = [ i*dphi for i in range(0,int(360./dphi)+1) ]
list test_map2D_lower_resolution.ytick_label = [ str(int(ytick_loc[i])) for i in range(0,len(ytick_loc)) ]
list test_map2D_lower_resolution.ytick_loc = [ -90,-80,-60,-40,-20,0,20,40,60,80,90 ]