<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">As stated here <a href="http://www.ncl.ucar.edu/Document/Graphics/hlures.shtml" class="">http://www.ncl.ucar.edu/Document/Graphics/hlures.shtml</a> [at the bottom] try to increase the default contour memory in the .hluresfile. <div class="">Regards,<br class=""><div class="">
<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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://guidocioni.altervista.org" class="">http://guidocioni.altervista.org</a> </div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 29 Aug 2016, at 10:17, Amit Kumar <<a href="mailto:amitkumar.777@hotmail.com" class="">amitkumar.777@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" style="font-size: 10pt; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(38, 114, 236); background-color: rgb(255, 255, 255); font-family: Arial, Helvetica, sans-serif;" class=""><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div class="">Hi all,<br class=""><br class="">I'm trying to plot daily file of SST using NCL. But I'm getting following error:<br class=""><br class=""><span style="color: rgb(255, 0, 0);" class="">fatal:ContourPlotDraw: Workspace reallocation would exceed maximum size 100000000</span><br class=""><span style="color: rgb(255, 0, 0);" class="">fatal:ContourPlotDraw: draw error</span><br class=""><span style="color: rgb(255, 0, 0);" class="">fatal:ContourPlotDraw: draw error</span><br class=""><span style="color: rgb(255, 0, 0);" class="">fatal:PlotManagerDraw: error in plot draw</span><br class=""><span style="color: rgb(255, 0, 0);" class="">fatal:_NhlPlotManagerDraw: Draw error</span><br class=""></div><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">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;" class=""><br class=""></div><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div class="">My NC file description is as shown below:<br class=""><br class="">dimensions:<br class=""> x = 1744<br class=""> y = 657<br class=""> time = 1 // unlimited<br class=""> variables:<br class=""> double longitude ( y, x )<br class=""> standard_name : longitude<br class=""> long_name : longitude<br class=""> units : degrees_east<br class=""> _CoordinateAxisType : Lon<br class=""><br class=""> double latitude ( y, x )<br class=""> standard_name : latitude<br class=""> long_name : latitude<br class=""> units : degrees_north<br class=""> _CoordinateAxisType : Lat<br class=""><br class=""> double time ( time )<br class=""> standard_name : time<br class=""> units : hours since 1-1-1 00:00:00<br class=""> calendar : standard<br class=""> axis : T<br class=""><br class=""> double SST_DLY ( time, y, x )<br class=""> coordinates : latitude longitude<br class=""> _FillValue : -9e+33<br class=""> missing_value : -9e+33<br class=""> fillvalue : -9.e+33<br class=""><br class=""><br class="">My script is as below:<br class=""><br class=""><div class="">load "/usr/share/ncarg/nclscripts/csm/gsn_code.ncl"<br class="">load "/usr/share/ncarg/nclscripts/csm/gsn_csm.ncl"<br class="">load "/usr/share/ncarg/nclscripts/csm/contributed.ncl"<br class=""><br class="">begin<br class=""><br class=""> a = addfile("/media/amit/E/Research/SWM/SST/AUG/output/india/07AUG.nc","r")<br class=""> ;filename = "/media/amit/E/India_shapefile/Districtbound(Satmet).shp"<br class=""> filename = "/media/amit/E/India_shapefile/State_bound(Satmet).shp"<br class=""><br class=""> var = doubletofloat(a->SST_DLY(0,:,:))<br class=""> lat = a->latitude<br class=""> lon = a->longitude<br class=""><br class="">wks = gsn_open_wks("png","07AUG") ; send graphics to PNG file<br class=""><br class=""> res = True ; plot mods desired<br class=""> res@gsnDraw = False<br class=""> res@gsnFrame = False<br class=""> res@gsnAddCyclic = False<br class=""> res@gsnStringFontHeightF = 0.015<br class=""> res@cnFillOn = True ; turn on color fill<br class=""> res@gsnMaximize = True ; maximize plot in frame<br class=""> res@mpOutlineOn = False ; Use outlines from shapefile<br class=""> res@mpFillOn = False<br class=""> res@cnLinesOn = False ; turn off contour lines<br class=""> res@cnLineLabelsOn = False ; turn off line labels<br class=""> res@cnLevelSelectionMode = "ExplicitLevels"<br class=""> res@cnLevels = (/273,283,293,294,295,296,297,298,299,300,301,302,303,304,305/) ; 15 contour values<br class=""> res@cnFillPalette = "rainbow"<br class=""> res@lbLabelBarOn = False<br class=""> res@lbOrientation = "Vertical"<br class=""> res@sfXArray = lon<br class=""> res@sfYArray = lat<br class=""> ; res@mpMinLonF = 1.0<br class=""> ; res@mpMaxLonF = 163.0<br class=""> ; res@mpMinLatF = -81.0<br class=""> ; res@mpMaxLatF = 25.0<br class=""> res@pmTickMarkDisplayMode = "Always"<br class=""> ;res@tiXAxisString = "Longitude"<br class=""> ;res@tiYAxisString = "Lattitude"<br class=""> res@tiXAxisFontHeightF = 0.02<br class=""> res@tiYAxisFontHeightF = 0.02<span class="Apple-converted-space"> </span><br class="">plot = gsn_csm_contour_map(wks,var, res) ; create plot<br class=""><br class="">;---Resource list for shapefile outlines<br class=""> plres = True<br class=""> plres@gsLineColor = "black"<br class=""> plres@gsLineThicknessF = "1.0"<br class=""> dumstr = unique_string("poly")<br class=""> id = gsn_add_shapefile_polylines(wks,plot,filename,plres)<br class=""> draw(plot)<br class=""> frame(wks)<br class="">end</div><br class=""></div><br class=""><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p></div><span style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">ncl-talk mailing list</span><br style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:ncl-talk@ucar.edu" style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">ncl-talk@ucar.edu</a><br style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">List instructions, subscriber options, unsubscribe:</span><br style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" style="font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></blockquote></div><br class=""></div></body></html>