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

Home » Public Forums » archive » Reading Multiple .sav files with same variable names for graphing
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: Reading Multiple .sav files with same variable names for graphing [message #88956 is a reply to message #88955] Mon, 07 July 2014 08:15 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Morgan Silverman writes:

> Right, of course :-) I started creating a loop but ran into trouble when I wanted to rename the structure or variables each loop iteration. I tried doing something like the following but run into trouble creating the temp variable name to use for each new structure and then using it. How do I create a new named structure or array each loop?
>

Off the top of my head, I can't think of any reason why you would NEED a
structure if you are doing this in a loop.

If you need the variables for later, just make an array of structures:

struct = {...}
varStructs = Replicate(struct, n)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Projected Meter Space and mapCoord
Next Topic: IDL project build scripts?

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

Current Time: Sun Oct 12 01:04:54 PDT 2025

Total time taken to generate the page: 2.16104 seconds