comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Does ENVI_FILE_MNG work with 'In Memory' files?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Does ENVI_FILE_MNG work with 'In Memory' files? [message #72341] Fri, 27 August 2010 16:24
Maxwell Peck is currently offline  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.
[Message index]
 
Read Message
Previous Topic: Does ENVI_FILE_MNG work with 'In Memory' files?
Next Topic: Re: Making array out of sinc

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:25:41 PDT 2025

Total time taken to generate the page: 0.00382 seconds