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

Home » Public Forums » archive » structure references
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: structure references [message #86757 is a reply to message #86751] Sun, 01 December 2013 11:52 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Sunday, December 1, 2013 1:33:03 PM UTC-5, Sebastian Luque wrote:
> Hi,
>
In general, a structure contains elements of different types (e.g. string types) so

x.(*)=20

isn't allowed. Instead of a structure, you might look at the HASH() syntax which allows one to specify multiple hashes in a single call:

IDL> a = hash('a',double(0),'b',double(0), c:'string' )
IDL> a[['a','b']] = 20.0d
IDL> print,a
c: string field
a: 20.000000
b: 20.000000


>
> While trying to set all elements of a structure to a value, I read
>
> http://www.exelisvis.com/docs/Structure_References.html and it seems
>
> this is not possible with a simple operation like:
>
>
>
> x={a:double(0), b:double(0)}
>
> x.(*)=20
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reading ERDAS IMAGINE
Next Topic: Multiple color plots, same color bar

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

Current Time: Fri Oct 10 07:07:41 PDT 2025

Total time taken to generate the page: 0.15971 seconds