concatenating wavelist items
epiphenom
function cyclelist()
string string_list = wavelist("waves_final_*",";","")
wave dest_list
variable i
variable endnum = itemsinlist(string_list)
for(i=0;i<=endnum;i+=1)
string ywavename = stringfromlist(i,string_list)
concatenate /NP/O {$ywavename},dest_list
endfor
end
string string_list = wavelist("waves_final_*",";","")
wave dest_list
variable i
variable endnum = itemsinlist(string_list)
for(i=0;i<=endnum;i+=1)
string ywavename = stringfromlist(i,string_list)
concatenate /NP/O {$ywavename},dest_list
endfor
end
The NaNs are not the problem. Your problem is the overwrite flag in Concatenate. The code repeatedly concatenates just one wave into the destination and overwrites it. Actually, if you check the help for Concatenate, you can supply a semi-colon separated string list in a one-liner to do what you are trying to do.
July 28, 2017 at 02:35 pm - Permalink
July 28, 2017 at 04:08 pm - Permalink
July 30, 2017 at 05:00 am - Permalink
August 1, 2017 at 08:07 am - Permalink