Hi all, I'm pretty new to Igor and I'm running into issues loading text from a txt file. So far I have written code to pull data from about 7000 txt files, but I also want to include the day, month, year and time that the data were taken (which are recorded in the files). I am able to load in the numerical stuff just fine (day, year and time) but the month is only available in the files as a three letter string (ie Dec) and for some reason that loads in as a number on the order of 1e-227. I can't figure out why this is happening. When I change the code to load in other text from the file the same thing happens. I would really appreciate your help!
LoadWave/A=timeinfo/Q/J/D/K=0/V={"\t "," $",0,1}/L={2,2,1,0,7}/r={English,2,3,2,2,"Month/DayOfMonth/Year",40} path+ ambient+num2str(x)+".txt"
//This loads in seven columns (one row) containing the time, day, month, year when the data were taken from 7000 txt files that I cycle through using a for loop
I actually figured out a different way around this. Instead of using loadwaves to load the data directly into waves, I used the open function to read the information into a string and then parse the important information from that string. Thank you though!
Attach a sample data file, zipped. If it is too big or proprietary, attach a representative edited data file, zipped.
June 17, 2015 at 11:57 am - Permalink
June 17, 2015 at 04:53 pm - Permalink