unfortunately I couldn't find an answer to this issue, and have had to result to asking a question. If there is an answer elsewhere, I apologise, I am new to IDL, and didn't know how to phrase this perfectly.
My code is below:
for i=0,delta-1 do begin
print, flrarray[i]
numbr_for_arr=where(del gt ((flrarray[i])-0.000001) and del lt ((flrarray[i])+0.000001))
print,numbr_for_arr
postnflrarray[i]=numbr_for_arr
endfor
delta is just a number. finalflrarray is just an array that has specific points that I need from del (a huge array)
my output is below:
...
24.000231 ; flrarray
23392 ; numbr_for_arr
24.748374
26612
24.213783
27473
24.368324
30637
24.711283
32432
24.426823
37675
24.039426
40733
Printing the flrarray, and postnflrarray
... 24.000231 24.748374 24.213783 24.368324 24.711283 24.426823 24.039426
... 23392 26612 27473 30637 32432 -27861 -24803
As you can see, somehow between printing numbr_for_array, and appending it
37675 -> -27861 and 40733 -> -24803
Any insight into why this is happening would be greatly appreciated.
I must emphasize that the flrarray array/vector is coming from an external source, so I am using this method to find where it is in my 'del' array.
Thank you for your help