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

Home » Public Forums » archive » Re: EOS_SW_ATTACH loops
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: EOS_SW_ATTACH loops [message #64284] Wed, 17 December 2008 04:18
Juggernaut is currently offline  Juggernaut
Messages: 83
Registered: June 2008
Member
On Dec 17, 6:11 am, hethomas <het...@googlemail.com> wrote:
> Thanks for your response. I had actually tried EOS_SW_ CLOSE already,
> but your post helped me realise that the problem was most likely due
> to memory. In the end, I used HDF_SD_END, sd_id which seemed to solve
> the problem!!!

Indeed. Always pair an ABITRARYFUNCTION_OPEN with an
ARBITRARYFUNCTION_CLOSE...or a free lun in the case of openw, openr,
etc...
Re: EOS_SW_ATTACH loops [message #64285 is a reply to message #64284] Wed, 17 December 2008 03:11 Go to previous message
hethomas is currently offline  hethomas
Messages: 19
Registered: December 2008
Junior Member
Thanks for your response. I had actually tried EOS_SW_ CLOSE already,
but your post helped me realise that the problem was most likely due
to memory. In the end, I used HDF_SD_END, sd_id which seemed to solve
the problem!!!
Re: EOS_SW_ATTACH loops [message #64303 is a reply to message #64285] Tue, 16 December 2008 05:16 Go to previous message
Juggernaut is currently offline  Juggernaut
Messages: 83
Registered: June 2008
Member
On Dec 16, 6:29 am, hethomas <het...@googlemail.com> wrote:
> I have been trying to run a code (far too long to include here) which
> includes the line:
>
>     swath_id    = EOS_SW_ATTACH( sw_id, swathname[swath_ctr] )
>     n_fields    = EOS_SW_INQDATAFIELDS( swath_id, field_list, rank,
> n_type )
>
> I have been running a loop over the entire thing so that I can process
> all the files in my directory .  So far, every time i run the code
> after 30 runs of the loop, the code crashes because sw_id returns -1,
> and therefore n_fields returns the following error:
> EOS_SW_INQDATAFIELDS: Unable to query (null) information.
>
> I am wondering if anyone else has experienced this or knows what might
> be causing the problem? Thanks.

You're probably not closing your EOS_SW id each time you go through
and hit the physical limit for IDs to generate. So you need to
include an EOS_SW_CLOSE piece somewhere in your code to make sure
you're not just generating new ids without closing them. Same idea as
for all files...don't open it unless you're willing to close it prior
to your next 29 openings. Hope this helps.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: hist_2d question
Next Topic: Trouble showing lunar poles

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

Current Time: Thu Oct 09 21:34:55 PDT 2025

Total time taken to generate the page: 0.64115 seconds