<div dir="ltr"><div class="gmail_default" style="font-size:small;display:inline">​Hi ​</div>Petroula,<br><br>The  error:<br><br><font face="monospace, monospace">fatal:Cannot create triangular mesh: supply additional resources or build with Triangle package<br></font><br>means you have a version of NCL that was built without the &quot;Triangle&quot; package option enabled<div class="gmail_default" style="font-size:small;display:inline">​. Triangle is a separate package that you have to download if you build NCL from source code, and is required</div><div class="gmail_default" style="font-size:small;display:inline"> for plotting data that is unstructured.</div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">If you download one of our precompiled binaries from the ESG, they should all have the Triangle package built in.</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">If you built NCL from source code, then you will need to get the Triangle package, put it in the appropriate location in the NCL source tree, and recompile NCL. </div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">Instructions for getting Triangle and where to put it can be found here:</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline"><a href="http://www.ncl.ucar.edu/Download/build_from_src.shtml#Triangle">http://www.ncl.ucar.edu/Download/build_from_src.shtml#Triangle</a></div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">Before you recompile NCL, make sure that your $NCARG/config/Site.local file does *not* have the line:</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div>







<font face="monospace, monospace">#define BuildTRIANGLE 0</font><div><br></div><div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 10, 2017 at 5:16 AM, Petroula Louka <span dir="ltr">&lt;<a href="mailto:loukapetr@yahoo.gr" target="_blank">loukapetr@yahoo.gr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:verdana,helvetica,sans-serif;font-size:16px"><div id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82512"><span><br></span></div><div id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82628">Dear sir/madam</div><div id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82629"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82630"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82631">I
 am new to the ncl graphics and I&#39;m trying to plot a field from the 
ascii file attached. As you may see it is a 3-column file 
(lon,lat,indicator). I have used the file plotAscii.ncl given below to 
create the plot and receive the following error:</div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82632"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82633"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82634">-----------------------</div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82635">fatal:Cannot create triangular mesh: supply additional resources or build with Triangle package<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82636">fatal:ContourPlotDraw: draw error<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82637">fatal:ContourPlotDraw: draw error<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82638">fatal:PlotManagerDraw: error in plot draw<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82639">fatal:_NhlPlotManagerDraw: Draw error<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82640"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82641">-----------------------<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82642"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82643"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82644"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82645">I only get a png image with the map of the corresponding area in low res (as it&#39;s the default).<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82646"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82647">Could you please help me with the script?</div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82648">Also, if I want to use highres for the coeastlines in which directory should I add the GSHHS file?</div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82649"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82650"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82651">The version of ncl installed (already built from ncl homepage) is 6.3.0 .<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82652"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82653"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82654"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82655">Thank you for any help.</div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82656"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82657"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82658">Best regards,<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82659"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82660">Petroula<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82661"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82662"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82663"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82664"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82665"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82666">-----------------------</div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82667">plotAscii.ncl <br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82668"></div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82669">-----------------------</div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82670"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82671"></div>load &quot;~/WRF/LIBRARIES/ncl_ncarg-6.<wbr>3.0/lib/ncarg/nclscripts/csm/<wbr>gsn_code.ncl&quot;<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82672">load &quot;~/WRF/LIBRARIES/ncl_ncarg-6.<wbr>3.0/lib/ncarg/nclscripts/csm/<wbr>gsn_csm.ncl&quot;<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82673"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82674">begin<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82675"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82676">  fname = &quot;~/FlyingRoute/OUTPUT/storm_<a href="tel:(201)%20407-1412" value="+12014071412" target="_blank">20<wbr>14071412</a>_12.dat&quot;<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82677">  n_col = numAsciiCol(fname)<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82678">  n_var = n_col<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82679">  n_pt  = numAsciiRow(fname)<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82680">  dataf  = asciiread(fname,(/n_pt,n_var/)<wbr>,&quot;float&quot;)<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82681">;---read longitude<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82682">  lon = dataf (:,0)<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82683">;---read latitude<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82684">  lat = dataf (:,1)<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82685">;---read data for presence of convective cloud<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82686">  storm = dataf (:,2)<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82687">;---define the workstation (plot type and name)<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82688">  wks = gsn_open_wks(&quot;png&quot;,&quot;plot_<wbr>field&quot;)<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82689">;--set resources<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82690">  res                     = True<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82691">  res@sfXArray            = lon<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82692">  res@sfYArray            = lat<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82693">  res@cnFillOn            = True        ; Turn on contour fill.<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82694">  res@cnLinesOn           = False       ; Turn off contour lines<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82695">;-- First create just a contour plot in order to retrieve<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82696">; --the start/end limits of the actual location of the data.<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82697">; --Don&#39;t draw the contour plot.<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82698">  res@gsnDraw  = False<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82699">  res@gsnFrame = False<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82700">  contour = gsn_csm_contour(wks,storm,res)<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82701">;-- gsnDraw and gsnFrame are on for the next plot.<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82702">  res@gsnDraw  = True<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82703">  res@gsnFrame = True<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82704">;-- Retrieve the actual start and end limits of the data<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82705">  getvalues contour@data<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82706">    &quot;sfXCActualStartF&quot; : xs<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82707">    &quot;sfXCActualEndF&quot;   : xe<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82708">    &quot;sfYCActualStartF&quot; : ys<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82709">    &quot;sfYCActualEndF&quot;   : ye<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82710">  end getvalues<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82711">  <br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82712">  res@mpLimitMode           = &quot;LatLon&quot;<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82713">  res@mpMinLonF             = xs<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82714">  res@mpMaxLonF             = xe<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82715">  res@mpMinLatF             = ys<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82716">  res@mpMaxLatF             = ye<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82717"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82718">  res@tiMainString = &quot;Areas of convective cloud&quot;<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82719">  res@pmTickMarkDisplayMode = &quot;Always&quot;        ; Turn on map tickmarks.<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82720"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82721">   plot = gsn_csm_contour_map(wks,storm,<wbr>res)<br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82722"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82723"><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82724">end</div><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82725"><div dir="ltr" id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82800"><br id="m_5074819185678323277yui_3_16_0_ym19_1_1489139220873_82726"></div></div></div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>