|
string | help_message |
|
| random_date = False |
|
tuple | date_in = module_timespace.today_midnight-datetime.timedelta(days=10) |
|
tuple | date_start = datetime.datetime(2019,1,1) |
|
| delay = module_timespace.today_midnight-date_start |
|
tuple | random_delay = random.uniform(0,delay.total_seconds()) |
|
string | fetch_type = 'STEREOA_VELOCITY' |
|
list | table_name = interface_fetch_timeserie.fetch_info[fetch_type] |
|
list | local_dir = interface_fetch_timeserie.fetch_info[fetch_type] |
|
tuple | folder_test = os.path.join('dir.test','TEST') |
|
string | title = 'Test: Compare v0 format (RTN frame) and v1 format (IAU_SUN frame) for some STEREO Velocity files.' |
|
tuple | path_rtn = os.path.join(folder_test,'v_rtn.png') |
|
tuple | path_iau = os.path.join(folder_test,'v_iausun.png') |
|
tuple | db_v0 = database_timeserie.datetime2file(table_name,date_in,version = 0, h_accuracy=3) |
|
tuple | db_v1 = database_timeserie.datetime2file(table_name,date_in,version = 1, h_accuracy=3) |
|
tuple | path_v0 = os.path.join(db_v0['dirname'],db_v0['filename']) |
|
tuple | path_v1 = os.path.join(db_v1['dirname'],db_v1['filename']) |
|
list | file_v0 = db_v0['filename'] |
|
list | file_v1 = db_v1['filename'] |
|
tuple | timeserie_v0 = read_timeserie_stereo_plastic.read_cdf(path_v0) |
|
tuple | timeserie_v1 = read_timeserie_stereo_plastic.read_cdf(path_v1) |
|
string | command = 'eog %s %s' |
|
Test read routine for Stereo/Plastic with different formats.
For a specific date, read the corresponding (if existing) V0 and V1 files and make some plots.
3 python test_read_timeserie_stereo_plastic.py [options]
5 -d date : YYYYmmdd format. Today midnight - 10 days by default
6 -random : Choose a random date among [2019 Jan 1, today midnight]
- Todo:
Another test comparing SWD ploting with Stereo website online images
Unittest making a home made RTN to IAU_SUN transformation
Unittest comparing both norm in RTN and IAU_SUN