[ncl-talk] gsn_polygon_ndc

Mary Haley haley at ucar.edu
Wed May 20 09:15:16 MDT 2015


In general, you no longer need to load scripts at the top of your NCL file
with:

​load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
​load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

However, if you do something like this:

​load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

then you will get an error about an undefined function or procedure,
because you are now explicitly loading a script that depends on another
script for some of its functions.

Make sure the load commands at the top of your script are correct, and also
make sure that if you have two versions of NCL installed on your system,
that you have NCARG_ROOT pointing to the correct one.

The script that Karin provided earlier should help you test this issue.

--Mary


On Mon, May 18, 2015 at 11:29 PM, gibies george <gibies at tropmet.res.in>
wrote:

> Dear NCL users,
>
> Is there any fix for the following warning message on NCL 6.3.0.
>
> fatal:syntax error: line 631 in file
> /gpfs1/home/Libs/GNU/NCL/ncl_ncarg-6.3.0/lib/ncarg/nclscripts/utilities.ncl
> before or near ; Draw box.
>
>     gsn_polygon_ndc(wks,xbox+xpos(i),ybox+ypos(i),gnres) ; Draw box.
> ^
>
> fatal:syntax error: possibly an undefined procedure
> fatal:syntax error: line 634 in file
> /gpfs1/home/Libs/GNU/NCL/ncl_ncarg-6.3.0/lib/ncarg/nclscripts/utilities.ncl
> before or near \n
>     gsn_polyline_ndc(wks,xbox+xpos(i),ybox+ypos(i),lnres)
> ----------------------------------------------------------^
>
> fatal:syntax error: possibly an undefined procedure
> fatal:syntax error: line 638 in file
> /gpfs1/home/Libs/GNU/NCL/ncl_ncarg-6.3.0/lib/ncarg/nclscripts/utilities.ncl
> before or near \n
>
> gsn_text_ndc(wks,label_strings(i),font_space+xpos(i),ypos(i)+font_space,txres)
>
> -------------------------------------------------------------------------------------^
>
> fatal:syntax error: possibly an undefined procedure
> fatal:Syntax Error in block, block not executed
> fatal:error at line 645 in file
> /gpfs1/home/Libs/GNU/NCL/ncl_ncarg-6.3.0/lib/ncarg/nclscripts/utilities.ncl
>
>
>
> *Gibies George,**Senior Research Fellow (**CSIR)**,*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Climate and Global Modelling Division,Indian Institute of Tropical
> Meteorology,Dr. Homi Bhabha Road, NCL (P. O.), Pashan,Pune 411008,
> India.Office Teleph  : +912025904423 <%2B912025904423>Office mail      :
> gibies at tropmet.res.in <gibies at tropmet.res.in>________________Vettikuzhiyil
> HouseEzhakkaranadu SouthPuthencruz-682308, Kochi, India.Mobile number :
>  +919028523910 <%2B919028523910>, +919420407392 <%2B919420407392>,
> +919881707796 <%2B919881707796>Personal mail : gibiesgeorge at gmail.com
> <gibiesgeorge at gmail.com>http://sites.google.com/site/gibiesge/
> <http://sites.google.com/site/gibiesge/>*
>
>
> *_______________________________________________________"Please do not
> print this e-mail unless you really need. Because every 3000 pages cost a
> tree. *
> *Save Trees, Save mother Earth." *
>
>
> _______________________________________________
> ncl-talk mailing list
> 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/20150520/3c911de5/attachment.html 


More information about the ncl-talk mailing list