@@ -39,7 +39,7 @@ Processing a CSV file
3939
4040 $ actinet data/sample.csv.gz
4141
42- The CSV file must have at least four columns, named "time", "x", "y" and "z".
42+ The CSV file must have at least four columns, expected to be named "time", "x", "y" and "z".
4343The "time" column should contain the date and time of each measurement as a string.
4444The "x", "y" and "z" columns should contain the numeric tri-axial acceleration values.
4545A template can be downloaded as follows:
@@ -54,9 +54,24 @@ A template can be downloaded as follows:
5454 2014-05-07 13:29:50.439+0100 [Europe/London],-0.514,0.07,1.671
5555 2014-05-07 13:29:50.449+0100 [Europe/London],-0.089,-0.805,-0.59
5656
57- If your CSV is in a different format, you should first convert it to this format,
58- before using the tool .
57+ If the CSV file has a different header, use the option --txyz to specify the time and x-y-z columns, in that order.
58+ The --csvStartRow option can be used to specify the first row of data in the CSV file, starting from the header row .
5959
60+ For example:
61+ .. code-block :: console
62+ SAMPLE CSV FILE
63+
64+ HEADER_TIMESTAMP,temperature,X,Y,Z
65+ 2013-10-21 10:00:08.000,26.3,-0.078923,0.396706,0.917759
66+ 2013-10-21 10:00:08.010,26.2,-0.094370,0.381479,0.933580
67+ 2013-10-21 10:00:08.020,26.2,-0.094370,0.366252,0.901938
68+ 2013-10-21 10:00:08.030,26.2,-0.078923,0.411933,0.901938
69+ ...
70+
71+ Then run the command as follows:
72+ .. code-block :: console
73+
74+ $ actinet data/sample.csv.gz --txyz HEADER_TIMESTAMP,X,Y,Z --csvStartRow 3
6075
6176 Other accelerometer file formats
6277--------------------------------
0 commit comments