[ncl-talk] (no subject)

Mary Haley haley at ucar.edu
Mon Aug 17 16:04:48 MDT 2015


Saurabh,

Without knowing the line number or being able to run your code, it is hard
to help you.

Another way you can debug the code is to comment out the "begin" and "end"
statements (if any) of the main code, and then run the script with the -x
option:

   ncl -x 11.ncl

This will cause every line to be echoed to the screen as it is executed.
This should help pinpoint the location of the error.

Also you can get more information about NCL's error messages here:

http://www.ncl.ucar.edu/Document/Language/error_messages.shtml

​--Mary
​

On Mon, Aug 17, 2015 at 11:02 AM, Saurabh Singh <saurabhsingh123op at gmail.com
> wrote:

> dear sir please look at the code, i feel its very lengthy and can be made
> more efficeient. i attached the code in the attachment.
>
> On Mon, Aug 17, 2015 at 11:51 PM, Rick Brownrigg <brownrig at ucar.edu>
> wrote:
>
>> Hi,
>>
>> There's really no information here to go by.  Are there line numbers
>> associated with the warnings?  If not, you can place print statements at
>> strategic points to try and pin-point where the problems occur.  If the
>> script used to work, there must be something different about your data.
>> Print statements will help you find out.
>>
>> Good luck...
>> Rick
>>
>>
>> On Mon, Aug 17, 2015 at 3:36 AM, Saurabh Singh <
>> saurabhsingh123op at gmail.com> wrote:
>>
>>>
>>> Dear Mam/Sir
>>>
>>>
>>> *NCL VERSION -6.3.0*
>>>
>>> *OS : ubuntu(Debian)*
>>>
>>> i wrote a code to extract 20 variables from wrf files, my wrf files are
>>> generated every 3 hours and i am extracting it every yearly.
>>>
>>> however now when i am trying to extract ncl gives various errors such as
>>>
>>> warning:Argument 2 of the current function or procedure was coerced to
>>> the appropriate type and thus will not change if the function or procedure
>>> modifies its value
>>> warning:Argument 2 of the current function or procedure was coerced to
>>> the appropriate type and thus will not change if the function or procedure
>>> modifies its value
>>> warning:Argument 2 of the current function or procedure was coerced to
>>> the appropriate type and thus will not change if the function or procedure
>>> modifies its value
>>> warning:Argument 2 of the current function or procedure was coerced to
>>> the appropriate type and thus will not change if the function or procedure
>>> modifies its value
>>>
>>> i ttriec nxl -x 11.ncl but i get these same error. never the less this
>>> script not only takes a lot of time to run but also is not giving any
>>> outputs. i used to get the output earlier with this script but now there is
>>> a problem.
>>>
>>> kindly let me know how can i make this script fast and efficient. the
>>> script is attached in the mail attachment.
>>> --
>>> With regards
>>> Saurabh Kumar singh
>>>
>>>  *P** : * *Please consider the environment before printing this e-mail*
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>
>
> --
> With regards
> Saurabh Kumar singh
>
>  *P** : * *Please consider the environment before printing this e-mail*
>
>
>
>
> _______________________________________________
> 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/20150817/2769922b/attachment.html 


More information about the ncl-talk mailing list