Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

RE: Use of .txt files as init file ?

New Message Reply Date view Thread view Subject view Author view

Subject: RE: Use of .txt files as init file ?
From: Nicolas Becu (nicolas_becu@yahoo.com)
Date: Wed Jul 21 2004 - 11:46:50 CEST

Dear Pierre-Marcel

What I usually do in my models is that I import the initialisation
parameters of the model from a csv file during init (you should find csv
file import method in the Cormas utils).
Then I create one csv file for each scenario that I run (each one having
different values of initialisation parameters) and I import the csv file
that I need for each scenario.

To structure a bit the model I created a Parameter class in my model which
stores all those parameters (I store them in dictionaries at the class
level). Then I call the parameter requiered by using a method like :
Parameter readValueOf: aParameterName.

Hope this helps

Cheers

Nicolas

  -----Original Message-----
  From: owner-cormas@cirad.cirad.fr [mailto:owner-cormas@cirad.cirad.fr]On
Behalf Of Pierre-Marcel GORAL
  Sent: mercredi 21 juillet 2004 09:59
  To: cormas@cirad.fr
  Subject: Use of .txt files as init file ?

      Hello everybody,

  I've got a problem initialising a model. This model has numerous things to
settle before launch, and all these variables can take many values in order
to make many differrent simulations. So I have to settle each variable one
at a time, and it's ... well, boring, at least.
  So I've got one question: is it possible to use a ".txt" like file in
order to prepare the inits of all these, and if that's the case, how to call
it from the Cormas model, and how to read it?
  (I don't have any knowledge on the Input routines of Cormas).

  I am waitinig your advice.

  Best regards, Pierre-Marcel.

  Pierre-Marcel GORAL

----------------------------------------------------------------------------

--
  Trouvez l'âme soeur sur MSN Rencontres. Cliquez-ici

New Message Reply Date view Thread view Subject view Author view
 

Back to home