Movewave Function
Dolbash
Wave in: Wave_1a
waves out: wave_1a_leg1, wave_1a_leg2, wave_1a_leg3, wave_1a_leg4, sdev_wave_1a_leg1,sdev_wave_1a_leg2,sdev_wave_1a_leg3,sdev_wave_1a_leg4
As you can see, my data browser quickly gets filled. the names of the waves are made with a pretty basic(?) naming procedure
name=stringfromlist(q,filelist)
variable Filenamelength=strlen(name)
name = name[20,filenamelength-5]
wave wname=$name
variable Filenamelength=strlen(name)
name = name[20,filenamelength-5]
wave wname=$name
where the filelist is a list of all the file from a specific folder. This little snippet makes the wave name from part of the file name.
I want to extend this naming convention idea to moving these excessive number of files to separate folders named for their filename
I Thought doing something like this would work
NewDataFolder/O root:$name
movewave tobemoved :$name
movewave tobemoved :$name
this does nothing....rather, it doesn't move anything, but it does correctly make the named folders
I've tried
NewDataFolder/O root:$name
movewave tobemoved :$name:
movewave tobemoved :$name:
with an extra colon after the movewave folder, as that's how it normally works when i use reglular text without $. This however returns an error when I try to compile it
"A non existant data folder was referenced while acessing a child data folder"
I've tried to simply use my string "name" as I used in my example earlier where the string name references the file name "Wave_1a" from my first few lines. this simply looks for a folder called "name" and not one associated with the reference of name, which would be "Wave_1a".
I hope i've described my problem accurately thank you in advance for help!
movewave tobemoved :$name:
Try
movewave tobemoved $":"+name+":"
HJ
June 8, 2017 at 02:32 am - Permalink
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
June 8, 2017 at 06:03 am - Permalink
movewave tobemoved :$(name):
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
June 8, 2017 at 09:15 am - Permalink
June 9, 2017 at 11:31 am - Permalink