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.
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
THENCorrected 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.