I want to use (or simulate an array of arrays).
I got a set of images, represented by 2D arrays, that I want to put in an array such that it can be used in a loop.
I try to simulate this with a 3D array, but I not sure about syntax (in fact, what a wrote did not work...) :
imgArray=FINDGEN(nbImages,width,height)
;in a loop (where img is a 2D array)
DRVtab[i]=img
;later, in another loop
img=DRVtab(i,*,*)
When I try to acces to an element of img, I get an "out of range" error.
What is wrong ?
|