<div dir="ltr">Hi Amit,<div>Did you try adding the trGridType resource to your script and setting it to TriangularMesh? That warning message is telling you what is likely wrong. You can examine your 2-dimensional coordinates yourself to see if anything is out of range by using printMinMax, and you can use ismissing to check if any of your coordinates are missing like this:</div><div>if (any(ismissing(ndtooned(lon))) then</div><div>  print(&quot;Missing longitude coordinates detected&quot;)</div><div>end if</div><div>; (and repeat for the lat array)</div><div><br></div><div>Hope that helps. If not, please respond to the ncl-talk email list.</div><div>Adam</div><div><br></div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 30, 2016 at 1:27 AM, Amit Kumar <span dir="ltr">&lt;<a href="mailto:amitkumar.777@hotmail.com" target="_blank">amitkumar.777@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:10pt;color:#2672ec;background-color:#ffffff;font-family:Arial,Helvetica,sans-serif">
<p>Hi All,</p>
<p><br>
</p>
<p>attached plot .</p>
<p><br>
</p>
<p>regards,</p>
<p>Amit<br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Amit Kumar &lt;<a href="mailto:amitkumar.777@hotmail.com" target="_blank">amitkumar.777@hotmail.com</a>&gt;<br>
<b>Sent:</b> Tuesday, August 30, 2016 12:27 PM<br>
<b>To:</b> Mary Haley<br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>; Guido Cioni<br>
<b>Subject:</b> Re: [ncl-talk] ContourPlotDraw and PlotManagerDraw error while ploting SST</font>
<div> </div>
</div>
<div>
<div style="font-size:10pt;color:#2672ec;background-color:#ffffff;font-family:Arial,Helvetica,sans-serif">
<p></p>
<div>Hi All,<br>
 <br>
While ploting south hemisphere co-ordinates i&#39;m getting following error.<br>
<br>
<span style="color:rgb(255,0,0)">warning:ContourPlotDraw: out of range coordinates encountered; standard RasterFill rendering method may be unreliable;</span><br>
<span style="color:rgb(255,0,0)"> consider setting the resource trGridType to &quot;TriangularMesh&quot; if coordinates contain missing values<br>
<br>
<span style="color:rgb(0,111,201)">I&#39;m using <br>
<br>
<div>  res@mpMinLonF     = 40.0<br>
  res@mpMaxLonF     = 110.0<br>
  res@mpMinLatF     = -50.0<br>
  res@mpMaxLatF     = 25.0</div>
<br>
to zoom into southern hemisphere, but it is not plotting southern latitudes is giving above error.<br>
 <br>
Is there any other way to write southern latitudes?<br>
</span></span></div>
<p></p>
<p><br>
</p>
<p>Regards</p>
<p>Amit<br>
</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> Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;<br>
<b>Sent:</b> Tuesday, August 30, 2016 1:58:13 AM<br>
<b>To:</b> Amit Kumar<br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>; Guido Cioni<br>
<b>Subject:</b> Re: [ncl-talk] ContourPlotDraw and PlotManagerDraw error while ploting SST</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif">Amit,</font></div>
<div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif">Guido&#39;s answer is correct, and I wanted to point out that you can also set this resource inside your NCL script. See:</font></div>
<div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="arial, helvetica, sans-serif"><a href="http://www.ncl.ucar.edu/Document/Language/error_messages.shtml#WorkspaceReallocation" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Language/error_<wbr>messages.shtml#<wbr>WorkspaceReallocation</a><br>
</font></div>
<div class="gmail_default"><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="arial, helvetica, sans-serif">The above also recommends trying raster contouring, if you have a large array that you are trying to plot:</font></div>
<div class="gmail_default"><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div class="gmail_default">
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:16px;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">  res@<a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillMode" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" target="_blank"><em style="margin:0px;padding:0px">cnFillMode</em></a> = &quot;RasterFill&quot;
  res@<a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnRasterSmoothingOn" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" target="_blank"><em style="margin:0px;padding:0px">cnRasterSmoothingOn</em></a> = True   ; optional, but may produce better results</font></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:16px;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">Try it first without the &quot;cnRasterSmoothingOn&quot; set to True. If it looks too blocky, then add that resource</font></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:16px;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif"><br></font></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:16px;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">--Mary</font></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:16px;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><br></pre>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Aug 29, 2016 at 3:55 AM, Guido Cioni <span dir="ltr">
&lt;<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>&gt;</span> wrote:<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">As stated here <a href="http://www.ncl.ucar.edu/Document/Graphics/hlures.shtml" target="_blank">http://www.ncl.ucar.edu/D<wbr>ocument/Graphics/hlures.shtml</a> <wbr>[at the bottom] try to increase the default contour memory
 in the .hluresfile. 
<div>Regards,<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.o<wbr>rg</a> </div>
</div>
<br>
<div>
<blockquote type="cite">
<div>
<div>
<div>On 29 Aug 2016, at 10:17, Amit Kumar &lt;<a href="mailto:amitkumar.777@hotmail.com" target="_blank">amitkumar.777@hotmail.com</a>&gt; wrote:</div>
<br>
</div>
</div>
<div>
<div>
<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"></p>
<div>Hi all,<br>
<br>
I&#39;m trying to plot daily file of SST using NCL. But I&#39;m getting following error:<br>
<br>
<span style="color:rgb(255,0,0)">fatal:ContourPlotDraw: Workspace reallocation would exceed maximum size 100000000</span><br>
<span style="color:rgb(255,0,0)">fatal:ContourPlotDraw: draw error</span><br>
<span style="color:rgb(255,0,0)">fatal:ContourPlotDraw: draw error</span><br>
<span style="color:rgb(255,0,0)">fatal:PlotManagerDraw: error in plot draw</span><br>
<span style="color:rgb(255,0,0)">fatal:_NhlPlotManagerDraw: Draw error</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">I&#39;m able to plot HEM, OLR which are in same format and with same NCL script but with SST I&#39;m encountering these errors.</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<p style="margin-top:0px;margin-bottom:0px"></p>
<div>My NC file description is as shown below:<br>
<br>
dimensions:<br>
      x = 1744<br>
      y = 657<br>
      time = 1  // unlimited<br>
   variables:<br>
      double longitude ( y, x )<br>
         standard_name :    longitude<br>
         long_name :    longitude<br>
         units :    degrees_east<br>
         _CoordinateAxisType :    Lon<br>
<br>
      double latitude ( y, x )<br>
         standard_name :    latitude<br>
         long_name :    latitude<br>
         units :    degrees_north<br>
         _CoordinateAxisType :    Lat<br>
<br>
      double time ( time )<br>
         standard_name :    time<br>
         units :    hours since 1-1-1 00:00:00<br>
         calendar :    standard<br>
         axis :    T<br>
<br>
      double SST_DLY ( time, y, x )<br>
         coordinates :    latitude longitude<br>
         _FillValue :    -9e+33<br>
         missing_value :    -9e+33<br>
         fillvalue :    -9.e+33<br>
<br>
<br>
My script is as below:<br>
<br>
<div>load &quot;/usr/share/ncarg/nclscripts/c<wbr>sm/gsn_code.ncl&quot;<br>
load &quot;/usr/share/ncarg/nclscripts/c<wbr>sm/gsn_csm.ncl&quot;<br>
load &quot;/usr/share/ncarg/nclscripts/c<wbr>sm/contributed.ncl&quot;<br>
<br>
begin<br>
<br>
 a = addfile(&quot;/media/amit/E/Researc<wbr>h/SWM/SST/AUG/output/india/<wbr>07AUG.nc&quot;,&quot;r&quot;)<br>
 ;filename = &quot;/media/amit/E/India_shapefile<wbr>/Districtbound(Satmet).shp&quot;<br>
 filename = &quot;/media/amit/E/India_shapefile<wbr>/State_bound(Satmet).shp&quot;<br>
<br>
  var     = doubletofloat(a-&gt;SST_DLY(0,:,:<wbr>))<br>
  lat     =  a-&gt;latitude<br>
  lon     =  a-&gt;longitude<br>
<br>
wks = gsn_open_wks(&quot;png&quot;,&quot;07AUG&quot;)   <wbr>             ; send graphics to PNG file<br>
<br>
  res                      = True                  ; plot mods desired<br>
  res@gsnDraw              = False<br>
  res@gsnFrame             = False<br>
  res@gsnAddCyclic         = False<br>
  res@gsnStringFontHeightF = 0.015<br>
  res@cnFillOn             = True                  ; turn on color fill<br>
  res@gsnMaximize          = True     ; maximize plot in frame<br>
  res@mpOutlineOn   = False   ; Use outlines from shapefile<br>
  res@mpFillOn      = False<br>
  res@cnLinesOn         = False    ; turn off contour lines<br>
  res@cnLineLabelsOn    = False    ; turn off line labels<br>
  res@cnLevelSelectionMode = &quot;ExplicitLevels&quot;<br>
  res@cnLevels             = (/273,283,293,294,295,296,297,<wbr>298,299,300,301,302,303,304,30<wbr>5/) ;   15 contour values<br>
  res@cnFillPalette            = &quot;rainbow&quot;<br>
  res@lbLabelBarOn     = False<br>
  res@lbOrientation   = &quot;Vertical&quot;<br>
  res@sfXArray             = lon<br>
  res@sfYArray        =  lat<br>
 ; res@mpMinLonF     = 1.0<br>
 ; res@mpMaxLonF     = 163.0<br>
 ; res@mpMinLatF     = -81.0<br>
 ; res@mpMaxLatF     = 25.0<br>
  res@pmTickMarkDisplayMode     = &quot;Always&quot;<br>
  ;res@tiXAxisString            = &quot;Longitude&quot;<br>
  ;res@tiYAxisString            = &quot;Lattitude&quot;<br>
  res@tiXAxisFontHeightF     = 0.02<br>
  res@tiYAxisFontHeightF     = 0.02<span> </span><br>
plot = gsn_csm_contour_map(wks,var, res)        ; create plot<br>
<br>
;---Resource list for shapefile outlines<br>
 plres                     = True<br>
 plres@gsLineColor       = &quot;black&quot;<br>
 plres@gsLineThicknessF  = &quot;1.0&quot;<br>
 dumstr                = unique_string(&quot;poly&quot;)<br>
 id = gsn_add_shapefile_polylines(wk<wbr>s,plot,filename,plres)<br>
 draw(plot)<br>
 frame(wks)<br>
end</div>
<br>
</div>
<br>
<p style="margin-top:0px;margin-bottom:0px"></p>
</div>
</div>
</div>
<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">______________________________<wbr>_________________</span><br 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">
<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">ncl-talk mailing
 list</span><br 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">
<a href="mailto:ncl-talk@ucar.edu" 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" target="_blank">ncl-talk@ucar.edu</a><br 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">
<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">List instructions,
 subscriber options, unsubscribe:</span><br 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">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" 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" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a></div>
</blockquote>
</div>
<br>
</div>
</div>
<br>
______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>