wadpac / GGIRread

Functions for reading accelerometer data files
https://CRAN.R-project.org/package=GGIRread
Apache License 2.0
5 stars 3 forks source link

Temperature correction for new GENEActiv 1.2 model #60

Closed vincentvanhees closed 3 months ago

vincentvanhees commented 4 months ago

Due to a now fixed bug in the earlier GENEActiv reader software, some early recordings can come with negative temperature values in countries with a , decimal separator culture and when temperature has decimal places.

It is unclear whether this has affected a lot of research data, but it may be good to add a check and correction for it anyway in GGIRread.

What we need is: IF temperature < 0 THEN Corrected temperature = Bin file temperature * 0.94 + 45.25

For the implementation I think fastest approach is to do this in the c++ code for each page header temperature value, instead of in the output where those temperature values have been repeated many times.

vincentvanhees commented 3 months ago

Closing this issue now, as it does not seem to be a problem.