[ncl-talk] Exception handling

Dennis Shea shea at ucar.edu
Mon Jun 4 09:22:21 MDT 2018


THX to Gus.

===
His response is the correct one.
===
To be explicit, NCL does not have 'exception handling.'

D

On Sat, Jun 2, 2018 at 10:22 PM, Gustavo Correa <gus at ldeo.columbia.edu>
wrote:

> Hi Fangda
>
> You could use the "isfilevar" function to check if the variable is in the
> file,
> before you try to read it.
>
> https://www.ncl.ucar.edu/Document/Functions/Built-in/isfilevar.shtml
>
> Strictly speaking, this is not exception handling,
> but prevents the exception from happening.
>
> I hope this helps,
> Gus Correa
>
> > On Jun 2, 2018, at 22:31, Kunal Bali <kunal.bali9 at gmail.com> wrote:
> >
> > Could you please provide the script so that everyone can understand the
> exact error.
> >
> >
> > From: Fangda
> > Sent: Sunday 3 June 2018 07:57
> > To: NCL
> > Subject: [ncl-talk] Exception handling
> >
> > Hello Everyone,
> >
> > When I read variable in file I meet an error because it is not in file,
> so Is there any expection handling syntax in NCL to deal with this problem?
> >
> > Fangda
> >
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk at ucar.edu
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180604/8403b06b/attachment.html>


More information about the ncl-talk mailing list