comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Library/Functions to write configuration file for application
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Library/Functions to write configuration file for application [message #74739 is a reply to message #74737] Mon, 31 January 2011 13:09 Go to previous messageGo to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Jan 31, 2:52 pm, Paolo <pgri...@gmail.com> wrote:
> On Jan 31, 2:05 pm, Robin Wilson <ro...@rtwilson.com> wrote:
>
>
>
>
>
>
>
>
>
>> Hi,
>
>> I've written a fairly complex piece of modelling software in IDL, and
>> the model requires a number of parameters to run (input and output files
>> as well as various numerical parameters).
>
>> I want to be able to run this model from a batch file, and would like to
>> have a configuration file in which I specify all of these parameters and
>> then all I have to do is give the model the name of the configuration file.
>
>> What I was wondering is whether there are any libraries/sets of
>> functions in IDL that would help with reading and writing these
>> configuration files? I know that a number of programming languages
>> either have inbuilt functions for writing configuration files or some
>> add-ons which do that - do any of these exist for IDL?
>
>> I could knock up some simple file reading/writing code, but that would
>> make it rather difficult if I changed the order/number of variables in
>> the file, as I'd probably have to read some lines as strings and some as
>> floats, ints etc, and I could see it getting very complicated and
>> difficult to maintain.
>
> Well, if the values can only be int, floats or strings, nothing
> like a good old-fashioned text file in format
>
> parname = parvalue
> anotherparname = anothervalue
>
> etc.
>
> which is quite easy to parse.
>
> Ciao,
> Paolo
>
>
>
>
>
>
>
>
>
>> Any ideas?
>
>> Cheers,
>
>> Robin
>
>> ------------------
>> Robin Wilson
>> A PhD student studying complexity in remote sensingwww.rtwilson.com/academic

Or, something along the lines of a FITS header, which has a lot of
stuff written for parsing already. Check out the NASA astronomy IDL
library for examples.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: new graphics map coords
Next Topic: Re: IDL 8 NG widget problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 09:22:48 PDT 2025

Total time taken to generate the page: 0.23995 seconds