<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 style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Users</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am trying to shade the negative contour values with specified pattern over a map. Although the shade appears correctly but the</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
colour contours are not coming up in the figure. Below is the part of the script and the figure is attached. When gsn_contour_shade<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
is not used it produces the coloured contour plot.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Any help is appreciated!</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
<div><br>
</div>
<div>wks = gsn_open_wks("eps","shade_negative")<br>
</div>
<div>gsn_define_colormap(wks,"amwg256")<br>
</div>
<div><br>
</div>
<div> res = True<br>
</div>
<div>res@cnFillOn = True<br>
</div>
<div> res@cnLinesOn =False <br>
</div>
<div>res@gsnDraw = False<br>
</div>
<div>res@gsnFrame = False<br>
</div>
<div> res@mpDataBaseVersion = "MediumRes" ; better map outlines<br>
</div>
<div> res@mpGridAndLimbOn = True ; turn on limb and grid lines<br>
</div>
<div>; res@mpGridLineColor = -1 ; ...but don't draw grid lines...<br>
</div>
<div>; res@mpPerimOn = False ; turn off map perimeter<br>
</div>
<div>res@mpFillOn = True<br>
</div>
<div> res@mpFillDrawOrder = "PreDraw" ; draw map fill last<br>
</div>
<div><br>
</div>
<div>res@mpProjection = "LambertConformal"<br>
</div>
<div> res@gsnMaskLambertConformal = True<br>
</div>
<div> res@mpMinLatF = 60<br>
</div>
<div> res@mpMaxLatF = 75<br>
</div>
<div> res@mpMinLonF = -15<br>
</div>
<div> res@mpMaxLonF = 15<br>
</div>
<div> res@mpOutlineBoundarySets = "AllBoundaries"<br>
</div>
<div> res@mpDataSetName = "Earth..3"<br>
</div>
<div>res@tiMainString = ""<br>
</div>
<div>res@cnLevelSelectionMode = "ManualLevels"<br>
</div>
<div>res@cnMinLevelValF = -0.3<br>
</div>
<div>res@cnMaxLevelValF = 0.8<br>
</div>
<div>res@cnLevelSpacingF = 0.02<br>
</div>
<div>res@gsnAddCyclic = False<br>
</div>
<div>res@mpGridLatSpacingF = 5<br>
</div>
<div> res@mpGridLonSpacingF = 5<br>
</div>
<div>res@gsnLeftString = ""<br>
</div>
<div>;res@gsnContourZeroLineThicknessF = 3.5<br>
</div>
<div><br>
</div>
<div><br>
</div>
<br>
<div>plot = gsn_csm_contour_map(wks,e_new,res)<br>
</div>
<div><br>
</div>
<div>opt = True<br>
</div>
<div>opt@gsnShadeFillType = "pattern"<br>
</div>
<div>opt@gsnShadeLow = 3<br>
</div>
<div>plot = gsn_contour_shade(plot,0,-999,opt)<br>
</div>
<div>delete(opt@gsnShadeLow)<br>
</div>
<div><br>
</div>
<div>;---Attach latitude labels<br>
</div>
<div> lat_spacing = 5 ; use integers here<br>
</div>
<div> lon_spacing = 5<br>
</div>
<div> add_lc_labels(wks,plot,minlat,maxlat,minlon,maxlon,lat_spacing,lon_spacing)<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>;---Drawing the plot will also draw all the attached labels.<br>
</div>
<div> draw(plot)<br>
</div>
<div> frame(wks)<br>
</div>
<div><br>
</div>
<div>exit<br>
</div>
<div>end<br>
</div>
<div><br>
</div>
<span></span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Sourav<br>
</div>
</body>
</html>