[Swift-devel] mapping structures
    Ben Clifford 
    benc at hawaga.org.uk
       
    Mon Feb 26 10:33:30 CST 2007
    
    
  
I was thinking about some fmri stuff for a tutorial exercise and came up 
with this question:
.img and .hdr files come in the input in pairs, like this:
$ ls Raw/
anatomy1.hdr  anatomy2.hdr  anatomy3.hdr  anatomy4.hdr  reference.hdr
anatomy1.img  anatomy2.img  anatomy3.img  anatomy4.img  reference.img
so from a data type perspective it makes sense to say something like:
type inputimage {
  file img;
  file data;
}
but then do any of the existing mappers let me map into this structure? or 
do I have to write a custom mapper?
(to torture syntax, express something like: 
inputimg ref; 
 ref.img <"reference.img">;
 ref.hdr <"reference.hdr">; 
)
I think I can do this with the CSV mapper, with the input file pairs 
specified as CSV rows; but this needs a CSV to be externally generated 
from information that is already expressed in the metadata in the filename 
so doesn't particularly help.
-- 
    
    
More information about the Swift-devel
mailing list