Does ENVI_FILE_MNG work with 'In Memory' files? [message #72342] |
Fri, 27 August 2010 15:57 |
robintw
Messages: 37 Registered: March 2009
|
Member |
|
|
Hi all,
I have an IDL function which processes images in ENVI, creating a
number of temporary images on the way. I set the /IN_MEMORY keyword
for many of these functions to keep the temporary images (which are
quite small) in memory. I then delete them at the end of the function
using the ENVI_FILE_MNG function. The only problem is...it doesn't
seem to work! The files seem to stay in the Available Bands window,
and after processing 500 files (and therefore creating around 2500
temporary 'in memory' files) the whole thing crashes!
Is there a special way to close files that are stored in memory? The
code I am using at the moment is:
ENVI_FILE_MNG, id=thresholded_fid, /DELETE, /REMOVE
I have tried various combinations of the /DELETE and /REMOVE switches,
as the manual does not state which should be used with files in
memory.
Does anyone have any ideas why this may not be working? I can provide
the code of my function if needed.
Best regards,
Robin Wilson
University of Southampton
|
|
|