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

Home » Public Forums » archive » Re: How to make an input parameters file??
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: How to make an input parameters file?? [message #80135] Mon, 30 April 2012 05:56 Go to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
Try this routine (take all three files):

http://hrscview.fu-berlin.de/mex4/software/idl/gm_read_texts tructure/

It reads named parameters from a text file - single values, arrays and structures - into a single structure

e.g. a=gm_read_textstructure("sample_structured_textfile.txt")

The parameter names will occur as tag names in the resulting structure, e.g.

IDL> print,a.scalar
10
IDL> print,a.xy_pair
600 800
IDL> print,a.plain_table
0.897916 0.558249 0.766930
0.589101 0.0603181 0.973112
0.0378892 0.218058 0.142394

Greg
[Message index]
 
Read Message
Read Message
Previous Topic: Writing a 4D array to a HDF file
Next Topic: Re: simplest contour & .png

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

Current Time: Wed Oct 08 15:54:07 PDT 2025

Total time taken to generate the page: 0.00402 seconds