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

Home » Public Forums » archive » Re: maximum LUN
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: maximum LUN [message #63922] Mon, 24 November 2008 08:00 Go to next message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
> What reason could there possibly be for having hundreds
> of files open simultaneously? The only thing that comes
> immediately to mind for me is a poor programming concept. :-)

I kind of expected that reply... :) I think I do have a valid
application, though. I have an archive of a few thousand satellite
images, each of which has 6 bands, stored in separate files. I've made
an object which can handle the six bands and return a subset image for
a selected region processed as I want it. It also returns the image's
coverage of the region, so that I can fill in any gaps with data from
other images. This I do by opening further image objects. So far, I
can use four of these to make an on-the-fly mosaic before I run out of
LUNs - and it works well up to that point. The program allows zooming
and panning, so I need repeat access to similar regions of the same
files. I think it would be too slow to close and reopen them every
time, so the objects hold the files open. The archive is several
terabytes, changing, and not in my control - so preprocessing is out.
With 128 LUNs instead of 28 I could mosaic about 20 image subsets,
which will be enough for the moment. Still, if the number 128 was just
an arbitrary choice long ago, I'd like to ask early for a bigger one!

cheers,
Greg
Re: maximum LUN [message #63926 is a reply to message #63922] Mon, 24 November 2008 06:51 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
greg.addr@googlemail.com writes:

> I'm running out of IDL-allocated LUNs in my current program, the
> maximum being 28. I can write a new get_lun to make use of the the
> hundred lower values, but even 128 seems rather measly for 2008. Is
> there any reason why this number couldn't be larger?

What reason could there possibly be for having hundreds
of files open simultaneously? The only thing that comes
immediately to mind for me is a poor programming concept. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: maximum LUN [message #64013 is a reply to message #63922] Mon, 24 November 2008 10:30 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
greg.addr@googlemail.com schrieb:
>> What reason could there possibly be for having hundreds
>> of files open simultaneously? The only thing that comes
>> immediately to mind for me is a poor programming concept. :-)
>
> I kind of expected that reply... :) I think I do have a valid
> application, though. I have an archive of a few thousand satellite
> images, each of which has 6 bands, stored in separate files. I've made
> an object which can handle the six bands and return a subset image for
> a selected region processed as I want it. It also returns the image's
> coverage of the region, so that I can fill in any gaps with data from
> other images. This I do by opening further image objects. So far, I
> can use four of these to make an on-the-fly mosaic before I run out of
> LUNs - and it works well up to that point. The program allows zooming
> and panning, so I need repeat access to similar regions of the same
> files. I think it would be too slow to close and reopen them every
> time, so the objects hold the files open. The archive is several
> terabytes, changing, and not in my control - so preprocessing is out.
> With 128 LUNs instead of 28 I could mosaic about 20 image subsets,
> which will be enough for the moment. Still, if the number 128 was just
> an arbitrary choice long ago, I'd like to ask early for a bigger one!
>
> cheers,
> Greg
>
>

close and open costs nothing. The code between both lines can be
efficient or not.

cheers
Reimar
Re: maximum LUN [message #64018 is a reply to message #63922] Mon, 24 November 2008 09:19 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Nov 24, 10:00 am, greg.a...@googlemail.com wrote:

> files. I think it would be too slow to close and reopen them every
> time, so the objects hold the files open.

Have you tried it? I'd be surprised if that's true - but then, I've
been surprised before. ;^)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: real time
Next Topic: Callable IDL

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

Current Time: Wed Oct 08 15:39:17 PDT 2025

Total time taken to generate the page: 0.00563 seconds