Re: Batch
- To: mathgroup at smc.vnet.net
- Subject: [mg60414] Re: Batch
- From: dh <dh at metrohm.ch>
- Date: Fri, 16 Sep 2005 03:48:54 -0400 (EDT)
- References: <200509131007.GAA09833@smc.vnet.net> <dg8l4h$r21$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Maria,
Lets first state your question how I understand it:
You have some data processing procedure that reads data from some files
and generates some output. This you want to repeat several times.
Here is a solution.
Encapsulate the data processing in a function, e.g. fun[] that takes a
list of file names as input, reads the files and processes this input:
fun[files_List]
Second, Eeach processing (i) uses a bunch of files : {filei1,filei2,..}.
We assemble these lists into a "super" list:
files={ {file11,file12,..}, {file21,file22,..}, .. }
We now map the data processing function to the files:
fun /@ files
this will sequentially process each sublist of files
hope this helps, Daniel
Maria Cristina Dias Tavares wrote:
> Hi,
>
> I need to run a batch in Mathematica, so that I read data from
> several files and execute the calculations and generate the graphics.
> Then I read another group of data and perform the same calculation and
> that goes on until the data finish.
>
> I just manage to do this by putting all the calculation in a single
> cell, inside a Do. My cases are rather large, I am dealing with
> experimental data and I have to manipulate files with 1,000,000 points.
> I cannot just read all of them at once and start the calculus.
>
> My first go was to separate the calculations in notebooks and one nb
> called the next one. The first notebook called the following without a
> problem, but it did not evaluate it. I had to do it manually. And I have
> around 100 cases to analyse. I really need to automatize the procedure.
>
> Thanks all.
>
- References:
- operators for relations in sets
- From: "hawkmoon269" <rson@new.rr.com>
- operators for relations in sets