Can someone please explain this to me, I am stumped (or stupid)... [message #47538] |
Sun, 12 February 2006 18:16 |
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.
|
|
|