
Generic header skip

Thomas.Dane
I am working on some general procedures for loading & graphing XY data based on those found in the IgorPro manual. This works well when the data file just consists of two columns however, it does not when there is a header. Using the Load general text dialogue you can "skip block" repeatedly until you get to the data, is it possible to include this operation in a procedure and tell the loader to skip block until two waves are found? Or would I have to go down the Open and FReadLine route?
I could write a series procedures specific to each type of data I have where I explicitly code how to read headers and columns which I have done for when I want to perform analysis etc but it would be nice to have a general load&graph that I can use to have a quick look at any data type.
Any suggests would be most welcome.
Tom
So far I have tested this on a number of data formats w/ different headers and it works as the LoadWave/G loads all info from the file including the data but stores the header info as waves too. I therefore check the number of pnts in each wave and have arbitrarily defined that if there are fewer than 10 pnts it must be a header. Obviously this runs into problem if you have header info with > 10 pnts or data with < 10 pnts.
Any suggestions?
December 18, 2011 at 09:22 am - Permalink