PX4 / pyulog

Python module & scripts for ULog files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ulog2csv creating multiple files

CharlieRigel opened this issue · comments

Hey, I am working on a program to take a ulg file and then output specific user requested columns of data. I wrote a component that takes in a large, sparse (often the only data on a row is time), csv file and parses through it and pulls out the user requested data and puts it into a new csv (still sparse). I had originally been using PlotJuggler to convert the ulog files to a csv (in that single but sparse format) and then running my program to get the specific data out of that large CSV file.

I hoped to automate this process by using pyulog to convert the .ulg files into a single csv document however pyulog splits the data into many 53 (in my case) csv files based on how often the data is collected. Is there any way I can get pyulog to put all of the information into a single csv instead? Alternatively, is there any way to get pyulog to just pull specific columns of data?

Hi

Is there any way I can get pyulog to put all of the information into a single csv instead?

No, but you can extend the script to do so. Or write your own.

Alternatively, is there any way to get pyulog to just pull specific columns of data?

You can use -m to extract a single message, but it will contain all columns.