pysilcam.oilgas module

module for processing Oil and Gas SilCam data

class pysilcam.oilgas.DataLogger(filename, header)

Bases: object

append_data(data)
class pysilcam.oilgas.ServerThread(ip)

Bases: multiprocessing.context.Process

Class for managing http server for sharing realtime data

go()
run()

Start the server on port 8000

pysilcam.oilgas.cat_data(timestamp, stats, settings)

Possibly a redundant function….

pysilcam.oilgas.cat_data_pj(timestamp, vd, d50, nparts)

cat data into PJ-readable format (readable by the old matlab SummaryPlot exe)

pysilcam.oilgas.convert_to_pj_format(stats_file, config_file)

converts stats files into a total, and gas-only time-series csvfile which can be read by the old matlab SummaryPlot exe

pysilcam.oilgas.cos_check(dias, vd)
pysilcam.oilgas.cosine_similarity(a, b)
pysilcam.oilgas.extract_gas(stats, THRESH=0.85)
pysilcam.oilgas.extract_oil(stats, THRESH=0.85)
pysilcam.oilgas.gaussian(x, mu, sig)
pysilcam.oilgas.gaussian_fit(xdata, ydata)
pysilcam.oilgas.getListPortCom()
pysilcam.oilgas.gor_timeseries(stats, settings)
pysilcam.oilgas.ogdataheader()

Possibly a redundant function….

pysilcam.oilgas.realtime_summary(statsfile, config_file)
class pysilcam.oilgas.rt_stats(settings)

Bases: object

Class for maintining realtime statistics

to_csv(filename)

Writes the rt_stats data to a csv file

Parameters

filename (str) – filename of the csv file to write to

update()

Updates the rt_stats to remove data from before the specified window of seconds given in the config ini file, here: settings.PostProcess.window_size