[ncl-talk] gsn_polygon_ndc

Karin Meier-Fleischer meier-fleischer at dkrz.de
Tue May 19 02:18:32 MDT 2015


Hi,

I don't have any trouble using 6.3.0 and polygons. Try the example from 
the web page:
http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_polygon_ndc.shtml

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
begin
   wks = gsn_open_wks("x11","gsn_polygon_ndc")    ; Open a workstation.

   cirx = (/ .415, .326, .225, .159, .159, .225, .326, .415, .450/)
   ciry = (/ .846, .898, .880, .801, .699, .620, .602, .654, .750/)

   gsres = True             ; Indicate you want to set some resources.
   gsres at gsFillColor = 4    ; Change fill color.

   gsn_polygon_ndc(wks,cirx,ciry,gsres)  ; Draw a filled polygon.
   frame(wks)                            ; Advance the frame.
end

Bye,
Karin

Am 19.05.15 um 07:29 schrieb gibies george:
> 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
> Office mail      : gibies at tropmet.res.in <mailto:gibies at tropmet.res.in>
>
> ________________
>
> Vettikuzhiyil House
> Ezhakkaranadu South
> Puthencruz-682308, Kochi, India.
> Mobile number :  +919028523910, +919420407392, +919881707796
> Personal mail : gibiesgeorge at gmail.com <mailto:gibiesgeorge at gmail.com>
> http://sites.google.com/site/gibiesge/*
> *
> *
> **
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150519/e4674a21/attachment.html 


More information about the ncl-talk mailing list