<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>
<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);"> consider setting the resource trGridType to "TriangularMesh" if coordinates contain missing values<br>
<br>
<span style="color: rgb(0, 111, 201);">I'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%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mary Haley <haley@ucar.edu><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> </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> = "RasterFill"
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 "cnRasterSmoothingOn" 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">
<<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>></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 <<a href="mailto:amitkumar.777@hotmail.com" target="_blank">amitkumar.777@hotmail.com</a>> 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>
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 "/usr/share/ncarg/nclscripts/<wbr>csm/gsn_code.ncl"<br>
load "/usr/share/ncarg/nclscripts/<wbr>csm/gsn_csm.ncl"<br>
load "/usr/share/ncarg/nclscripts/<wbr>csm/contributed.ncl"<br>
<br>
begin<br>
<br>
a = addfile("/media/amit/E/<wbr>Research/SWM/SST/AUG/output/<wbr>india/07AUG.nc","r")<br>
;filename = "/media/amit/E/India_<wbr>shapefile/Districtbound(<wbr>Satmet).shp"<br>
filename = "/media/amit/E/India_<wbr>shapefile/State_bound(Satmet).<wbr>shp"<br>
<br>
var = doubletofloat(a->SST_DLY(0,:,:<wbr>))<br>
lat = a->latitude<br>
lon = a->longitude<br>
<br>
wks = gsn_open_wks("png","07AUG") <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 = "ExplicitLevels"<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 = "rainbow"<br>
res@lbLabelBarOn = False<br>
res@lbOrientation = "Vertical"<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 = "Always"<br>
;res@tiXAxisString = "Longitude"<br>
;res@tiYAxisString = "Lattitude"<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 = "black"<br>
plres@gsLineThicknessF = "1.0"<br>
dumstr = unique_string("poly")<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>
</div>
</body>
</html>