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

Home » Public Forums » archive » Can someone please explain this to me, I am stumped (or stupid)...
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
Can someone please explain this to me, I am stumped (or stupid)... [message #47538] Sun, 12 February 2006 18:16
David Green is currently offline  David Green
Messages: 7
Registered: July 2005
Junior Member
I have a problem that is somewhat bizzare. I have an array, "nph" of
which i am trying to use its values to create arrays of varying length.
However, it is not behaving as I expect, consider the following where
"nph" has been created previously...

IDL> print, nph
-3.81470e-06 2.00000 4.00000 6.00000 8.00000
10.0000 12.0000 14.0000
12.0000 10.0000 8.00000 6.00000 4.00000
2.00000 -3.81470e-06
IDL> print, jj
1
IDL> print, nph[jj]
2.00000
IDL> help, nph[jj]
<Expression> FLOAT = 2.00000
IDL> print, findgen(nph[jj])
0.00000
IDL> test=nph[jj]
IDL> print, test
2.00000
IDL> help, test
TEST FLOAT = 2.00000
IDL> print, findgen(test)
0.00000
IDL> test2=2.0
IDL> print, test2
2.00000
IDL> help, test2
TEST2 FLOAT = 2.00000
IDL> print, findgen(test2)
0.00000 1.00000
IDL>


Could someone please explain why this is so. I do not understand.

Thanks,
David.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to use ROI on a DEM ?
Next Topic: Re: Can someone please explain this to me, I am stumped (or stupid)...

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

Current Time: Fri Oct 10 08:34:50 PDT 2025

Total time taken to generate the page: 1.12036 seconds