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 #71678] Tue, 13 July 2010 12:06 Go to previous message
Snow53 is currently offline  Snow53
Messages: 32
Registered: July 2010
Member
On Jul 13, 12:53 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> 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).

thanks. it's working great now.
[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: Wed Oct 08 14:08:10 PDT 2025

Total time taken to generate the page: 0.00198 seconds