SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Namespaces | Variables
notaunittest_timeserie_compare_official_website.py File Reference

Namespaces

 tests.notaunittest_timeserie_compare_official_website
 

Variables

string tests.notaunittest_timeserie_compare_official_website.help_message
 
string tests.notaunittest_timeserie_compare_official_website.fetch_type = 'DISCOVER_MAG'
 
list tests.notaunittest_timeserie_compare_official_website.fetch_list = ['DISCOVER_MAG','DISCOVER_VELOCITY','STEREOA_MAG','STEREOA_VELOCITY','ACE_MAGLV4','ACE_VELOCITYLV4']
 
string tests.notaunittest_timeserie_compare_official_website.website = 'https://www.ngdc.noaa.gov'
 
int tests.notaunittest_timeserie_compare_official_website.fetch_level = 1
 
list tests.notaunittest_timeserie_compare_official_website.table_name = interface_fetch_timeserie.fetch_info[fetch_type]
 
tuple tests.notaunittest_timeserie_compare_official_website.folder_test = os.path.join('tests','TEST')
 
tuple tests.notaunittest_timeserie_compare_official_website.test_mode = module_prompt.prompt_inlist(['Random','Today','Yesterday','User defined date'])
 
 tests.notaunittest_timeserie_compare_official_website.db = None
 
tuple tests.notaunittest_timeserie_compare_official_website.date_begin = datetime.datetime(2019,6,1)
 
int tests.notaunittest_timeserie_compare_official_website.nmax = 100
 
int tests.notaunittest_timeserie_compare_official_website.niter = 0
 
tuple tests.notaunittest_timeserie_compare_official_website.delay = datetime.datetime.today()
 
tuple tests.notaunittest_timeserie_compare_official_website.random_delay = random.uniform(0,delay.total_seconds())
 
tuple tests.notaunittest_timeserie_compare_official_website.date_in = date_begin+datetime.timedelta(seconds=random_delay)
 
tuple tests.notaunittest_timeserie_compare_official_website.path = os.path.join(db['dirname'],db['filename'])
 
list tests.notaunittest_timeserie_compare_official_website.filename = db['filename']
 
tuple tests.notaunittest_timeserie_compare_official_website.timeserie = interface_read_timeserie.read(table_name,path)
 
tuple tests.notaunittest_timeserie_compare_official_website.test_path = os.path.join(folder_test,'swd_discover_mag_%s.png'%(date_in.strftime('%Y%m%d')))
 
string tests.notaunittest_timeserie_compare_official_website.ref_filename = 'official_discover_%s.png'
 
tuple tests.notaunittest_timeserie_compare_official_website.url = date_in.strftime('https://www.ngdc.noaa.gov/dscovr/plots/dscovr_1day_plots/%Y/%m/%Y%m%d-day.png')
 
tuple tests.notaunittest_timeserie_compare_official_website.current_dir = os.getcwd()
 
tuple tests.notaunittest_timeserie_compare_official_website.ref_path = os.path.join(folder_test,ref_filename)