Hi, I'm trying to build an importing and data processing tool in wolfram development platform and run into a little snag. (most likely my inexperience with Wolfram language).
What I am trying to do is import a CSV/ file (see snippit below) that contains comments and markers to describe the data. If I manually strip out the comments and markers I can easy import the data and create graphs with them. (so far so good). Now, since I have a considerable amount of these files I wanted to automate that. Comments are marked with # and dataset begins with \ $V and ends with \$E.
So here are my questions: Q1. Can I tell the importer (or maybe pre/post processing the file) to ignore elements that are not part of the data? Q2. Can I extract the comments based on the markers (maybe parse the file? scanf?) and add them to a specified variable for further use?
Thanks for any pointers you might give me. The options in the Wolfram Language are a bit overwhelming and getting lost is easy.
#A Albert
#B 0.5 %
#C 0.01726
$V
-25.0,-25.0,5.0,0.053609
-24.0,-25.0,5.0,0.065964
-23.0,-25.0,5.0,0.051466
-22.0,-25.0,5.0,0.053896
$E
[edit] So I made some progress. Based on the following code: rawDataSet= ReadList["test.txt",Record, RecordSeparators->{"$V", "$E" }]; measurementSet = Table[rawDataSet[[2]]]; Print[measurementSet]
This results into an Table object (at least from what I can gather? What is the way to get information on an object?). But it appears that the knowledge that this is an CSV list is lost, its just a flat string. I tried StringSplit[measurementSet,","] but that didn't really seems to give me an 2D array of items to plot a graph from. Any suggestions?