<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" 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 <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> [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.<wbr>org</a> </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&#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/<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> a = addfile(&quot;/media/amit/E/<wbr>Research/SWM/SST/AUG/output/<wbr>india/07AUG.nc&quot;,&quot;r&quot;)<br> ;filename = &quot;/media/amit/E/India_<wbr>shapefile/Districtbound(<wbr>Satmet).shp&quot;<br> filename = &quot;/media/amit/E/India_<wbr>shapefile/State_bound(Satmet).<wbr>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,<wbr>305/) ;   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(<wbr>wks,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/<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>