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

Home » Public Forums » archive » Assigning structure variables
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Assigning structure variables [message #67960] Thu, 03 September 2009 01:22
Bernhard Reinhardt is currently offline  Bernhard Reinhardt
Messages: 26
Registered: October 2008
Junior Member
Hi,

I just ran into a problem when I tried to assign the minimum-index
returned by the min()-function to an array-element I_LON[i].

a=min(ABS(GLON - PLON[i]),I_LON[i])
Attempt to store into an expression: <LONG ( 0)>.

IDL> help, I_LON
I_LON LONG = Array[126236]


a=min(ABS(GLON - PLON[i]),b)
I_LON[i]=b
works

Well, I read Davids tips on precedence and Assigning Structure Values
but they are all about pointers and nested structures. To me it seems
I_LON is a plain array. I guess I haven't yet understood how variables
are exchanged with functions/procedures.

Anyone can shed a light on this?

Regards

Bernhard
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MAD normalization plug-in of ENVI
Next Topic: Tools to search this group, now that Google has screwed up their search?

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

Current Time: Mon Dec 01 00:35:20 PST 2025

Total time taken to generate the page: 0.47890 seconds