<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Ana,<div class=""><br class=""></div><div class="">the warning message is telling you exactly what to do. Set</div><div class=""><br class=""></div><div class=""><font face="Courier New" class="">&nbsp; &nbsp;res@gsnAddCyclic = False</font></div><div class=""><br class=""></div><div class="">because your grid is not global (longitudes are not 0-360 degrees), as you already said</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="" style="font-family: Tahoma;"><p class="">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 class=""><br class=""></div><div class="">Bye,</div><div class="">Karin</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 16.01.2016 um 04:19 schrieb Anahita Amiri Farahani &lt;<a href="mailto:aamir003@ucr.edu" class="">aamir003@ucr.edu</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear All,<div class=""><br class=""></div><div class="">I tried to shade&nbsp;<span style="font-family: Tahoma;" class="">where only significant grid points and wrote this script:</span></div><div class=""><span style="font-family: Tahoma;" class=""><br class=""></span></div><div class=""><span style="font-family: Tahoma;" class=""><br class=""></span></div><div class=""><div style="" class=""><br class=""></div><div style="" class=""><font face="Tahoma" class="">sig2D!0="lat"</font></div><div style="" class=""><font face="Tahoma" class="">sig2D!1="lon"</font></div><div style="" class=""><font face="Tahoma" class="">;Coordinate</font></div><div style="" class=""><font face="Tahoma" class="">sig2D&amp;lat=lat</font></div><div style="" class=""><font face="Tahoma" class="">sig2D&amp;lon=lon</font></div><div style="" class=""><br class=""></div><div style="" class=""><font face="Tahoma" class="">alb_clr_der_summer2D!0="lat"</font></div><div style="" class=""><font face="Tahoma" class="">alb_clr_der_summer2D!1="lon"</font></div><div style="" class=""><font face="Tahoma" class="">;Coordinate</font></div><div style="" class=""><font face="Tahoma" class="">alb_clr_der_summer2D&amp;lat=lat</font></div><div style="" class=""><font face="Tahoma" class="">alb_clr_der_summer2D&amp;lon=lon</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">a = addfile("$NCARG_ROOT/lib/ncarg/data/cdf/<a href="http://landsea.nc/" class="">landsea.nc</a>","r")</font></div><div style="" class=""><font face="Tahoma" class="">lsdata = a-&gt;LSMASK</font></div><div style="" class=""><font face="Tahoma" class="">lsm &nbsp;= landsea_mask(lsdata,alb_clr_der_summer2D&amp;lat,alb_clr_der_summer2D&amp;lon)</font></div><div style="" class=""><font face="Tahoma" class="">alb_clr_der_summer2D = mask(alb_clr_der_summer2D,lsm.eq.1,False)</font></div><div style="" class=""><font face="Tahoma" class="">;alb_clr_der_summer2D = mask(alb_clr_der_summer2D,lsm.eq.3,False)</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">lsm &nbsp;= landsea_mask(lsdata,sig2D&amp;lat,sig2D&amp;lon)</font></div><div style="" class=""><font face="Tahoma" class="">sig2D = mask(sig2D,lsm.eq.1,False)</font></div><div style="" class=""><font face="Tahoma" class="">;sig2D = mask(sig2D,lsm.eq.3,False)</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">print("Plot")</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">wks = gsn_open_wks("eps","1st_der_test")</font></div><div style="" class=""><font face="Tahoma" class="">gsn_define_colormap(wks,"BlWhRe") &nbsp; ; choose color</font></div><div style="" class=""><font face="Tahoma" class="">;gsn_define_colormap(wks,"BlAqGrYeOrRe")&nbsp;</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; plot mods desired</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@cnFillOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; turn on color &nbsp;&nbsp;</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@gsnSpreadColors &nbsp; &nbsp; = True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; use full color map</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@cnLinesOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; no contour lines</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@cnLineLabelsOn &nbsp; &nbsp; &nbsp;= False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; no line labels</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@mpMaxLatF = 29.5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; specify the plot domain</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@mpMinLatF = 0.5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@mpMinLonF = -44.5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@mpMaxLonF = 15.5 &nbsp; &nbsp;&nbsp;</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@gsnAddCyclic &nbsp; &nbsp; &nbsp; &nbsp;= False&nbsp;</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">&nbsp;; res@cnLevelSelectionMode = &nbsp;"AutomaticLevels" &nbsp; ; AutomaticLevels</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@cnLevelSelectionMode = &nbsp;"ManualLevels" &nbsp; ; AutomaticLevels</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@cnMinLevelValF &nbsp; &nbsp; &nbsp; = -1. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; min level</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@cnMaxLevelValF &nbsp; &nbsp; &nbsp; = &nbsp;1. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; max level</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res@cnLevelSpacingF &nbsp; &nbsp; &nbsp;= &nbsp;0.1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; interval</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</font></div><div style="" class=""><font face="Tahoma" class="">res@tiMainString &nbsp; &nbsp; &nbsp; &nbsp;= "1st der test"</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">res@gsnDraw &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; Do not draw plot</font></div><div style="" class=""><font face="Tahoma" class="">res@gsnFrame &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; Do not advance frame</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">plot= gsn_csm_contour_map_ce(wks,alb_clr_der_summer2D(:,:),res)</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">;delete(wks)</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">; ========================= PLOT 2 ==============================</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp;res2 = True &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; res2 probability plots</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res2@gsnDraw &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; Do not draw plot</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res2@gsnFrame &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; Do not advance frame</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res2@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res2@cnMinLevelValF &nbsp; &nbsp; &nbsp;= 0.00 &nbsp; &nbsp; &nbsp; &nbsp;; set min contour level</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res2@cnMaxLevelValF &nbsp; &nbsp; &nbsp;= 1.05 &nbsp; &nbsp; &nbsp; &nbsp;; set max contour level</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res2@cnLevelSpacingF &nbsp; &nbsp; = 0.05 &nbsp; &nbsp; &nbsp; &nbsp;; set contour spacing</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res2@cnInfoLabelOn &nbsp; &nbsp; &nbsp; = False &nbsp; &nbsp; &nbsp; ; turn off info label</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res2@cnLinesOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False &nbsp; &nbsp; &nbsp; ; do not draw contour lines</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res2@cnLineLabelsOn &nbsp; &nbsp; &nbsp;= False &nbsp; &nbsp; &nbsp; ; do not draw contour labels</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; res2@cnFillScaleF &nbsp; &nbsp; &nbsp; &nbsp;= 0.6 &nbsp; &nbsp; &nbsp; &nbsp; ; add extra density</font></div><div style="" class=""><font face="Tahoma" class="">; &nbsp;delete(alpha@long_name)</font></div><div style="" class=""><font face="Tahoma" class="">; &nbsp;delete(alpha@units)</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; plot2 &nbsp; = gsn_csm_contour(wks,gsn_add_cyclic_point(sig2D(:,:)), res2)&nbsp;</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; plot2 &nbsp; = ShadeGtContour(plot2, 0.95, 17) &nbsp;; shade all areas less than the</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; 0.05 contour level</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; overlay (plot, plot2)</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; draw (plot)</font></div><div style="" class=""><font face="Tahoma" class="">&nbsp; frame(wks)</font></div><div style="" class=""><font face="Tahoma" class=""><br class=""></font></div><div style="font-family: Tahoma;" class=""><br class=""></div></div><div style="font-family: Tahoma;" class=""><br class=""></div><div style="font-family: Tahoma;" class=""><br class=""></div><div style="font-family: Tahoma;" class="">but I got this warning:</div><div style="font-family: Tahoma;" class=""><br class=""></div><div style="font-family: Tahoma;" class=""><br class=""></div><div style="font-family: Tahoma;" class=""><p class=""><span class="">(0) &nbsp; &nbsp; gsn_add_cyclic: Warning: The range of your longitude data is not 360.</span></p><p class=""><span class="">(0) &nbsp; &nbsp; You may want to set gsnAddCyclic to False to avoid a warning</span></p><p class=""><span class="">(0) &nbsp; &nbsp; message from the spline function.</span></p><p class=""><span class="">warning:_NhlCreateSplineCoordApprox: Attempt to create spline approximation for X axis failed: consider adjusting trXTensionF value</span></p><p class=""><span class="">warning:IrTransInitialize: error creating spline approximation for trXCoordPoints; defaulting to linear</span></p><p class=""><span class=""><br class=""></span></p><p class="">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 class=""><br class=""></p><p class="">Thanks,</p><p class="">Ana</p></div><div style="font-family: Tahoma;" class=""><br class=""></div><div style="font-family: Tahoma;" class=""><br class=""></div><div style="font-family: Tahoma;" class=""><br class=""></div><div style="font-family: Tahoma;" class=""><br class=""></div><div style="font-family: Tahoma;" class=""><br class=""></div><div style="font-family: Tahoma;" class=""><br class=""></div><br style="font-family: Tahoma;" class=""></div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""></div></span></div></span></div></span></div></div></div></div></div>
</div>
<br class=""></div></body></html>