|
string | help_message |
|
string | other_message = '\nHere is the list of available tables:\n' |
|
string | table_name = '' |
|
tuple | date_min = datetime.datetime(2019,1,1,0) |
|
| date_max = module_timespace.today_midnight |
|
tuple | folder_test = os.path.join('dir.test','TEST') |
|
int | delay = 12 |
|
| version = None |
|
tuple | time_in = module_timespace.Time() |
|
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 | fig_size = (12,6) |
|
int | fig_resolution = 100 |
|
tuple | ndates = int((date_max - date_min).total_seconds()/delay/3600) |
|
list | dates = [ date_min + i*datetime.timedelta(hours=delay) for i in range(0,ndates+1) ] |
|
tuple | fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution) |
|
tuple | sub = plt.subplot(111) |
|
tuple | map2D = database_map2D.time2map(table_name,time_in,version=version) |
|
tuple | map2D_data = interface_read_map2D.read(table_name,os.path.join(map2D['dirname'],map2D['filename'])) |
|
tuple | img = plot_common.map2D(sub,table_name,map2D_data,map2D['vmin'],map2D['vmax'],1) |
|
string | command = 'eog %s/*.png' |
|
Test read routine for Map2D database.
For a given date interval and a database table, find the corresponding map2D in the SW DB and plot it.
All images are stored in dir.test/TEST.
3 python test_interface_read_map2D.py [options]
5 -t table_name: one among all map2D tables
6 -b d1 : beginning date YYYYmmddHH (2019010100 by default)
7 -e d2 : end date YYYYmmddHH (today midnight by default)
8 -delay H : timestep
in hour between 2 plots. Default: H = 12
9 -o folder : name of output images folder. Default: dir.test/TEST
10 -v version : version of the file to be read. For instance: V0 Stereo-A/Plastic velocity
is in RTN frame, whereas V1 Stereo-A/Plastic velocity
is in IAU_SUN frame.