converting a wave reference into a textwave
HansF
Many thanks for your input!
Hans
wave/T monstercode, modelT, M_IB_hoog_EC_OK_range
string suffix
string name12=nameOfWave(M_IB_hoog_EC_OK_range); Duplicate/O modelT, $(name12+suffix)/wave=w12
w12[k2]=monstercode[i]
string suffix
string name12=nameOfWave(M_IB_hoog_EC_OK_range); Duplicate/O modelT, $(name12+suffix)/wave=w12
w12[k2]=monstercode[i]
February 16, 2018 at 05:50 am - Permalink
Duplicate/O/T
? Also, unless you declare it somehow,suffix
is a null string. The end result that should work isstring suffix, name12
suffix = "_modified"
name12=nameOfWave(M_IB_hoog_EC_OK_range) + suffix
Duplicate/O/T modelT, $(name12)/wave=w12
w12[k2]=monstercode[i]
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
February 16, 2018 at 05:56 am - Permalink
•string s_suffix = "_end"
•string s_text1 = nameofwave(w_text0) + s_suffix
•print w_text0
//prints: w_text0[0]= {"a","b","c"}
•duplicate/o/t w_text0, $s_text1 //creates w_text0_end
•print w_text0_end
//prints: w_text0_end[0]= {"a","b","c"}
best,
_sk
February 16, 2018 at 07:38 am - Permalink
Thanks,
Hans
February 16, 2018 at 08:31 am - Permalink