<div dir="ltr"><div>Hi all,</div><div><br></div><div>I have some problems using rtest when I have "missing values". 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]->cor(0,:,:)<br></div><div> reg = corFiles[i]->reg(0,:,:)</div>
<div> lat = corFiles[i]->lat</div><div> lon = corFiles[i]->lon</div><div> lon@long_name = "longitude"</div><div> lon@units = "degrees_east"</div><div> lat@long_name = "latitude"</div>
<div> lat@units = "degrees_north"</div><div><br></div><div> um = rtest(reg(lat|:, lon|:), siz(i), 0) ; rtest for the regression</div><div> um!0 = "lat"</div><div> um!1 = "lon"</div>
<div> um&lat = lat</div><div> um&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&lon)</div><div> res@mpMinLatF = min(cor&lat)</div>
<div> res@mpMaxLonF = max(cor&lon)</div><div> res@mpMaxLatF = max(cor&lat)</div><div> res@lbLabelBarOn = False</div><div> res@cnLevelSelectionMode = "ManualLevels" ; 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 = "ManualLevels"</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 = "pattern" ; 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'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>