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

Home » Public Forums » archive » execute problem
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: execute problem [message #8008 is a reply to message #7956] Sat, 01 February 1997 00:00 Go to previous messageGo to previous message
alpha is currently offline  alpha
Messages: 49
Registered: September 1996
Member
Phil Williams <williams@irc.chmcc.org> writes:
> R. Bauer wrote:
>> Hi,
>> here is an other problem
>> how could I solve the problem for idl 3.61?
> One way that I could think of off the top of my head would be to
> reference your structures via tag number instead of tag name. i.e.

> structure.(0).(1).(10)

> I'd imagine that there might be some overhead if you are using anonymous
> strutures to determine the tag placement. Something like,

> names = tag_names(structure)
> index1 = where(names eq structure2)
> names = tag_names(structure.(index))
> index2 = where(names eq structure3)

> etc.

> ps = ').('
> command = $
> 'print, structure.('+strtrim(index1,2)+ps+strtrim(index2,2)+ps+....

> Hope this helps,
>
Phil,

this is fine, but what can you do, if:

have to access slices of arrays in structure-tagnames???

struct={ tagname: fltarr(10,20) }

print,struct.tagname(*,12:15)

Can you programm this ?

print,struct.(1)....?????


this is the real problem with it i think.... and when you solved it,
compare the speed of your routine with the one execute you need for
it in the simple case...


Dr. Roepcke
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Hey! Pssst! Wanna see something wierd?
Next Topic: S: catching the output of help,/mem into variable-programm ???

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

Current Time: Fri Oct 10 17:00:35 PDT 2025

Total time taken to generate the page: 0.65361 seconds