gutils.watch package

Submodules

gutils.watch.ascii module

class gutils.watch.ascii.Ascii2NetcdfProcessor(pevent=None, **kargs)

Bases: pyinotify.ProcessEvent

my_init(outputs_path, configs_path, subset, **filters)
process_IN_CLOSE(event)
process_IN_MOVED_TO(event)
valid_file(name)
class gutils.watch.ascii.Slocum2NetcdfProcessor(pevent=None, **kargs)

Bases: gutils.watch.ascii.Ascii2NetcdfProcessor

VALID_EXTENSIONS = ['.dat']
convert_to_netcdf(event)
my_init(*args, **kwargs)
gutils.watch.ascii.create_netcdf_arg_parser()
gutils.watch.ascii.main_to_netcdf()

gutils.watch.binary module

class gutils.watch.binary.Binary2AsciiProcessor(pevent=None, **kargs)

Bases: pyinotify.ProcessEvent

my_init(outputs_path, **kwargs)
process_IN_CLOSE(event)
process_IN_MOVED_TO(event)
valid_file(name)
class gutils.watch.binary.Slocum2AsciiProcessor(pevent=None, **kargs)

Bases: gutils.watch.binary.Binary2AsciiProcessor

PAIRS = {'.dbd': '.ebd', '.sbd': '.tbd', '.mbd': '.nbd'}
VALID_EXTENSIONS
check_for_pair(event)
convert_to_ascii(event)
my_init(*args, **kwargs)
gutils.watch.binary.create_ascii_arg_parser()
gutils.watch.binary.main_to_ascii()

gutils.watch.netcdf module

class gutils.watch.netcdf.Netcdf2ErddapProcessor(pevent=None, **kargs)

Bases: pyinotify.ProcessEvent

create_and_update_content(event)
my_init(outputs_path, erddap_content_path, erddap_flag_path)
process_IN_CLOSE(event)
process_IN_MOVED_TO(event)
valid_extension(name)
class gutils.watch.netcdf.Netcdf2FtpProcessor(pevent=None, **kargs)

Bases: pyinotify.ProcessEvent

my_init(ftp_url, ftp_user, ftp_pass)
process_IN_CLOSE(event)
process_IN_MOVED_TO(event)
upload_file(event)
valid_extension(name)
gutils.watch.netcdf.create_erddap_arg_parser()
gutils.watch.netcdf.create_ftp_arg_parser()
gutils.watch.netcdf.lxml_elements_equal(e1, e2)
gutils.watch.netcdf.main_to_erddap()
gutils.watch.netcdf.main_to_ftp()