openmovementproject / openmovement

Open Movement devices are miniature, embeddable, open source sensors developed at Newcastle University, UK. The source code for the firmware and software is available under a BSD 2-clause license, and the hardware (PCB designs, layouts and schematics), enclosure designs and documentation are available under a Creative Commons 3.0 BY Attribution License.
https://openmovement.dev
146 stars 76 forks source link

Not enough data for this WTV_sd method Sampling frequency must be finite.!! #32

Closed halz2656 closed 3 years ago

halz2656 commented 5 years ago

Hi everyone, I just faced this problem with some few files. When I try to extract the data it gives me the following error: "

myPA = findPA('29835_0504062018.cwa','site',1,'side',1,'mass',68,'bodyFat',0.2,'epoch','days','csv','29835_0504062018.csv'); progress: 0 percent current path:

Status: Calculating the PA data.

progress: 1 percent progress: 1 percent progress: 2 percent progress: 2 percent progress: 3 percent progress: 4 percent progress: 4 percent progress: 5 percent progress: 5 percent progress: 6 percent progress: 7 percent progress: 7 percent progress: 8 percent progress: 8 percent progress: 9 percent Not enough data for this WTV_sd method Sampling frequency must be finite. Error using vertcat Dimensions of arrays being concatenated are not consistent.

Error in findPA (line 195) PAdata.Raw = [PAdata.Raw; calcPA(filename, p.Results,fileinfo,startTime(i),stopTime(i))]; "

Could someone help me with that?

Thanks Hosam

halz2656 commented 5 years ago

Could anyone help me with that, please?

danielgjackson commented 3 years ago

(Closing old issues) Apologies for the very late response.

If this is useful for anyone else finding this issue in the future:

I believe you are using the findPA.m file, but I am afraid I'm not able to help much with your issue.

Something that may be relevant: that old code uses "AX3_readfile.m", which only supports AX3 recording in "packed" mode. If you are using "unpacked" mode (or an AX6), you would need to convert the code to use CWA_readFile.m instead.

A popular alternative choice for processing wrist-based raw accelerometry is GGIR, and there is a good introduction to the package available, and a getting started guide.