<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:10pt;color:#2672EC;background-color:#FFFFFF;font-family:Arial,Helvetica,sans-serif;">
<p></p>
<div>Hi All,<br>
&nbsp;<br>
While ploting south hemisphere co-ordinates i'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);">&nbsp;consider setting the resource trGridType to &quot;TriangularMesh&quot; if coordinates contain missing values<br>
<br>
<span style="color: rgb(0, 111, 201);">I'm using <br>
<br>
<div>&nbsp; res@mpMinLonF &nbsp;&nbsp; &nbsp;= 40.0<br>
&nbsp; res@mpMaxLonF &nbsp;&nbsp; &nbsp;= 110.0<br>
&nbsp; res@mpMinLatF &nbsp;&nbsp; &nbsp;= -50.0<br>
&nbsp; res@mpMaxLatF &nbsp;&nbsp; &nbsp;= 25.0</div>
<br>
to zoom into southern hemisphere, but it is not plotting southern latitudes is giving above error.<br>
&nbsp;<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%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mary Haley &lt;haley@ucar.edu&gt;<br>
<b>Sent:</b> Tuesday, August 30, 2016 1:58:13 AM<br>
<b>To:</b> Amit Kumar<br>
<b>Cc:</b> ncl-talk@ucar.edu; Guido Cioni<br>
<b>Subject:</b> Re: [ncl-talk] ContourPlotDraw and PlotManagerDraw error while ploting SST</font>
<div>&nbsp;</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'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" style=""><font face="arial, helvetica, sans-serif"><a href="http://www.ncl.ucar.edu/Document/Language/error_messages.shtml#WorkspaceReallocation">http://www.ncl.ucar.edu/Document/Language/error_messages.shtml#WorkspaceReallocation</a><br>
</font></div>
<div class="gmail_default" style=""><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div class="gmail_default" style=""><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" style=""><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div class="gmail_default" style="">
<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)"><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)"><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&nbsp;<a href="http://www.ncl.ucar.edu/Document/Graphics/hlures.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Graphics/hlures.shtml</a><wbr>&nbsp;[at the bottom]&nbsp;try to increase the default contour memory
 in the .hluresfile.&nbsp;
<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.<wbr>org</a>&nbsp;</div>
</div>
<br>
<div>
<blockquote type="cite">
<div>
<div class="h5">
<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 class="h5">
<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'm trying to plot daily file of SST using NCL. But I'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'm able to plot HEM, OLR which are in same format and with same NCL script but with SST I'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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x = 1744<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y = 657<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time = 1&nbsp; // unlimited<br>
&nbsp;&nbsp; variables:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double longitude ( y, x )<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; standard_name :&nbsp;&nbsp; &nbsp;longitude<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long_name :&nbsp;&nbsp; &nbsp;longitude<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units :&nbsp;&nbsp; &nbsp;degrees_east<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _CoordinateAxisType :&nbsp;&nbsp; &nbsp;Lon<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double latitude ( y, x )<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; standard_name :&nbsp;&nbsp; &nbsp;latitude<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long_name :&nbsp;&nbsp; &nbsp;latitude<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units :&nbsp;&nbsp; &nbsp;degrees_north<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _CoordinateAxisType :&nbsp;&nbsp; &nbsp;Lat<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double time ( time )<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; standard_name :&nbsp;&nbsp; &nbsp;time<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units :&nbsp;&nbsp; &nbsp;hours since 1-1-1 00:00:00<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calendar :&nbsp;&nbsp; &nbsp;standard<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; axis :&nbsp;&nbsp; &nbsp;T<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double SST_DLY ( time, y, x )<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; coordinates :&nbsp;&nbsp; &nbsp;latitude longitude<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _FillValue :&nbsp;&nbsp; &nbsp;-9e&#43;33<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; missing_value :&nbsp;&nbsp; &nbsp;-9e&#43;33<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fillvalue :&nbsp;&nbsp; &nbsp;-9.e&#43;33<br>
<br>
<br>
My script is as below:<br>
<br>
<div>load &quot;/usr/share/ncarg/nclscripts/<wbr>csm/gsn_code.ncl&quot;<br>
load &quot;/usr/share/ncarg/nclscripts/<wbr>csm/gsn_csm.ncl&quot;<br>
load &quot;/usr/share/ncarg/nclscripts/<wbr>csm/contributed.ncl&quot;<br>
<br>
begin<br>
<br>
&nbsp;a = addfile(&quot;/media/amit/E/<wbr>Research/SWM/SST/AUG/output/<wbr>india/07AUG.nc&quot;,&quot;r&quot;)<br>
&nbsp;;filename = &quot;/media/amit/E/India_<wbr>shapefile/Districtbound(<wbr>Satmet).shp&quot;<br>
&nbsp;filename = &quot;/media/amit/E/India_<wbr>shapefile/State_bound(Satmet).<wbr>shp&quot;<br>
<br>
&nbsp; var &nbsp;&nbsp; &nbsp;= doubletofloat(a-&gt;SST_DLY(0,:,:<wbr>))<br>
&nbsp; lat &nbsp;&nbsp; &nbsp;=&nbsp; a-&gt;latitude<br>
&nbsp; lon &nbsp;&nbsp; &nbsp;=&nbsp; a-&gt;longitude<br>
<br>
wks = gsn_open_wks(&quot;png&quot;,&quot;07AUG&quot;)&nbsp;&nbsp;&nbsp;<wbr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; send graphics to PNG file<br>
<br>
&nbsp; res&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; plot mods desired<br>
&nbsp; res@gsnDraw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br>
&nbsp; res@gsnFrame&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br>
&nbsp; res@gsnAddCyclic&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br>
&nbsp; res@gsnStringFontHeightF = 0.015<br>
&nbsp; res@cnFillOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; turn on color fill<br>
&nbsp; res@gsnMaximize&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp; ; maximize plot in frame<br>
&nbsp; res@mpOutlineOn&nbsp;&nbsp; = False&nbsp;&nbsp; ; Use outlines from shapefile<br>
&nbsp; res@mpFillOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br>
&nbsp; res@cnLinesOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp; ; turn off contour lines<br>
&nbsp; res@cnLineLabelsOn&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp; ; turn off line labels<br>
&nbsp; res@cnLevelSelectionMode = &quot;ExplicitLevels&quot;<br>
&nbsp; res@cnLevels&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = (/273,283,293,294,295,296,297,<wbr>298,299,300,301,302,303,304,<wbr>305/) ;&nbsp;&nbsp; 15 contour values<br>
&nbsp; res@cnFillPalette&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;rainbow&quot;<br>
&nbsp; res@lbLabelBarOn &nbsp;&nbsp; &nbsp;= False<br>
&nbsp; res@lbOrientation&nbsp;&nbsp; = &quot;Vertical&quot;<br>
&nbsp; res@sfXArray &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = lon<br>
&nbsp; res@sfYArray&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;=&nbsp; lat<br>
&nbsp;; res@mpMinLonF &nbsp;&nbsp; &nbsp;= 1.0<br>
&nbsp;; res@mpMaxLonF &nbsp;&nbsp; &nbsp;= 163.0<br>
&nbsp;; res@mpMinLatF &nbsp;&nbsp; &nbsp;= -81.0<br>
&nbsp;; res@mpMaxLatF &nbsp;&nbsp; &nbsp;= 25.0<br>
&nbsp; res@pmTickMarkDisplayMode &nbsp;&nbsp; &nbsp;= &quot;Always&quot;<br>
&nbsp; ;res@tiXAxisString&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= &quot;Longitude&quot;<br>
&nbsp; ;res@tiYAxisString&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= &quot;Lattitude&quot;<br>
&nbsp; res@tiXAxisFontHeightF &nbsp;&nbsp; &nbsp;= 0.02<br>
&nbsp; res@tiYAxisFontHeightF &nbsp;&nbsp; &nbsp;= 0.02<span>&nbsp;</span><br>
plot = gsn_csm_contour_map(wks,var, res)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; create plot<br>
<br>
;---Resource list for shapefile outlines<br>
&nbsp;plres&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br>
&nbsp;plres@gsLineColor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;black&quot;<br>
&nbsp;plres@gsLineThicknessF&nbsp; = &quot;1.0&quot;<br>
&nbsp;dumstr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; = unique_string(&quot;poly&quot;)<br>
&nbsp;id = gsn_add_shapefile_polylines(<wbr>wks,plot,filename,plres)<br>
&nbsp;draw(plot)<br>
&nbsp;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/<wbr>mailman/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">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>
</div>
</body>
</html>