<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1489139220873_82512"><span><br></span></div><div id="yui_3_16_0_ym19_1_1489139220873_82628">Dear sir/madam</div><div id="yui_3_16_0_ym19_1_1489139220873_82629"><br id="yui_3_16_0_ym19_1_1489139220873_82630"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82631">I
 am new to the ncl graphics and I'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="yui_3_16_0_ym19_1_1489139220873_82632"><br id="yui_3_16_0_ym19_1_1489139220873_82633"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82634">-----------------------</div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82635">fatal:Cannot create triangular mesh: supply additional resources or build with Triangle package<br id="yui_3_16_0_ym19_1_1489139220873_82636">fatal:ContourPlotDraw: draw error<br id="yui_3_16_0_ym19_1_1489139220873_82637">fatal:ContourPlotDraw: draw error<br id="yui_3_16_0_ym19_1_1489139220873_82638">fatal:PlotManagerDraw: error in plot draw<br id="yui_3_16_0_ym19_1_1489139220873_82639">fatal:_NhlPlotManagerDraw: Draw error<br id="yui_3_16_0_ym19_1_1489139220873_82640"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82641">-----------------------<br id="yui_3_16_0_ym19_1_1489139220873_82642"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82643"><br id="yui_3_16_0_ym19_1_1489139220873_82644"></div><div dir="ltr" id="yui_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's the default).<br id="yui_3_16_0_ym19_1_1489139220873_82646"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82647">Could you please help me with the script?</div><div dir="ltr" id="yui_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="yui_3_16_0_ym19_1_1489139220873_82649"><br id="yui_3_16_0_ym19_1_1489139220873_82650"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82651">The version of ncl installed (already built from ncl homepage) is 6.3.0 .<br id="yui_3_16_0_ym19_1_1489139220873_82652"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82653"><br id="yui_3_16_0_ym19_1_1489139220873_82654"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82655">Thank you for any help.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82656"><br id="yui_3_16_0_ym19_1_1489139220873_82657"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82658">Best regards,<br id="yui_3_16_0_ym19_1_1489139220873_82659"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82660">Petroula<br id="yui_3_16_0_ym19_1_1489139220873_82661"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82662"><br id="yui_3_16_0_ym19_1_1489139220873_82663"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82664"><br id="yui_3_16_0_ym19_1_1489139220873_82665"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82666">-----------------------</div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82667">plotAscii.ncl <br id="yui_3_16_0_ym19_1_1489139220873_82668"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82669">-----------------------</div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82670"><br id="yui_3_16_0_ym19_1_1489139220873_82671"></div>load "~/WRF/LIBRARIES/ncl_ncarg-6.3.0/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br id="yui_3_16_0_ym19_1_1489139220873_82672">load "~/WRF/LIBRARIES/ncl_ncarg-6.3.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br id="yui_3_16_0_ym19_1_1489139220873_82673"><br id="yui_3_16_0_ym19_1_1489139220873_82674">begin<br id="yui_3_16_0_ym19_1_1489139220873_82675"><br id="yui_3_16_0_ym19_1_1489139220873_82676">&nbsp; fname = "~/FlyingRoute/OUTPUT/storm_2014071412_12.dat"<br id="yui_3_16_0_ym19_1_1489139220873_82677">&nbsp; n_col = numAsciiCol(fname)<br id="yui_3_16_0_ym19_1_1489139220873_82678">&nbsp; n_var = n_col<br id="yui_3_16_0_ym19_1_1489139220873_82679">&nbsp; n_pt&nbsp; = numAsciiRow(fname)<br id="yui_3_16_0_ym19_1_1489139220873_82680">&nbsp; dataf&nbsp; = asciiread(fname,(/n_pt,n_var/),"float")<br id="yui_3_16_0_ym19_1_1489139220873_82681">;---read longitude<br id="yui_3_16_0_ym19_1_1489139220873_82682">&nbsp; lon = dataf (:,0)<br id="yui_3_16_0_ym19_1_1489139220873_82683">;---read latitude<br id="yui_3_16_0_ym19_1_1489139220873_82684">&nbsp; lat = dataf (:,1)<br id="yui_3_16_0_ym19_1_1489139220873_82685">;---read data for presence of convective cloud<br id="yui_3_16_0_ym19_1_1489139220873_82686">&nbsp; storm = dataf (:,2)<br id="yui_3_16_0_ym19_1_1489139220873_82687">;---define the workstation (plot type and name)<br id="yui_3_16_0_ym19_1_1489139220873_82688">&nbsp; wks = gsn_open_wks("png","plot_field")<br id="yui_3_16_0_ym19_1_1489139220873_82689">;--set resources<br id="yui_3_16_0_ym19_1_1489139220873_82690">&nbsp; res&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br id="yui_3_16_0_ym19_1_1489139220873_82691">&nbsp; res@sfXArray&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = lon<br id="yui_3_16_0_ym19_1_1489139220873_82692">&nbsp; res@sfYArray&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = lat<br id="yui_3_16_0_ym19_1_1489139220873_82693">&nbsp; res@cnFillOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; Turn on contour fill.<br id="yui_3_16_0_ym19_1_1489139220873_82694">&nbsp; res@cnLinesOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; Turn off contour lines<br id="yui_3_16_0_ym19_1_1489139220873_82695">;-- First create just a contour plot in order to retrieve<br id="yui_3_16_0_ym19_1_1489139220873_82696">; --the start/end limits of the actual location of the data.<br id="yui_3_16_0_ym19_1_1489139220873_82697">; --Don't draw the contour plot.<br id="yui_3_16_0_ym19_1_1489139220873_82698">&nbsp; res@gsnDraw&nbsp; = False<br id="yui_3_16_0_ym19_1_1489139220873_82699">&nbsp; res@gsnFrame = False<br id="yui_3_16_0_ym19_1_1489139220873_82700">&nbsp; contour = gsn_csm_contour(wks,storm,res)<br id="yui_3_16_0_ym19_1_1489139220873_82701">;-- gsnDraw and gsnFrame are on for the next plot.<br id="yui_3_16_0_ym19_1_1489139220873_82702">&nbsp; res@gsnDraw&nbsp; = True<br id="yui_3_16_0_ym19_1_1489139220873_82703">&nbsp; res@gsnFrame = True<br id="yui_3_16_0_ym19_1_1489139220873_82704">;-- Retrieve the actual start and end limits of the data<br id="yui_3_16_0_ym19_1_1489139220873_82705">&nbsp; getvalues contour@data<br id="yui_3_16_0_ym19_1_1489139220873_82706">&nbsp;&nbsp;&nbsp; "sfXCActualStartF" : xs<br id="yui_3_16_0_ym19_1_1489139220873_82707">&nbsp;&nbsp;&nbsp; "sfXCActualEndF"&nbsp;&nbsp; : xe<br id="yui_3_16_0_ym19_1_1489139220873_82708">&nbsp;&nbsp;&nbsp; "sfYCActualStartF" : ys<br id="yui_3_16_0_ym19_1_1489139220873_82709">&nbsp;&nbsp;&nbsp; "sfYCActualEndF"&nbsp;&nbsp; : ye<br id="yui_3_16_0_ym19_1_1489139220873_82710">&nbsp; end getvalues<br id="yui_3_16_0_ym19_1_1489139220873_82711">&nbsp; <br id="yui_3_16_0_ym19_1_1489139220873_82712">&nbsp; res@mpLimitMode&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = "LatLon"<br id="yui_3_16_0_ym19_1_1489139220873_82713">&nbsp; res@mpMinLonF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = xs<br id="yui_3_16_0_ym19_1_1489139220873_82714">&nbsp; res@mpMaxLonF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = xe<br id="yui_3_16_0_ym19_1_1489139220873_82715">&nbsp; res@mpMinLatF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ys<br id="yui_3_16_0_ym19_1_1489139220873_82716">&nbsp; res@mpMaxLatF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ye<br id="yui_3_16_0_ym19_1_1489139220873_82717"><br id="yui_3_16_0_ym19_1_1489139220873_82718">&nbsp; res@tiMainString = "Areas of convective cloud"<br id="yui_3_16_0_ym19_1_1489139220873_82719">&nbsp; res@pmTickMarkDisplayMode = "Always"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; Turn on map tickmarks.<br id="yui_3_16_0_ym19_1_1489139220873_82720"><br id="yui_3_16_0_ym19_1_1489139220873_82721">&nbsp;&nbsp; plot = gsn_csm_contour_map(wks,storm,res)<br id="yui_3_16_0_ym19_1_1489139220873_82722"><br id="yui_3_16_0_ym19_1_1489139220873_82723"><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82724">end</div><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82725"><div dir="ltr" id="yui_3_16_0_ym19_1_1489139220873_82800"><br id="yui_3_16_0_ym19_1_1489139220873_82726"></div></div></div></body></html>