Ok thanks!
I send the file as an attachment. I haven't put the licence so it can have the same as the rest of the scripts.
I've tested the script with our output files, but it would be nice to test it with more files so I can check the errors.
I've put the script that converts the file into a raster, since it's the most useful for me, but I made some tests creating vector files, altough the resulting files are huge. If there is some interest, I could create the command line script to give vector files too.