<div dir="ltr"><div><div><div>Amit, <br></div>I suspect that your NCL installation has something wrong. I was able to plot the data easily by using your script (see attachments). <br></div>Please try to resolve your local installation problems since the script is perfectly working.<br><br></div>P.S. I assumend that the 3 text files that you sent were part of the same file that you splitted because of the attachment dimension, so I merged them back together before plotting.<br><br><img style="margin-right: 0px;" alt="Immagine incorporata 1" src="cid:ii_1570e047f51aa580"><br><br><div><br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><i style="color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><font color="#000099" size="2"><b>Guido Cioni</b></font></i></div><div dir="ltr"><i style="color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><font color="#000099" size="1"><b><br></b></font></i></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><i><font size="1">Atmosphere in the Earth System<br></font></i><i><font size="1">Clouds and Convection <br></font></i><i><font size="1">Hans Ertel Center for Weather Research</font></i></blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><i><font size="1"><br></font></i><b><font size="1">Max Planck Institute for Meteorology <br></font></b><b><i><font size="1">ZMAW 405<br></font></i></b><b><i><font size="1">+494041173466<br></font></i></b><font size="1">Bundesstr. 53<br></font><span style="line-height:20.7999992370605px"><font size="1">D-20146 Hamburg</font></span></blockquote></div></div></div></div></div></div>
<br><div class="gmail_quote">2016-09-09 5:54 GMT+02:00 Amit Kumar <span dir="ltr">&lt;<a href="mailto:amitkumar.777@hotmail.com" target="_blank">amitkumar.777@hotmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">

<div style="font-size:10pt;color:#2672ec;background-color:#ffffff;font-family:Arial,Helvetica,sans-serif">
<p></p>
<div>
<div>
<div>
<div style="background-color:white"><font face="Arial,Helvetica,sans-serif" color="#2672EC" size="2"><span style="font-size:10pt;background-color:white">
<div style="margin-top:0;margin-bottom:0">Hi All,</div>
<div style="margin-top:0;margin-bottom:0"><br>
</div>
<div style="margin-top:0;margin-bottom:0">The text file is attached here along with script. Please suggest what to do next.</div>
<div style="margin-top:0;margin-bottom:0"><br>
</div>
<div style="margin-top:0;margin-bottom:0">Regards</div>
<div style="margin-top:0;margin-bottom:0">Amit<br>
</div>
</span></font></div>
</div>
</div>
</div>
<span>
<div></div>
</span><br>
<p></p>
</div>
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Guido Cioni &lt;<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>&gt;<br>
<b>Sent:</b> Wednesday, September 7, 2016 6:16:54 PM<div><div class="h5"><br>
<b>To:</b> Amit Kumar<br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> Re: [ncl-talk] Issue with ploting of irregular txt/nc file</div></div></font>
<div> </div>
</div><div><div class="h5">
<div>Post the text file that you are using here, if is not too big. Otherwise use the FTP and I will take a look
<div><br>
</div>
<div><a href="http://www.ncl.ucar.edu/report_bug.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>report_bug.shtml</a><br>
<div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
Guido Cioni</div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://guidocioni.altervista.org" target="_blank">http://guidocioni.altervista.<wbr>org</a> </div>
</div>
<br>
<div>
<blockquote type="cite">
<div>On 07 Sep 2016, at 12:34, Amit Kumar &lt;<a href="mailto:amitkumar.777@hotmail.com" target="_blank">amitkumar.777@hotmail.com</a>&gt; wrote:</div>
<br>
<div>
<div style="font-size:10pt;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(38,114,236);background-color:rgb(255,255,255);font-family:Arial,Helvetica,sans-serif">
<div style="margin-top:0px;margin-bottom:0px">Hi All,</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">I performed the test, and i&#39;ve triangle package inbuilt in ncl &amp; I&#39;m using<span> </span><span>NCAR Command Language Version 6.3.0</span>.<br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(75,165,36)">$nm /usr/share/ncarg/bin/ncl | grep triangle</span></div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<p style="margin-top:0px;margin-bottom:0px"></p>
<div><span style="color:rgb(75,165,36)">09609c95 t _cairo_traps_tessellate_<wbr>triangle</span><br>
<span style="color:rgb(75,165,36)">096a6696 t convert_triangles</span><br>
<span style="color:rgb(75,165,36)">0a0aac00 D icostriangles</span><br>
<span style="color:rgb(75,165,36)">09508dbf t isea_triangle_xy</span><br>
<span style="color:rgb(75,165,36)">087d14e2 T maketriangle</span><br>
<span style="color:rgb(75,165,36)">096a67ae T pixman_add_triangles</span><br>
<span style="color:rgb(75,165,36)">096a6723 T pixman_composite_triangles</span><br>
<span style="color:rgb(75,165,36)">087cff93 T printtriangle</span><br>
<span style="color:rgb(75,165,36)">087ed848 T splittriangle</span><br>
<span style="color:rgb(75,165,36)">087df1f9 T testtriangle</span><br>
<span style="color:rgb(75,165,36)">087d1118 T triangledealloc</span><br>
<span style="color:rgb(75,165,36)">087d1406 T triangledeinit</span><br>
<span style="color:rgb(75,165,36)">087de152 T triangleinit</span><br>
<span style="color:rgb(75,165,36)">096a64b3 t triangle_to_trapezoids</span><br>
<span style="color:rgb(75,165,36)">087d115a T triangletraverse</span><br>
</div>
<p style="margin-top:0px;margin-bottom:0px"></p>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">Any other suggestions.</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">Regards</div>
<div style="margin-top:0px;margin-bottom:0px">Amit<br>
</div>
</div>
<hr style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline-block;width:709.515625px">
<span style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important"></span>
<div dir="ltr" style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<font style="font-size:11pt" face="Calibri, sans-serif"><b>From:</b><span> </span>Guido Cioni &lt;<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>&gt;<br>
<b>Sent:</b><span> </span>Wednesday, September 7, 2016 3:26:02 PM<br>
<b>To:</b><span> </span>Amit Kumar<br>
<b>Cc:</b><span> </span><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b><span> </span>Re: [ncl-talk] Issue with ploting of irregular txt/nc file</font>
<div> </div>
</div>
<div style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Amit did you read the discussion that I posted yesterday? 
<div><br>
</div>
<div><a href="http://mailman.ucar.edu/pipermail/ncl-talk/2015-November/004454.html" target="_blank">http://mailman.ucar.edu/<wbr>pipermail/ncl-talk/2015-<wbr>November/004454.html</a></div>
<div><br>
</div>
<div>It appears that you have a version of NCL built without the Triangle package. Follow the instructions on that link to troubleshoot this problem. You have to exclude any other reason before trying to fix the NCL script itself.</div>
<div><br>
<div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
Guido Cioni</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://guidocioni.altervista.org/" target="_blank">http://guidocioni.altervista.<wbr>org</a> </div>
</div>
<br>
<div>
<blockquote type="cite">
<div>On 07 Sep 2016, at 11:29, Amit Kumar &lt;<a href="mailto:amitkumar.777@hotmail.com" target="_blank">amitkumar.777@hotmail.com</a>&gt; wrote:</div>
<br>
<div>
<div style="font-size:10pt;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(38,114,236);background-color:rgb(255,255,255);font-family:Arial,Helvetica,sans-serif">
<p style="margin-top:0px;margin-bottom:0px"><font face="Arial,Helvetica,sans-serif" color="#2672EC" size="2"><span style="font-size:10pt;background-color:white"></span></font></p>
<font face="Arial,Helvetica,sans-serif" color="#2672EC" size="2">
<div style="margin-top:0px;margin-bottom:0px">Hi All,</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">After commenting those lines also I&#39;m getting those errors:</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px"> </div>
<div><font color="red">fatal:Cannot create triangular mesh: supply additional resources or build with Triangle package</font><br>
<font color="red">fatal:ContourPlotDraw: draw error</font><br>
<font color="red">fatal:ContourPlotDraw: draw error</font><br>
<font color="red">fatal:ContourPlotDraw: draw error</font><br>
<font color="red">fatal:PlotManagerDraw: error in plot draw</font><br>
<font color="red">fatal:_NhlPlotManagerDraw: Draw error</font><br>
</div>
<br>
<div style="margin-top:0px;margin-bottom:0px"> </div>
Please suggest what to do now. I&#39;m attaching my data (text file) along with this which will be available after being evaluated by moderator.<br>
<br>
Regards<br>
Amit</font><br>
<p style="margin-top:0px;margin-bottom:0px"></p>
</div>
<hr style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline-block;width:709.515625px">
<span> </span><span style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important"></span><span> </span>
<div dir="ltr" style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<font style="font-size:11pt" face="Calibri, sans-serif"><b>From:</b><span> </span>Guido Cioni &lt;<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>&gt;<br>
<b>Sent:</b><span> </span>Tuesday, September 6, 2016 6:42:14 PM<br>
<b>To:</b><span> </span>Amit Kumar<br>
<b>Cc:</b><span> </span><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b><span> </span>Re: [ncl-talk] Issue with ploting of irregular txt/nc file</font>
<div> </div>
</div>
<div style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Before adding particular resources try with the minimum number needed to plot. I would suggest you to comment the following lines and try again:
<div><br>
</div>
<div><span style="color:rgb(38,114,236);font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">  res@trGridType = &quot;TriangularMesh&quot;</span><br style="color:rgb(38,114,236);font-family:Arial,Helvetica,sans-serif">
<span style="color:rgb(38,114,236);font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">  res@cnRasterSmoothingOn = False </span></div>
<div><span style="color:rgb(38,114,236);font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">  res@mpOutlineOn   = True </span><br style="color:rgb(38,114,236);font-family:Arial,Helvetica,sans-serif">
<div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
Guido Cioni</div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://guidocioni.altervista.org/" target="_blank">http://guidocioni.altervista.<wbr>org</a> </div>
</div>
<br>
<div>
<blockquote type="cite">
<div>On 06 Sep 2016, at 14:25, Amit Kumar &lt;<a href="mailto:amitkumar.777@hotmail.com" target="_blank">amitkumar.777@hotmail.com</a>&gt; wrote:</div>
<br>
<div><span style="color:rgb(38,114,236);font-family:Arial,Helvetica,sans-serif;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline!important"> 
 res@trGridType = &quot;TriangularMesh&quot;</span></div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>

</blockquote></div><br></div>