Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
raspberry-pi
sense-hat
Commits
a2b76f5b
Commit
a2b76f5b
authored
Jan 04, 2019
by
Rousseau Vincent
Browse files
Add mean
parent
231742d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
read_csv.py
View file @
a2b76f5b
import
csv
import
matplotlib.pyplot
as
plt
from
scipy
import
signal
import
numpy
as
np
with
open
(
'sense_hat_data_2019_01_04_00_00.csv'
)
as
f
:
datas
=
csv
.
reader
(
f
)
...
...
@@ -15,6 +16,8 @@ print(temp)
temp_decimate
=
signal
.
decimate
(
temp
,
10
,
3
,
zero_phase
=
True
)
print
(
temp_decimate
)
temp_mean
=
np
.
mean
(
temp
)
print
(
temp_mean
)
temp_filtered
=
signal
.
savgol_filter
(
temp
,
53
,
3
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment