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 #63441 is a reply to message #1347] Mon, 10 November 2008 11:06 Go to previous messageGo to previous message
bulrushmower is currently offline  bulrushmower
Messages: 19
Registered: February 2008
Junior Member
On Nov 10, 12:12 pm, David Fanning <n...@dfanning.com> wrote:
> bulrushmo...@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.")

It happened when even I did not set up that Envi_batch_unit, and write
a log file.
Is the code about error handling is in right track? Am I missing
something?

Thanks
[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: Thu Oct 16 23:41:38 PDT 2025

Total time taken to generate the page: 1.67964 seconds