Test time2map routine for Map2D database. More...
Variables | |
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) |
tuple | date_max = datetime.datetime.today() |
tuple | time_in = module_timespace.Time() |
tuple | ndates = int((date_max - date_min).total_seconds()/12/3600) |
list | dates = [ date_min + i*datetime.timedelta(hours=12) for i in range(0,ndates+1) ] |
tuple | map2D = database_map2D.time2map(table_name,time_in) |
Test time2map routine for Map2D database.
For a given date interval and a database table, find the corresponding map2D in the SW DB and check if file really exists locally.
Output on console:
Date: error message (if file not in SW DB)
Date: filename (if file in SW DB and physically exist)
Date: filename absent (if file in SW DB but not physically exist)
tuple test_map2D_time2map.date_max = datetime.datetime.today() |
tuple test_map2D_time2map.date_min = datetime.datetime(2019,1,1) |
list test_map2D_time2map.dates = [ date_min + i*datetime.timedelta(hours=12) for i in range(0,ndates+1) ] |
string test_map2D_time2map.help_message |
tuple test_map2D_time2map.map2D = database_map2D.time2map(table_name,time_in) |
string test_map2D_time2map.other_message = '\nHere is the list of available tables:\n' |
list test_map2D_time2map.table_name = '' |
tuple test_map2D_time2map.time_in = module_timespace.Time() |