<div dir="ltr"><span style="font-size:14px">Hi everyone,</span><div style="font-size:14px"><br></div><div style="font-size:14px">I&#39;m trying to create a pie-chart, but getting the following error message:</div><div style="font-size:14px"><br></div><div style="font-size:14px"><p style="letter-spacing:0pt"><span lang="EN-US" style="letter-spacing:0pt">-- error message ----------------------------------------------------------------------------</span></p><p>fatal:fspan: number of elements parameter is less-than-or-equal-to one, can&#39;t continue</p><p>fatal:[&quot;Execute.c&quot;:8575]:Execute: Error occurred at or near line 4026 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl</p><p><br></p><p><span lang="EN-US"></span></p><p>fatal:[&quot;Execute.c&quot;:8575]:Execute: Error occurred at or near line 43 in file 2_2.ncl</p><p>------------------------------------------------------------------------------------------------------</p><p>I think, this error occurred because of percent value less then 0.5</p><p>Below is my script</p></div><div style="font-size:14px">-- coding -----------------------------------------------------------------------------------------</div><div style="font-size:14px"><p style="letter-spacing:0pt"><span style="letter-spacing:0pt">;*********************************************************</span><br></p><p style="letter-spacing:0pt"><span lang="EN-US" style="letter-spacing:0pt">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</span></p><p style="letter-spacing:0pt"><span lang="EN-US" style="letter-spacing:0pt">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</span></p><p style="letter-spacing:0pt"><span lang="EN-US" style="letter-spacing:0pt">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;</span></p><p style="letter-spacing:0pt"><span lang="EN-US" style="letter-spacing:0pt">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl&quot;</span></p><p style="letter-spacing:0pt"><span lang="EN-US" style="letter-spacing:0pt">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl&quot;</span></p><p style="letter-spacing:0pt"><span lang="EN-US" style="letter-spacing:0pt">;*********************************************************</span></p><p>begin</p><p><br></p><p><br></p><p>  input = &quot;/home/yjh/AERONET/Data/EMAC_modeling_data/&quot;</p><p>  output = &quot;/home/yjh/AERONET/Coding/EMAC_modeling/pie_chart/&quot;</p><p><br></p><p>;****************** pie chart ***********************************************************</p><p><br></p><p>  pcRes = True</p><p>  pcRes@gsnDraw = False</p><p>  pcRes@gsnFrame = False</p><p><br></p><p>  name  = (/ &quot;BAOT&quot;, &quot;DAOT&quot;, &quot;HAOT&quot;, &quot;OAOT&quot;, &quot;SAOT&quot;, &quot;WAOT&quot; /)</p><p>  color = (/ &quot;red&quot;, &quot;green&quot;, &quot;orange&quot;, &quot;yellow&quot;,&quot;magenta&quot;,&quot;blue&quot;/)</p><p><br></p><p>  wks   = gsn_open_wks(&quot;ps&quot;,output+&quot;result/Baengnyeong_pie_chart&quot;)</p><p>  panel = new (4, &quot;graphic&quot;)</p><p><br></p><p>;************************************************</p><p>; create panel using &quot;block&quot; labels [user specified]</p><p>;************************************************</p><p><br></p><p>  pcRes@pcLabelType     = &quot;block&quot;</p><p><br></p><p>  pcRes@tiMainString    = &quot;Winter&quot;</p><p>  percent  = (/0.6, 8.0, 68.7, 1.4, 1.7, 19.6/)</p><p>  panel(0) = pie_chart(wks, percent, name, color, pcRes)</p><p><br></p><p>  pcRes@tiMainString    = &quot;Spring&quot;</p><p>  percent  = (/0.9, 17.6, 53.8, 2.8, 0.7, 24.2/)</p><p>  panel(1) = pie_chart(wks, percent, name, color, pcRes)</p><p><br></p><p>  pcRes@tiMainString    = &quot;Summer&quot;</p><p>  percent  = (/1.2, 8.3, 66.8, 3.6, 0.4, 19.7/)</p><p>  panel(2) = pie_chart(wks, percent, name, color, pcRes)</p><p><br></p><p>  pcRes@tiMainString    = &quot;Autumn&quot;</p><p>  percent  = (/1.1, 14.9, 55.6, 2.7, 1.2, 24.5/)</p><p>  panel(3) = pie_chart(wks, percent, name, color, pcRes)</p><p><br></p><p>  resP                  = True                    ; resources for panel plot</p><p><br></p><p>  resP@gsnDraw          = True  ;False</p><p>  resP@gsnFrame         = True  ;False</p><p>  resP@gsnMaximize      = True</p><p>  resP@gsnPaperMargin   = 0.1</p><p><br></p><p>  resP@txString         = &quot;EMAC data [2000-2010] ratio : Baengnyeong [38.0N,124.6E]&quot;</p><p><br></p><p>  gsn_panel(wks,panel,(/2,2/),resP)               ; now draw as one plot</p><p>;**************************************************************************************************</p><p>end</p><p>**********************************************************************************************************<br></p><p><br></p><p>Thanks for any help you could give me. </p><p><br></p><p>-----------------------------------------------------------------------</p><p>JuHee Yi  |  Master&#39;s Course</p><p>Chungnam National University<br></p><p>Daejeon, South Korea</p><p>-----------------------------------------------------------------------</p></div></div>