[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: End of Array - like - End Of File



"Emmler, Oliver" <oemmler@ix.urz.uni-heidelberg.de> writes:

>Hi all,
>i have a directory with different numbers of files. I read the filenames by

>text = FINDFILE('H:/radiologie/*.dcm')

>in my testdirectory there are 14 files so it's defined when to stop

> FOR i=0,14 DO file[*,*,i] = READ_DICOM(text[i])

>QUESTION:
>How can i get the size of the array TEXT to stop by FOR i=0,stop DO ...
>Is there something like EOA (EndOfArray) like EOF ?

Is this what you mean?

  FOR i=0,N_ELEMENTS(file)-1 DO file[*,*,i] = READ_DICOM(text[i])

William Thompson