Commit cd85989d authored by Rousseau Vincent's avatar Rousseau Vincent
Browse files

add read csv script

parent e118dcfa
import csv
import matplotlib.pyplot as plt
from scipy import signal
with open('sense_hat_data_2019_01_04_00_00.csv') as f:
datas = csv.reader(f)
header = next(datas)
temp = []
time = []
for row in datas:
time.append(float(row[0]))
temp.append(float(row[2]))
print(temp)
temp_decimate = signal.decimate(temp, 10, 3, zero_phase=True)
print(temp_decimate)
plt.plot(time,temp)
plt.show()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment