[Swift-devel] Re: arrays of structures and building them in SWIFT
Ben Clifford
benc at hawaga.org.uk
Sun May 4 18:53:02 CDT 2008
ok try this:
put this in afnimapper and chmod a+x it:
#!/bin/bash
# S05.runbyrun.reg_TS_run-2+orig.HEAD
ls S*.runbyrun.reg_TS_run-*orig* | sed
's/^\(S05.runbyrun.reg_TS_run-\([0-9]*\)+orig.\(.*\)\)$/[\2].\3 \1/'
then map srun like this:
AFNI_obj srun[] <ext;exec="afnimapper">;
You can say something like this:
trace(@filename(srun[3].BRIK));
which will give you this trace:
SwiftScript trace: S05.runbyrun.reg_TS_run-3+orig.BRIK
--
More information about the Swift-devel
mailing list