Variables | |
| string | help_message |
| Test Cube3D reading routine. More... | |
| tuple | datetime_in = datetime.datetime(2019,7,1) |
| string | magtype = 'DUMFRIC' |
| 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') |
| tuple | fig_size = (18,9) |
| int | fig_resolution = 100 |
| tuple | date_in = module_timespace.Time() |
| dictionary | mag_db = {} |
| mag_found = True | |
| tuple | fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution) |
| tuple | mag_path = os.path.join(mag_db['dirname'],mag_db['filename']) |
| tuple | mag_data = interface_read_cube3D.read(mag_table,mag_path) |
| tuple | bnorm = np.empty((mag_data.nlat,mag_data.nlon)) |
| tuple | min_value = np.nanmin(bnorm[:,:]) |
| tuple | max_value = np.nanmax(bnorm[:,:]) |
| tuple | mean_value = np.nanmean(bnorm[:,:]) |
| tuple | sub = plt.subplot(221) |
| tuple | img = plot_common.slice2D(sub,mag_data,'br',0,k,mag_db['vmin'],mag_db['vmax'],1) |
| tuple | eq = plot_common.equator(sub,'black') |
| tuple | grid_axis1 = module_toolbox_num.cell2grid(mag_data.lon) |
| tuple | grid_axis2 = module_toolbox_num.cell2grid(mag_data.lat) |
| string | command = 'eog %s/test_*.png' |
| string test_cube3D_read.axis_color = 'k' |
| string test_cube3D_read.axis_name_x = 'Carrington Longitude' |
| string test_cube3D_read.axis_name_y = 'Latitude' |
| int test_cube3D_read.axis_size = 10 |
| tuple test_cube3D_read.bnorm = np.empty((mag_data.nlat,mag_data.nlon)) |
| string test_cube3D_read.command = 'eog %s/test_*.png' |
| tuple test_cube3D_read.date_in = module_timespace.Time() |
| tuple test_cube3D_read.datetime_in = datetime.datetime(2019,7,1) |
| int test_cube3D_read.dphi = 40 |
| tuple test_cube3D_read.eq = plot_common.equator(sub,'black') |
| tuple test_cube3D_read.fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution) |
| int test_cube3D_read.fig_resolution = 100 |
| tuple test_cube3D_read.fig_size = (18,9) |
| tuple test_cube3D_read.folder_test = os.path.join('dir.test','TEST') |
| tuple test_cube3D_read.grid_axis1 = module_toolbox_num.cell2grid(mag_data.lon) |
| tuple test_cube3D_read.grid_axis2 = module_toolbox_num.cell2grid(mag_data.lat) |
| string test_cube3D_read.help_message |
Test Cube3D reading routine.
For a given date and a given magtype, read the corresponding datacube and plot it.
| tuple test_cube3D_read.img = plot_common.slice2D(sub,mag_data,'br',0,k,mag_db['vmin'],mag_db['vmax'],1) |
| tuple test_cube3D_read.mag_data = interface_read_cube3D.read(mag_table,mag_path) |
| dictionary test_cube3D_read.mag_db = {} |
| test_cube3D_read.mag_found = True |
| list test_cube3D_read.magtype = 'DUMFRIC' |
| tuple test_cube3D_read.max_value = np.nanmax(bnorm[:,:]) |
| tuple test_cube3D_read.mean_value = np.nanmean(bnorm[:,:]) |
| tuple test_cube3D_read.min_value = np.nanmin(bnorm[:,:]) |
| tuple test_cube3D_read.sub = plt.subplot(221) |
| list test_cube3D_read.ytick_loc = [ -90,-80,-60,-40,-20,0,20,40,60,80,90 ] |
1.8.5