Hi,
My aim here is to export the data from multiple 1D waves into a single delimited text file or Excel file. So, I am trying to copy 1D waves in each column of a multi-dimensional wave. And then I'll export the multidimensional wave into a delimited text file. I wanted to know the right syntax or command to do that. I understand you can pass on a column or a row of a multidimensional wave to a 1D wave, but same syntax doesn't seem to work when I flip the waves. I can write a loop to individually copy each quantity, but its not neat. Any suggestions? I am using IGOR 6.37
thanks
Another way to do this is to use the concatenate function and pass a list of waves that you would like exported. This operation will then create a new wave as a 2D wave and then just save it. Note: there is a caveat that the waves need to be the same length.
Concatenate [ /DL /FREE /KILL /NP[=dim ] /O] [typeFlags ] waveListStr, destWave
Concatenate [/DL /FREE /KILL /NP[=dim ] /O] [typeFlags ] {wave1, wave2, wave3,...}, destWave
Concatenate [/DL /FREE /KILL /NP[=dim ] /O] [typeFlags ] {waveWave }, destWave
The Concatenate operation combines data from the source waves into destWave, which is created if it does not already exist. If destWave does exists and overwrite is not specified, the source waves' data is concatenated with the existing data in the destination wave.
By default the concatenation increases the dimensionality of the destination wave if possible. For example, if you concatenate two 1D waves of the same length you get a 2D wave with two columns. The destination wave is said to be "promoted" to a higher dimensionality.
If you use the /NP (no promotion) flag, the dimensionality of the destination wave is not changed. For example, if you concatenate two 1D waves of the same length using /NP you get a 1D wave whose length is the sum of the lengths of the source waves.
If the source waves are of different lengths, no promotion is done whether /NP is used or not.
Andy
I did eventually found the concatenate function to do this job partially. In my case, the 1D waves are of different sizes, and some of them are the time waves. With time waves involved, even concatenate function for two 1D waves (1 time wave and 1 number wave) of same size creates a 2D wave with both the columns as time waves. Essentially, it doesn't keep the formatting of the parent 1D waves.
As I told earlier, my aim is to copy all these 1D waves in their respective format in a single multidimensional igor wave, or delimited text or an excel file. Is there anyway to do it? These 1D waves are the output waves by processing few days of sampling data. I eventually want to have a single file containing output data of the processing of a month of sampling data.
June 14, 2018 at 04:14 pm - Permalink
June 15, 2018 at 06:34 am - Permalink
June 15, 2018 at 10:38 am - Permalink
June 15, 2018 at 10:56 am - Permalink