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

Variables

string help_message
 
string other_message = '\nHere is the list of available tables:\n'
 
 user_file = False
 
string table_name = ''
 
tuple date_min = module_timespace.today_midnight-datetime.timedelta(days=10)
 
 date_max = module_timespace.today_midnight
 
 version = None
 
 save = False
 
tuple image_path = os.path.join('dir.test','TEST','tmp.png')
 
 vmin = None
 
 vmax = None
 
int sub_m = 2
 
int sub_n = 2
 
list filepath = sys.argv[2]
 
tuple folder_test = os.path.join('dir.test','TEST')
 
tuple fig_size = (18,9)
 
int fig_resolution = 100
 
tuple ndates = int((date_max - date_min).total_seconds()/24/3600)
 
list dates = [ date_min + i*datetime.timedelta(hours=24) for i in range(0,ndates+1) ]
 
int i = 0
 
 timeserie_glo = None
 
tuple timeserie_db = database_timeserie.datetime2file(table_name,date_in,version=version)
 
tuple timeserie_data = interface_read_timeserie.read(table_name,os.path.join(timeserie_db['dirname'],timeserie_db['filename']))
 
tuple fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution)
 
int iplot = sub_m*100
 
tuple sub = plt.subplot(iplot)
 

Variable Documentation

test_interface_read_timeserie.date_max = module_timespace.today_midnight
tuple test_interface_read_timeserie.date_min = module_timespace.today_midnight-datetime.timedelta(days=10)
list test_interface_read_timeserie.dates = [ date_min + i*datetime.timedelta(hours=24) for i in range(0,ndates+1) ]
tuple test_interface_read_timeserie.fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution)
int test_interface_read_timeserie.fig_resolution = 100
tuple test_interface_read_timeserie.fig_size = (18,9)
list test_interface_read_timeserie.filepath = sys.argv[2]
tuple test_interface_read_timeserie.folder_test = os.path.join('dir.test','TEST')
string test_interface_read_timeserie.help_message
Initial value:
1 = """
2 Usage :\n
3 python test_interface_read_timeserie [options]
4 [-h] : brief help
5 -t table_name: one among all timeserie tables
6 -b d1 : beginning date YYYYmmdd (today midnight - 10 days by default)
7 -e d2 : end date YYYYmmdd (today midnight by default)
8 --save : save figure
9 -o imagePath : path of output image. Default: dir.test/TEST/tmp.png
10 -f filepath : path of the wanted file to be read.
11 -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.
12 -vmin minVal : minimum value of the plot. Call sub.set_ylim function.
13 -vmax maxVal : maximum value of the plot. Call sub.set_ylim function.
14 -sub n m : Make subplot nxm. Default 2x2.
15 """
int test_interface_read_timeserie.i = 0
list test_interface_read_timeserie.image_path = os.path.join('dir.test','TEST','tmp.png')
int test_interface_read_timeserie.iplot = sub_m*100
tuple test_interface_read_timeserie.ndates = int((date_max - date_min).total_seconds()/24/3600)
string test_interface_read_timeserie.other_message = '\nHere is the list of available tables:\n'
test_interface_read_timeserie.save = False
tuple test_interface_read_timeserie.sub = plt.subplot(iplot)
tuple test_interface_read_timeserie.sub_m = 2
tuple test_interface_read_timeserie.sub_n = 2
list test_interface_read_timeserie.table_name = ''
tuple test_interface_read_timeserie.timeserie_data = interface_read_timeserie.read(table_name,os.path.join(timeserie_db['dirname'],timeserie_db['filename']))
tuple test_interface_read_timeserie.timeserie_db = database_timeserie.datetime2file(table_name,date_in,version=version)
tuple test_interface_read_timeserie.timeserie_glo = None
test_interface_read_timeserie.user_file = False
tuple test_interface_read_timeserie.version = None
tuple test_interface_read_timeserie.vmax = None
tuple test_interface_read_timeserie.vmin = None