<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<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>
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></p>
<p><br>
</p>
<p>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.</p>
<p><br>
</p>
<p></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/csm/gsn_code.ncl"<br>
load "/usr/share/ncarg/nclscripts/csm/gsn_csm.ncl"<br>
load "/usr/share/ncarg/nclscripts/csm/contributed.ncl"<br>
<br>
begin<br>
<br>
a = addfile("/media/amit/E/Research/SWM/SST/AUG/output/india/07AUG.nc","r")<br>
;filename = "/media/amit/E/India_shapefile/Districtbound(Satmet).shp"<br>
filename = "/media/amit/E/India_shapefile/State_bound(Satmet).shp"<br>
<br>
var = doubletofloat(a->SST_DLY(0,:,:))<br>
lat = a->latitude<br>
lon = a->longitude<br>
<br>
wks = gsn_open_wks("png","07AUG") ; 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,298,299,300,301,302,303,304,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 <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(wks,plot,filename,plres)<br>
draw(plot)<br>
frame(wks)<br>
end</div>
<br>
</div>
<br>
<p></p>
</div>
</body>
</html>