<div dir="ltr"><div>Hi all,</div><div><br></div><div>I have some problems using rtest when I have &quot;missing values&quot;. I want to plot one field and overlaying the significant values of a second one, but the problem is that the pattern also appears in the areas with missing values.</div>
<div><br></div><div>My try is below:</div><div><br></div><div>       ; defining i=0 (for one model)</div><div><br></div><div>        cor = corFiles[i]-&gt;cor(0,:,:)<br></div><div>        reg = corFiles[i]-&gt;reg(0,:,:)</div>
<div>        lat = corFiles[i]-&gt;lat</div><div>        lon = corFiles[i]-&gt;lon</div><div>        lon@long_name = &quot;longitude&quot;</div><div>        lon@units = &quot;degrees_east&quot;</div><div>        lat@long_name = &quot;latitude&quot;</div>
<div>        lat@units = &quot;degrees_north&quot;</div><div><br></div><div>        um = rtest(reg(lat|:, lon|:), siz(i), 0) ; rtest for the regression</div><div>        um!0 = &quot;lat&quot;</div><div>        um!1 = &quot;lon&quot;</div>
<div>        um&amp;lat = lat</div><div>        um&amp;lon = lon</div><div><br></div><div>   ; Plot 1</div><div><div>       res              = True</div><div>        res@gsnAddCyclic = False</div><div>        res@gsnDraw = False</div>
<div>        res@gsnFrame = False</div><div>        res@cnFillOn       = True</div><div>        res@cnLinesOn    = False</div><div>        res@mpMinLonF = min(cor&amp;lon)</div><div>        res@mpMinLatF = min(cor&amp;lat)</div>
<div>        res@mpMaxLonF = max(cor&amp;lon)</div><div>        res@mpMaxLatF = max(cor&amp;lat)</div><div>        res@lbLabelBarOn = False</div><div>        res@cnLevelSelectionMode = &quot;ManualLevels&quot;      ; set manual contour levels</div>
<div>        res@cnMinLevelValF = -1.00    ; set min colour level</div><div>        res@cnMaxLevelValF = 1.00     ; set max colour level</div><div>        res@cnLevelSpacingF = 0.2     ; set colour spacing</div><div>      </div>
<div>        plot   = gsn_csm_contour_map_ce(wks,cor, res)</div></div><div><br></div><div>    ;plot 2</div><div><br></div><div><div>       res2 = True</div><div>        res2@gsnAddCyclic = False</div><div>        res2@gsnDraw = False</div>
<div>        res2@gsnFrame = False</div><div>        res@cnFillOn       = True</div><div>        res@cnLinesOn    = False</div><div>        res2@cnLevelSelectionMode = &quot;ManualLevels&quot;</div><div>        res2@cnMinLevelValF = 0.00</div>
<div>        res2@cnMaxLevelValF = 1.00</div><div>        res2@cnLevelSpacingF = 0.01</div><div>        res2@cnInfoLabelOn = False</div><div>        res2@cnLinesOn = False</div><div>        res2@cnLineLabelsOn = False</div>
<div>        res2@cnFillScaleF = 0.6</div><div><br></div><div>        plot2 = gsn_csm_contour(wks,um,res2)</div></div><div><br></div><div>   ;Overlay</div><div><div>       opt = True</div><div>        opt@gsnShadeFillType = &quot;pattern&quot;      ; pattern fill</div>
<div>        opt@cnFillPatterns    =17</div><div>        opt@cnFillScales = 0.3</div><div>        opt@gsnShadeLow = 7                   ; use pattern #2</div><div><br></div><div>        plot2 = gsn_contour_shade(plot2,0.05,-999,opt)  ; the sginificant values</div>
</div><div><br></div><div>   overlay(plot,plot2)</div><div><br></div><div>I also wanted to take the chance to ask, is there any way to put the pattern like a dashed line instead a continue line?? (I had read that the color can&#39;t be changed, but I am not sure), would there be any way to change the color of the pattern?<br>
</div><div><br></div><div>Many thanks in advance for your help,</div><div><br></div><div>cheers,</div><div><br></div><div>Noelia</div></div>