[Swift-devel] Re: arrays of structures and building them in SWIFT

Uri Hasson uhasson at gmail.com
Sun May 4 19:18:31 CDT 2008


This solves the problem.

Posted final version of .swift script to
http://www.ci.uchicago.edu/~uhasson/AFNIsnrV3.swift

Many thanks,
Uri

On Sun, May 4, 2008 at 6:53 PM, Ben Clifford <benc at hawaga.org.uk> wrote:

> 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
>
> --
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20080504/48c3b89d/attachment.html>


More information about the Swift-devel mailing list