<div dir="ltr"><div class="gmail_default" style="font-size:small">Ana,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You may also need to set gsnAddCyclic to False for the "res2" variable as well.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Did you read the documentation for ShadeGtContour?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Document/Functions/Shea_util/ShadeGtContour.shtml">http://www.ncl.ucar.edu/Document/Functions/Shea_util/ShadeGtContour.shtml</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">It states that this is a deprecated function, and that you should use gsn_contour_shade instead:</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_contour_shade.shtml">http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_contour_shade.shtml</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">If you continue to have problems, please include any error messages you are getting, even if it's the same one. Just saying "it didn't work" doesn't give us enough information. We need to know if you are still getting the same error message, a new error message, or none at all.</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">Thanks,</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">--Mary</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 16, 2016 at 11:02 AM, Anahita Amiri Farahani <span dir="ltr"><<a href="mailto:aamir003@ucr.edu" target="_blank">aamir003@ucr.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Karin,<div><br></div><div>Thanks for your answer. I tried it, but didn't work.</div><div><br></div><div>Cheers,</div><div>Ana</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 16, 2016 at 1:49 AM, Karin Meier-Fleischer <span dir="ltr"><<a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</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">Hi Ana,<div><br></div><div>the warning message is telling you exactly what to do. Set</div><div><br></div><div><font face="Courier New"> res@gsnAddCyclic = False</font></div><div><br></div><div>because your grid is not global (longitudes are not 0-360 degrees), as you already said</div><span><div><br></div><div><blockquote type="cite"><div dir="ltr"><div style="font-family:Tahoma"><p>lat ranges from 0.5 to 29.5 and lon ranges from -45.5 to 14.5 and the resolution is 1*1 degree.</p></div></div></blockquote></div><div><br></div></span><div>Bye,</div><div>Karin</div><div><br></div><div><br><div><blockquote type="cite"><div><div><div>Am 16.01.2016 um 04:19 schrieb Anahita Amiri Farahani <<a href="mailto:aamir003@ucr.edu" target="_blank">aamir003@ucr.edu</a>>:</div><br></div></div><div><div><div><div dir="ltr">Dear All,<div><br></div><div>I tried to shade <span style="font-family:Tahoma">where only significant grid points and wrote this script:</span></div><div><span style="font-family:Tahoma"><br></span></div><div><span style="font-family:Tahoma"><br></span></div><div><div><br></div><div><font face="Tahoma">sig2D!0="lat"</font></div><div><font face="Tahoma">sig2D!1="lon"</font></div><div><font face="Tahoma">;Coordinate</font></div><div><font face="Tahoma">sig2D&lat=lat</font></div><div><font face="Tahoma">sig2D&lon=lon</font></div><div><br></div><div><font face="Tahoma">alb_clr_der_summer2D!0="lat"</font></div><div><font face="Tahoma">alb_clr_der_summer2D!1="lon"</font></div><div><font face="Tahoma">;Coordinate</font></div><div><font face="Tahoma">alb_clr_der_summer2D&lat=lat</font></div><div><font face="Tahoma">alb_clr_der_summer2D&lon=lon</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma">a = addfile("$NCARG_ROOT/lib/ncarg/data/cdf/<a href="http://landsea.nc/" target="_blank">landsea.nc</a>","r")</font></div><div><font face="Tahoma">lsdata = a->LSMASK</font></div><div><font face="Tahoma">lsm = landsea_mask(lsdata,alb_clr_der_summer2D&lat,alb_clr_der_summer2D&lon)</font></div><div><font face="Tahoma">alb_clr_der_summer2D = mask(alb_clr_der_summer2D,lsm.eq.1,False)</font></div><div><font face="Tahoma">;alb_clr_der_summer2D = mask(alb_clr_der_summer2D,lsm.eq.3,False)</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma">lsm = landsea_mask(lsdata,sig2D&lat,sig2D&lon)</font></div><div><font face="Tahoma">sig2D = mask(sig2D,lsm.eq.1,False)</font></div><div><font face="Tahoma">;sig2D = mask(sig2D,lsm.eq.3,False)</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma">print("Plot")</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma">wks = gsn_open_wks("eps","1st_der_test")</font></div><div><font face="Tahoma">gsn_define_colormap(wks,"BlWhRe") ; choose color</font></div><div><font face="Tahoma">;gsn_define_colormap(wks,"BlAqGrYeOrRe") </font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma">;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</font></div><div><font face="Tahoma"> res = True ; plot mods desired</font></div><div><font face="Tahoma"> res@cnFillOn = True ; turn on color </font></div><div><font face="Tahoma"> res@gsnSpreadColors = True ; use full color map</font></div><div><font face="Tahoma"> res@cnLinesOn = False ; no contour lines</font></div><div><font face="Tahoma"> res@cnLineLabelsOn = False ; no line labels</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"> res@mpMaxLatF = 29.5 ; specify the plot domain</font></div><div><font face="Tahoma"> res@mpMinLatF = 0.5 ; </font></div><div><font face="Tahoma"> res@mpMinLonF = -44.5 ;</font></div><div><font face="Tahoma"> res@mpMaxLonF = 15.5 </font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"> res@gsnAddCyclic = False </font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"> ; res@cnLevelSelectionMode = "AutomaticLevels" ; AutomaticLevels</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"> res@cnLevelSelectionMode = "ManualLevels" ; AutomaticLevels</font></div><div><font face="Tahoma"> res@cnMinLevelValF = -1. ; min level</font></div><div><font face="Tahoma"> res@cnMaxLevelValF = 1. ; max level</font></div><div><font face="Tahoma"> res@cnLevelSpacingF = 0.1 ; interval</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma">;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</font></div><div><font face="Tahoma">res@tiMainString = "1st der test"</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma">res@gsnDraw = False ; Do not draw plot</font></div><div><font face="Tahoma">res@gsnFrame = False ; Do not advance frame</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma">plot= gsn_csm_contour_map_ce(wks,alb_clr_der_summer2D(:,:),res)</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma">;delete(wks)</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma">; ========================= PLOT 2 ==============================</font></div><div><font face="Tahoma"> res2 = True ; res2 probability plots</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"> res2@gsnDraw = False ; Do not draw plot</font></div><div><font face="Tahoma"> res2@gsnFrame = False ; Do not advance frame</font></div><div><font face="Tahoma"> res2@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels</font></div><div><font face="Tahoma"> res2@cnMinLevelValF = 0.00 ; set min contour level</font></div><div><font face="Tahoma"> res2@cnMaxLevelValF = 1.05 ; set max contour level</font></div><div><font face="Tahoma"> res2@cnLevelSpacingF = 0.05 ; set contour spacing</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"> res2@cnInfoLabelOn = False ; turn off info label</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"> res2@cnLinesOn = False ; do not draw contour lines</font></div><div><font face="Tahoma"> res2@cnLineLabelsOn = False ; do not draw contour labels</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"> res2@cnFillScaleF = 0.6 ; add extra density</font></div><div><font face="Tahoma">; delete(alpha@long_name)</font></div><div><font face="Tahoma">; delete(alpha@units)</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"> plot2 = gsn_csm_contour(wks,gsn_add_cyclic_point(sig2D(:,:)), res2) </font></div><div><font face="Tahoma"> plot2 = ShadeGtContour(plot2, 0.95, 17) ; shade all areas less than the</font></div><div><font face="Tahoma"> ; 0.05 contour level</font></div><div><font face="Tahoma"> overlay (plot, plot2)</font></div><div><font face="Tahoma"><br></font></div><div><font face="Tahoma"> draw (plot)</font></div><div><font face="Tahoma"> frame(wks)</font></div><div><font face="Tahoma"><br></font></div><div style="font-family:Tahoma"><br></div></div><div style="font-family:Tahoma"><br></div><div style="font-family:Tahoma"><br></div><div style="font-family:Tahoma">but I got this warning:</div><div style="font-family:Tahoma"><br></div><div style="font-family:Tahoma"><br></div><div style="font-family:Tahoma"><p><span>(0) gsn_add_cyclic: Warning: The range of your longitude data is not 360.</span></p><p><span>(0) You may want to set gsnAddCyclic to False to avoid a warning</span></p><p><span>(0) message from the spline function.</span></p><p><span>warning:_NhlCreateSplineCoordApprox: Attempt to create spline approximation for X axis failed: consider adjusting trXTensionF value</span></p><p><span>warning:IrTransInitialize: error creating spline approximation for trXCoordPoints; defaulting to linear</span></p><p><span><br></span></p><p>lat ranges from 0.5 to 29.5 and lon ranges from -45.5 to 14.5 and the resolution is 1*1 degree.</p><p><br></p><p>Thanks,</p><p>Ana</p></div><div style="font-family:Tahoma"><br></div><div style="font-family:Tahoma"><br></div><div style="font-family:Tahoma"><br></div><div style="font-family:Tahoma"><br></div><div style="font-family:Tahoma"><br></div><div style="font-family:Tahoma"><br></div><br style="font-family:Tahoma"></div></div></div>
_______________________________________________<br>ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></div></blockquote></div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><span style="border-collapse:separate;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;font-family:Helvetica;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word"><br></div></span></div></span></div></span></div></div></div></div></div>
</div>
<br></div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>