Re: how to spot where the warning is coming from

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 20 2014 - 14:01:32 MDT

Hi Basit,

One thing I recommend to users is the "-x" option, which echoes every line of the NCL script as it's being executed:

ncl -x myscript.ncl

However, in order for this to be effective, you have to temporarily comment out the "begin" and "end" calls in your main code, if any. If you don't, NCL treats this as one big block and echoes the whole thing at once after it's finished.

Generally, and I've never understood this, fatal errors should cause the script to exit at that point. However, I don't think we are consistent with this, and some fatal errors will not truly be fatal. In some senses, this is actually better, because there have been cases where I was glad the code kept going. :-)

--Mary

On Mar 18, 2014, at 3:19 AM, BasitAli Khan <BasitAli.Khan@kaust.edu.sa> wrote:

> Hi folks,
>
> If there is some fatal error in the ncl script we always get the line number of the script where the error is coming from. However, in case of warnings especially when they are coming from 'resources' section, line number is not mentioned with the warning. In case of small codes it is easy to spot and correct warnings. However, with large sprits its quite time taking exercise. I am just wondering if there is any way to spot line numbers of the script where the warnings are coming from?
>
> Best regards,
> b:)
> ----
> Basit A. Khan, Ph.D.
> Postdoctoral Research Fellow
> Division of Physical Sciences & Engineering
> Office# 3204, Level 3, Building 1,
> King Abdullah University of Science & Technology
> 4700 King Abdullah Blvd, Box 2753, Thuwal 23955 –6900,
> Kingdom of Saudi Arabia.
>
> Office: +966(0)2 808 0276, Mobile: +966(0)5 0860 3617
> E-mail: basitali.khan@kaust.edu.sa
> Skype name: basit.a.khan
>
>
> This message and its contents including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 20 14:01:45 2014

This archive was generated by hypermail 2.1.8 : Fri Mar 21 2014 - 15:49:21 MDT