import tables data = tables.open_file('data.h5', 'a') from datetime import datetime start = datetime(2016, 1, 1) end = datetime(2016, 1, 3) from sapphire import download_data download_data(data, '/s501', 501, start, end) print(data) events = data.root.s501.events[:5] print(events) data.close() import tables FILENAME = 'data.h5' data = tables.open_file(FILENAME, 'a') from datetime import datetime start = datetime(2016, 1, 1) end = datetime(2016, 1, 2) from sapphire import download_coincidences download_coincidences(data, stations=[502, 505, 504, 509], start=start, end=end, n=3) print(data.root.coincidences.coincidences) import tables from sapphire import download_data from datetime import datetime start = datetime(2015, 12, 31, 23) end = datetime(2016, 1, 1, 1) stations = [3201, 3202, 3203] with tables.open_file('middelharnis.h5', 'w') as data: for station in stations: print('station: %d.' % station) path = '/s%d' % station download_data(data, path, station, start, end) print(data)