Compare for some dates DISCOVER and ACE timeseries (insitu velocity or magnetic field).
More...
|
| string | help_message |
| |
| string | var = 'vel' |
| |
| tuple | date_min = module_timespace.today_midnight-datetime.timedelta(days=10) |
| |
| | date_max = module_timespace.today_midnight |
| |
| | save = False |
| |
| tuple | image_path = os.path.join('dir.test','TEST','tmp.png') |
| |
| | ymin = None |
| |
| | ymax = None |
| |
| tuple | vmin = float(sys.argv[2]) |
| |
| tuple | vmax = float(sys.argv[2]) |
| |
| string | table1 = 'OBS_INSITU_VELOCITY_DISCOVER' |
| |
| string | table2 = 'OBS_INSITU_VELOCITY_ACELV4' |
| |
| 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) ] |
| |
| tuple | fig_size = (18,9) |
| |
| int | fig_resolution = 100 |
| |
| string | color1 = 'r' |
| |
| string | color2 = 'b' |
| |
| int | i = 0 |
| |
| | timeserie_glo1 = None |
| |
| tuple | db1 = database_timeserie.datetime2file(table1,date_in) |
| |
| tuple | data1 = interface_read_timeserie.read(table1,os.path.join(db1['dirname'],db1['filename'])) |
| |
| | timeserie_glo2 = None |
| |
| tuple | db2 = database_timeserie.datetime2file(table2,date_in) |
| |
| tuple | data2 = interface_read_timeserie.read(table2,os.path.join(db2['dirname'],db2['filename'])) |
| |
| tuple | fig = plt.figure(num=1,figsize=fig_size,dpi=fig_resolution) |
| |
| string | title = 'Comparing DISCOVER and ACE %s from %s to %s' |
| |
| int | index1 = 3 |
| |
| int | index2 = 0 |
| |
| tuple | sub = plt.subplot(111) |
| |
| string | ylabel = 'Norm(V) km/s' |
| |
Compare for some dates DISCOVER and ACE timeseries (insitu velocity or magnetic field).
Read the file in a database, and plot concatenated timeseries on the same plot.
3 python test_compare_discover_ace.py [options]
5 -var vel/mag : compare insitu velocity
or magnetic field measurement. Defaut: vel.
6 -b d1 : beginning date YYYYmmdd (today midnight - 10 days by default)
7 -e d2 : end date YYYYmmdd (today midnight by default)
9 -o imagePath : name of output image. Default: dir.test/TEST/tmp.png
10 -ymin minVal : minimum value of the plot. Call sub.set_ylim function.
11 -ymax maxVal : maximum value of the plot. Call sub.set_ylim function.