Append to Existing Waves
DRDana
I suggested this once before and people seemed to misunderstand what I had in mind. Here's the scenario: I collect a long series of data, but the collection gets interrupted for one reason or another, by accident or design, yielding several files that really belong to the same sequential data set. The addition of this one check box would make it trivial for me to load the files one by one and end up with one set of continuous waves. Although there are various ways to do that after the waves are loaded in Igor, they're all rather cumbersome when handling a lot of waves (which I do). The way I usually handle this situation now is to concatenate the files in a text editor before loading them.
cat a.txt b.txt c.txt > concat.txt
May 3, 2011 at 11:08 pm - Permalink
Does that work under Windows or just the terminal on Mac? What would be the equivalent under Windows?
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
May 5, 2011 at 08:17 am - Permalink
type a.txt b.txt > concat.txt
Also, this is a straight concatenation of the files, if you've got headers they stay in there.
May 5, 2011 at 03:14 pm - Permalink
cat *.txt > concat.txt
which will concatenate all .txt files.
May 5, 2011 at 05:28 pm - Permalink
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
May 6, 2011 at 06:53 am - Permalink
I am in a similar situation. Some of my waves are splitted across many dataset. But I've not tried to concatenate them. Every dataset's waves are stored in separate data folders, then I simply plot the splitted traces on the same graph (
AppendToGraph
). Provided that these waves have a Time Stamp which is not interrupted between one dataset to another, you get directly what you expect. Else, you should modify the timestamps. However, it depends on your personal requirements...Best Regards
May 6, 2011 at 04:38 pm - Permalink
I need a little bit of help in similar problem, I have a lot of waves and want to have them concatenated in one single wave. So for example I have wave1 to wave7, and want to get a waveX that contains the values from wave1 followed by the values from wave2 and so on.
Maybe I have'nt read well the manual or I'm thinking to complicate, but has anybody an idea how to do this easy?
Thank You for your help,
Chriss
May 9, 2011 at 06:21 am - Permalink
Just use the Concatenate operation. Since you have a bunch of waves you'll want to use the version of the operation that takes a string containing a list of wave names to concatenate. Here's an example:
Concatenate listOfWaves, newWave
You probably want to generate the value of the listOfWaves string within a loop instead of hard coding its value.
May 9, 2011 at 07:11 am - Permalink