Re: Does ENVI_FILE_MNG work with 'In Memory' files? [message #72341] |
Fri, 27 August 2010 16:24 |
Maxwell Peck
Messages: 61 Registered: February 2010
|
Member |
|
|
On Aug 28, 8:57 am, robintw <r.t.wil...@rmplc.co.uk> wrote:
> 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
,/remove with the fid should be all thats required to remove files
from memory. I just tested it and it works as expected.
|
|
|