<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dear Dennis,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div class="gmail_default">ncl -V gave 6.5.0</div><div class="gmail_default">and uname -a gave </div><div class="gmail_default"><br></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><font face="verdana, sans-serif">Linux <a href="http://elnino-vm.coaps.fsu.edu/" target="_blank">elnino-vm.coaps.fsu.edu</a> 4.19.15-300.fc29.x86_64 #1 SMP Mon Jan 14 16:32:35 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux</font><br></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><font face="verdana, sans-serif">I do not use the linux system directly. I connect my laptop to the system through xming or nxclient. Both give the same error. Since you are able to run in your system having 6.5.0 version, I feel the error I get is because of the xming or nxclient problem. The program creates land filled with gray and the entire ocean portion filled with black. The error is:</font></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><font face="verdana, sans-serif"><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:Cannot create triangular mesh: supply additional resources or build with Triangle package</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:ContourPlotDraw: draw error</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:ContourPlotDraw: draw error</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:PlotManagerDraw: error in plot draw</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:_NhlPlotManagerDraw: Draw error</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:Cannot create triangular mesh: supply additional resources or build with Triangle package</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:ContourPlotDraw: draw error</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:ContourPlotDraw: draw error</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:PlotManagerDraw: error in plot draw</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:_NhlPlotManagerDraw: Draw error</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:Cannot create triangular mesh: supply additional resources or build with Triangle package</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:ContourPlotDraw: draw error</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:ContourPlotDraw: draw error</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:ContourPlotDraw: draw error</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:PlotManagerDraw: error in plot draw</div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif">fatal:_NhlPlotManagerDraw: Draw error</div></font></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><font face="verdana, sans-serif">I will be thankful who got a similar problem can help me. </font></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 5, 2019 at 5:25 PM Dennis Shea <<a href="mailto:shea@ucar.edu">shea@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>I used NCL 6.5.0 The oldest version of NCL that I have available is 6.3.0 [4+ years old].</div><div><br></div><div>The script runs on both versions. There is no way to retrofit to an old version.</div><div><br></div><div>%> ncl -V</div><div>%> uname -a</div><div><br></div><div>will provide useful information</div><div><br></div><div>Ypu must post installation questions to the <a href="mailto:ncl-install@ucar.edu" target="_blank">ncl-install@ucar.edu</a> to which you must subscribe. See<br></div><div><br></div><div><a href="http://www.ncl.ucar.edu/Support/email_lists.shtml" target="_blank"><b>http://www.ncl.ucar.edu/Support/email_lists.shtml</b></a><br></div><div><br></div><div>I do not help with installation questions.</div><div><br></div><div>Good luck<b></b><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 4, 2019 at 9:13 PM MM Ali <<a href="mailto:mmali110@gmail.com" target="_blank">mmali110@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hello Dennis,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Thank you very much for your elaborate explanation and particularly for correcting my manuscript. When I ran the edited code, I get the following error:</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div class="gmail_default">fatal:Cannot create triangular mesh: supply additional resources or build with Triangle package</div><div class="gmail_default">fatal:ContourPlotDraw: draw error</div><div class="gmail_default">fatal:ContourPlotDraw: draw error</div><div class="gmail_default">fatal:PlotManagerDraw: error in plot draw</div><div class="gmail_default">fatal:_NhlPlotManagerDraw: Draw error</div><div class="gmail_default">fatal:Cannot create triangular mesh: supply additional resources or build with Triangle package</div><div class="gmail_default">fatal:ContourPlotDraw: draw error</div><div class="gmail_default">fatal:ContourPlotDraw: draw error</div><div class="gmail_default">fatal:PlotManagerDraw: error in plot draw</div><div class="gmail_default">fatal:_NhlPlotManagerDraw: Draw error</div><div class="gmail_default"><br></div><div class="gmail_default">Please suggest the changes in the code.</div><div class="gmail_default"><br></div><div class="gmail_default">Best regards</div><div class="gmail_default">Ali</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 5, 2019 at 5:44 AM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>As ncl-talk always mentions: The 1st rule of data processing is: <b>Look at your data!</b><br></div><div><br></div><div>[1]<br></div><div>The data look like they are sub-sampled from a gridded dataset. Given the distribution of the locations, I would call this a 'ragged-2d-array.' Specifically: each latitude has a different number of points; each longitude has a different number of points. See plots.<br></div><div><br></div><div>[2]</div><div>Due to the ordering of the values on the ascii file, coordinate value syntax [ <b>&</b> ] should not be used. Specifically, the latitude and longitude values are not monotonic which is a requirement for coordinate arrays. <br></div><div><br></div><div>[3] <br></div><div>The the values are between 100E and 70W. For a limited region, I find is easier in this instance to use all positive longitudes [or all negative longitudes]. Hence, I changed a longitude range of 100 to 290. <br></div><div><br></div><div>longitude = <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml" target="_blank"><b>where</b></a>(longitude.lt.0, longitude+360, longitude)<br></div><div><br></div><div>[4] <br></div><div><br></div><div>For graphics, NCL requires ragged arrays to be treated as an array of random locations [eg: station data].<br></div><div><br></div><div> res<b>@</b>sfXArray = longitude ; data values are irregularly spaced <br> res<b>@</b>sfYArray = latitude</div><div><br></div><div>[5] <br></div><div><br></div><div>The <b>gsn_coordinates</b> graphics utility which plot markers at each location requires that the 1d latitude/longitude be attributes to the variable being plotted:</div><div><br></div><div> variable<b><span style="color:rgb(0,0,255)">@</span>lon1d</b> = longitude<br> variable<b><span style="color:rgb(0,0,255)">@</span>lat1d</b> = latitude</div><div><b> <a href="http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_coordinates.shtml" target="_blank">gsn_coordinates</a></b>(wks,contour,variable,mkres) <br></div><div><br></div><div>[6]</div><div><br></div><div>The plots alternate between <a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillMode" target="_blank"><b>cnFillMode</b></a> using the default cnFillMode<code>="AreaFill" and cnFillMode<code>="RasterFill"</code></code></div><div><code><code><br></code></code></div><div><code><code>In this case, I suggest <code>cnFillMode<code>="RasterFill"</code></code></code></code></div><div><code><code><code><code><br></code></code></code></code></div><div><code><code><code><code>[7] For values that span 0.0, color palettes with <a href="http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml" target="_blank"><b>White-in-the-middle</b></a> work best<b><br></b></code></code></code></code></div><div>======</div><div><br></div><div><b>%> ncl</b> MMali.ncl<br></div><div><br></div><div>=====</div><div><br></div><div>Good luck</div><div><br></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 4, 2019 at 10:06 AM Toni Klemm <<a href="mailto:toni-klemm@tamu.edu" target="_blank">toni-klemm@tamu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Ali,<div><br></div><div>I had this problem before. Since you extracted lat and lon data from ASCII, it might be that your data doesn’t have metadata information attached that tells NCL what it is (i.e., latitudes and longitudes). Without that it is just a bunch of numbers for NCL. You can add this metadata by adding this to your code after you extract your latitude and longitude variables:</div><div><br></div><div><div> latitude!0 = "lat"</div><div> latitude&lat = lat</div><div> latitude@long_name = "latitude"</div><div> latitude@units = "degrees_north"</div><div><br></div><div> longitude!0 = "lon"</div><div> longitude&lon = lon</div><div> longitude@long_name = "longitude"</div><div> longitude@units = "degrees_east"</div><div><br></div><div>Hope that helps,</div><div>Toni</div><div><br></div><div><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br></font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><b>Toni Klemm, Ph.D.<br></b>Postdoctoral Research Associate</font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Department of Ecosystem Science and Management</div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">College of Agriculture and Life Sciences</div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Texas A&M University, College Station, TX</div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri">Contributor to the <a href="http://www.eccforum.org" target="_blank">Early Career Climate Forum</a><br><a href="http://www.toni-klemm.de" target="_blank">www.toni-klemm.de</a> | <a href="http://twitter.com/toniklemm" target="_blank">@toniklemm</a></font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br></font></div><div style="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Calibri"><br></font></div></div></div><br class="gmail-m_2267305620973238070gmail-m_-7667743331293677886gmail-m_5495189323187495696gmail-m_5445813295423620469gmail-m_2914112639295245593gmail-m_496204212315323679Apple-interchange-newline"></div><br class="gmail-m_2267305620973238070gmail-m_-7667743331293677886gmail-m_5495189323187495696gmail-m_5445813295423620469gmail-m_2914112639295245593gmail-m_496204212315323679Apple-interchange-newline"></div><br class="gmail-m_2267305620973238070gmail-m_-7667743331293677886gmail-m_5495189323187495696gmail-m_5445813295423620469gmail-m_2914112639295245593gmail-m_496204212315323679Apple-interchange-newline"></div><br class="gmail-m_2267305620973238070gmail-m_-7667743331293677886gmail-m_5495189323187495696gmail-m_5445813295423620469gmail-m_2914112639295245593gmail-m_496204212315323679Apple-interchange-newline"><br class="gmail-m_2267305620973238070gmail-m_-7667743331293677886gmail-m_5495189323187495696gmail-m_5445813295423620469gmail-m_2914112639295245593gmail-m_496204212315323679Apple-interchange-newline">
</div>
<div><br><blockquote type="cite"><div>On Apr 4, 2019, at 2:00 AM, MM Ali <<a href="mailto:mmali110@gmail.com" target="_blank">mmali110@gmail.com</a>> wrote:</div><br class="gmail-m_2267305620973238070gmail-m_-7667743331293677886gmail-m_5495189323187495696gmail-m_5445813295423620469gmail-m_2914112639295245593gmail-m_496204212315323679Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I modified the ce_3.ncl code to read the ascii data. Data and the modified ncl code are attached. The variables in the data are dummy, latitude, longitude, variable, dummy2. I get the following errors</div><div><br></div><div><font face="verdana, sans-serif">(0) check_for_y_lat_coord: Warning: Data either does not contain</font></div><div><font face="verdana, sans-serif">(0) a valid latitude coordinate array or doesn't contain one at all.</font></div><div><font face="verdana, sans-serif">(0) A valid latitude coordinate array should have a 'units'</font></div><div><font face="verdana, sans-serif">(0) attribute equal to one of the following values:</font></div><div><font face="verdana, sans-serif">(0) 'degrees_north' 'degrees-north' 'degree_north' 'degrees north' 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'</font></div><div><font face="verdana, sans-serif">(0) check_for_lon_coord: Warning: Data either does not contain</font></div><div><font face="verdana, sans-serif">(0) a valid longitude coordinate array or doesn't contain one at all.</font></div><div><font face="verdana, sans-serif">(0) A valid longitude coordinate array should have a 'units'</font></div><div><font face="verdana, sans-serif">(0) attribute equal to one of the following values:</font></div><div><font face="verdana, sans-serif">(0) 'degrees_east' 'degrees-east' 'degree_east' 'degrees east' 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE' 'deg east'</font></div><div><font face="verdana, sans-serif">(0) Error: scalar_field: If the input data is 1-dimensional, you must set sfXArray and sfYArray to 1-dimensional arrays of the same length.</font></div><div><span class="gmail_default"><font face="verdana, sans-serif">warning:create: Bad HLU id passed to create, ignoring it </font></span></div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif"><span class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Please help. It would be great if the necessary corrections are made to the code (I am just a few days old for NCL, though 66+ years old!)</span></font></div><div><font face="verdana, sans-serif"><span class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Thanks</span></font></div><div><font face="verdana, sans-serif"><span class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Ali</span><br></font><div dir="ltr" class="gmail-m_2267305620973238070gmail-m_-7667743331293677886gmail-m_5495189323187495696gmail-m_5445813295423620469gmail-m_2914112639295245593gmail-m_496204212315323679gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b>Dr. MM Ali</b></div><div dir="ltr">Formerly:<br></div><div dir="ltr"><div>Scientist G & Group Director</div><div>NRSC/ISRO</div><div>email: <a href="mailto:mmali110@gmail.com" target="_blank">mmali110@gmail.com</a></div><div> <a href="mailto:mmali@coaps.fsu.edu" target="_blank">mmali@coaps.fsu.edu</a></div><div>Mob: +91 9949045110</div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<span id="gmail-m_2267305620973238070gmail-m_-7667743331293677886gmail-m_5495189323187495696gmail-m_5445813295423620469gmail-m_2914112639295245593gmail-m_496204212315323679cid:f_ju2agrrz1"><may.txt></span><span id="gmail-m_2267305620973238070gmail-m_-7667743331293677886gmail-m_5495189323187495696gmail-m_5445813295423620469gmail-m_2914112639295245593gmail-m_496204212315323679cid:f_ju2agkpi0"><ce3.ncl></span>_______________________________________________<br>ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></div></blockquote></div><br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_2267305620973238070gmail-m_-7667743331293677886gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b>Dr. MM Ali</b></div><div dir="ltr">Formerly:<br></div><div dir="ltr"><div>Scientist G & Group Director</div><div>NRSC/ISRO</div><div>email: <a href="mailto:mmali110@gmail.com" target="_blank">mmali110@gmail.com</a></div><div> <a href="mailto:mmali@coaps.fsu.edu" target="_blank">mmali@coaps.fsu.edu</a></div><div>Mob: +91 9949045110</div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b>Dr. MM Ali</b></div><div dir="ltr">Formerly:<br></div><div dir="ltr"><div>Scientist G & Group Director</div><div>NRSC/ISRO</div><div>email: <a href="mailto:mmali110@gmail.com" target="_blank">mmali110@gmail.com</a></div><div> <a href="mailto:mmali@coaps.fsu.edu" target="_blank">mmali@coaps.fsu.edu</a></div><div>Mob: +91 9949045110</div></div></div></div></div></div></div></div></div></div></div>