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

Home » Public Forums » archive » Re: RE trying to export pixel data from .dat files, based on coordinate loc
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: RE trying to export pixel data from .dat files, based on coordinate loc [message #71679 is a reply to message #71678] Tue, 13 July 2010 11:53 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jul 13, 3:50 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Jul 13, 3:40 pm, Snow53 <jennifer_wa...@hotmail.com> wrote:
>
>> Ok, I modified the code to just run off IDL (not calling ENVI)  to get
>> around the need for .hdr and everything is working, but with one
>> problem.  It runs great with up to six files. but then runs out of
>> luns after that. I'm wondering if the problem lies in the file array
>> (since 1000 files are named in the array). Any advice for how to fix
>> this problem?
>
> The pool of luns is small. As your code is, you are getting a new lun
> from the pool at every file open, but not giving it back when done.
> Just replace the "close,u" with a "free_lun,u".

To be more clear: close only closes the file, it does not release the
lun. Free_lun does both (so it is redundant to call both close and
free_lun).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Selective Convolution
Next Topic: FITS IO Problem

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

Current Time: Fri Oct 10 07:30:43 PDT 2025

Total time taken to generate the page: 1.19908 seconds