CT2CSV, the inverse of CTlogger, converts CloudTurbine files to CSV text files. This could be used, for example, to create a data file which is easily imported into a spreadsheet application such as Microsoft Excel. CT2CSV will only work with numerical sensor values (vs binary data such as images).
java -jar CT2CSV.jar -h -x -r -n <limit> -t <start,duration> -o <outFolder> -f <rootFolder> [source(s)]
-h display help message
-x turn on debug output
-r swap byte order; with this flag, interpret data as "big-endian", without this flag use "little-endian"
-n <limit> limits number of output lines, default=10000, set this option to increase
-t <start,dur> specify offset from start of data plus duration to extract (sec)
-o <outFolder> output folder for CSV files (default = ./CTcsv)
-f <rootFolder> root folder containing data source folders, default=CTdata or CloudTurbine
[source(s)] space-delimited list of one or more data sources; default=all available sources in rootFolder
The output file will be located in the specified output folder (./CTcsv by default); the name of the file will be the same as the CT source name with a “.csv” extension.
Consider the example presented below. Accelerometer data was captured from an Android phone running CTandroidACL. The CT data was stored on a local computer in CloudTurbine/CTdata/AndroidACL. CT2CSV was run in this same CloudTurbine folder as follows:
java -jar CT2CSV.jar AndroidACL
Output data was written to CloudTurbine/CTcsv/AndroidACL.csv. The data was imported and plotted in a spreadsheet application as shown below.