earthscopestraintools.bottletar module

class earthscopestraintools.bottletar.GtsmBottleTar(filename, session=None, fileobj=None, verbose=False)

Bases: object

This class is designed to unpack the following 5 cases of GTSM tar file. 1. ‘Day’ session. 24hrs, low rate data. tgz of bottles. Logger and DMC Archive format. 2. ‘Hour’ session. 1hr, 1s data. tgz of bottles. Logger format 3. ‘Min’ session. 1hr, 20hz data. tar of 60 tgz of bottles. Logger format 4. ‘Hour_Archive’ session. 24hr, 1s data. tar of 24 tgz of bottles. Archive format 5. ‘Min_Archive’ session. 24hr, 20hz data. tar of 24 tar of 60 tgz of bottles. Archive format

Bottles are unpacked and temporarily written to filebase/bottles.

delete_bottles_from_disk()
get_bottle_names()
list_bottle_dir()
list_bottles()
load_bottle(bottlename)
load_bottles(verbose=False)
test()
untar_files(verbose=False)