Beispiel #1
0
    a = parser.parse_args()
    print(a)
    return a


args = get_args()

if args.file is not None:
    filename = args.file
else:
    filename = "/Users/phansson/work/climeon/logging/data/Datalog_2018_05_03_01_00_02.csv"

print("Reading log file: " + filename)

# open and process
logfile = Reader.LogFileType1(filename)

# Example selecting a row (first one) by integer: print headers to std output
print(logfile.df.iloc[0].axes)

# examples plotting

# raw vs time
logfile.df['T33 [deg C]'].plot()

plt.figure()

# only positive readings
logfile.df['T33 [deg C]'][logfile.df['T33 [deg C]'] > 0].plot()

plt.figure()