[ncl-talk] Exception handling
Gustavo Correa
gus at ldeo.columbia.edu
Sat Jun 2 22:22:40 MDT 2018
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
More information about the ncl-talk
mailing list