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

Home » Public Forums » archive » error handling
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: error handling [message #63442 is a reply to message #1347] Mon, 10 November 2008 10:12 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
bulrushmower@gmail.com writes:

> Here is my source code. I am using MCTK tool to convert MODIS HDF
> data. The data processing is just converting the projection. It always
> runst for nearly a hundred data, then stops, saying 'can not attach
> the grid file...etc'. I would like to have the code right down the
> error in the log file, and then continue the loop for the next data.

Well, if this code runs for "nearly a hundred times",
and as you appear to be opening a logical unit number
with your ENVI_BATCH_INIT command, but not closing it--
I would say you are probably just running out of logical
unit numbers, since there are only "about 100" available.

I'm not sure CATCH error handling will help in this
case. Any chance you can close the logical unit
number ENVI opens?

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plot: idl_guide4 UK_NCAS-Meteo-Library
Next Topic: Re: Empty arrays?

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

Current Time: Fri Oct 10 21:56:37 PDT 2025

Total time taken to generate the page: 0.16352 seconds