ForEachN( 0, 47 ) ---> Format( "s%.2d.general" ) ---> Import()

Because of the ForEachN, the above executes 48 times and, one by one, feeds
the filenames "s00.general", "s01.general", etc. to Import.  Connect more
modules downstream from Import to perform some useful task on the contents
of those files (e.g. rendering an image and save it to a file using
WriteImage).

Note that the first arrow above connects the first output of ForEachN to
the second input of Format (i.e. value).  The "s%.2d.general" you see there
is the first input (i.e. template -- the string describing how to format
the string).

You can use Sequencer instead of ForEachN if you need interactive selection
of which timestep.  But if you just want to rip through them in order
without stopping, ForEachN will do the job.

Also, you'll notice the ".general" I added to the filename.  I don't know
what format your files are in but I'm assuming you'll be creating .general
files to describe your input files.  If this isn't the case (maybe they're
DX native files or text spreadsheet files), change this to suit.

If you need help with the .general file, just let us know.  "dx -prompter"
can be used to create these.

Randy

Marissa Forbes:
 |A beginner question.  I have 48 data files of identical format, 
 |(labeled s00, s01, s02, etc... s47) representing data taken over a 48 hour
 |period.  Ideally, I would like to import the files separately, without
 |concatenating them into one time-series file, and eventually make an
 |animation. If I understand correctly, this can be done with Sequencer,
 |Format, and Import.  Yes?  If, in fact, these are the modules I should be
 |using, it is not clear to me how they should be connected, nor am I clear
 |on what to enter for the "template" and "values" for the Format module.
 |Also, what filename should I give Import or the header file, since I am
 |hoping to cycle through 48 of them?   
 |Any help would be greatly appreciated.
 |
 |TIA,
 |
 |Marissa Forbes
-- 
Randall Hopper (mailto:[EMAIL PROTECTED])
Lockheed Martin Operation Support
EPA Scientific Visualization Center
US EPA N127-01; RTP, NC 27711

Reply via email to