idl > memory problems [message #16737] |
Fri, 20 August 1999 00:00  |
winterdead
Messages: 8 Registered: August 1999
|
Junior Member |
|
|
I need to ask you a few questions. I am currently trying to animate a series
of pictures from CDROM's. Windows apparently only reads the names of these
pictures up to 8 characters but their names are at least 13 characters long,
Unix systems read their full names, Do you kno how to make windows read the
full names , or at least how to make IDL read the full names? I was also
hoping you could help me solve this problem I have with memory. my computer
does not have enough memory to make these arrays because they would require
over 300 MB each and I have to make several of them to say the least . I have
attempted to resize the arrays as best I know but with no luck. How would I
resize these arrays without recieving the error message bellow? I have included
an example of the code
example:% Array subscript for E must have same size as source expression.
thank you
ps
I was forced to make a loop by hand because of the problem with the names that
I mentioned above I included only a small sample of this as it was much too
long for the message
FE=strarr(300)
FO=strarr(300)
fe(0)=('d:99041000')
fo(0)=('d:99041001')
IDL> xinteranimate, set=[512,512,300], /showload
% Compiled module: XINTERANIMATE.
% Compiled module: XREGISTERED.
% Compiled module: CW_ANIMATE.
% Compiled module: CW_BGROUP.
% Compiled module: COLORMAP_APPLICABLE.
IDL> e=fltarr(512,512,300)
% Unable to allocate memory: to make array.
% Execution halted at: $MAIN$
IDL> xinteranimate, set=[64,64,300], /showload
IDL> e=fltarr(64,64,300)
IDL> o=fltarr(64,64,300)
IDL> for k=0,299 do e(*,*,k) = readsmd(fe(k))
% Compiled module: READSMD.
% Array subscript for E must have same size as source expression.
% Execution halted at: $MAIN$
IDL> xinteranimate, set=[512,512,300], /showload
IDL> o=fltarr(512,512,300)
% Unable to allocate memory: to make array.
% Execution halted at: $MAIN$
IDL> xinteranimate, set=[64,64,300], /showload
IDL> e=rebin(fltarr(64,64,300))
e=rebin(fltarr(64,64,300))
^
% REBIN: Incorrect number of arguments.
IDL> e=fltarr(64,64,300)
IDL> e=rebin(e,64,64)
IDL> o=fltarr(512,512,300)
% Unable to allocate memory: to make array.
% Execution halted at: $MAIN$
IDL> o=fltarr(64,64,300)
IDL> o=rebin(o,64,64)
IDL> for k=0,299 do e(*,*,k) = readsmd(fe(k))
% Array subscript for E must have same size as source expression.
% Execution halted at: $MAIN$
|
|
|