<div dir="ltr"><div>Thanks for the suggestions sir and I modified the script accordingly, but still, I couldn't able to plot 95% CI. <br></div><div><br></div><div>I attached the original data with my original script. so please provide some information on that.</div><div><br></div><div>thanks<br></div><div><br></div><div><br></div><div><br></div><div><br> </div><div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>---<br></div><div><font size="2"><span>Kunal Bali<br></span></font></div><br><div><b><br></b></div><div><br></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 5, 2019 at 4:05 AM Adam Phillips <<a href="mailto:asphilli@ucar.edu">asphilli@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Kunal,<div>I do not have any experience with the rtest function, but I do know that you should not need to mask your sig_Dec array. Also note that you are creating contours from 90 to 100 by 1, and that you do not really need to use gsn_contour_shade.</div><div>Try this:<br></div><div><div><br></div><div>prob_Dec=rtest(ccr,24,0)</div><div>sig_Dec =100*(1-prob_Dec)</div><div>copy_VarAtts(ts2, sig_Dec)                    </div><div>copy_VarCoords_1(ts1,sig_Dec)</div><div><br></div><div>  res2=True</div><div>  res2@gsnLeftString     = ""</div><div>  res2@gsnRightString     = ""</div><div>  res2@gsnDraw              = False           ; Do not draw plot</div><div>  res2@gsnFrame             = False           ; Do not advance frome   </div><div>  res2@cnLinesOn            = False    ; turn off contour lines<br></div><div>  res2@lbLabelBarOn         = False                            ; turn off label bar</div><div>  res2@cnFillColor          = "black"</div><div>  res2@cnLevelSelectionMode = "ExplicitLevels"   ; explicitly specify contour levels</div><div>  res2@cnLevels       = 95.            ; set one contour: 95</div><div>  res2@cnMonoFillPattern = False</div><div>  res2@cnFillPatterns = (/0,16/)    ; all values .lt.95 set to full fill, values .ge.95 =  fill pattern 16</div><div><div><div>  res2@cnMonoFillColor      = False</div></div><div>  res2@cnFillColors = (/"transparent","black"/)  ; set all values .lt.95 = transparent, all values .ge.95 = black</div><div><br></div></div><div>  plotc=gsn_csm_contour(wks,sig_Dec, res2) ; contour is at 95</div><div><br></div></div><div>If that does not work let ncl-talk know, and send along your sig_Dec array (in a .nc file) so everyone can look at the array. </div><div>Adam</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 2, 2019 at 10:14 AM Kunal Bali <<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear NCL users,</div><div dir="ltr"><br></div><div dir="ltr">for computing 95% CI, I used the following code. </div><div dir="ltr">In that, I am trying to first calculate the 95% CI and then overlay (with pattern/shading fill) with the other plot. But I am not getting the 95% area over the high correlation area. So, could you please let me know whether I am using the correct code or not.</div><div dir="ltr">The result is also attached herewith.</div><div></div><div><br></div><div><br></div><div><div>;**********************************************</div><div>;Calculating significance</div><div>;**********************************************</div><div><br></div><div> prob_Dec=rtest(ccr,24,0)</div><div> sig_Dec =100*(1-prob_Dec)</div><div><br></div><div>printVarSummary(sig_Dec)  </div><div><br></div><div> copy_VarAtts(ts2, sig_Dec)                    </div><div> copy_VarCoords_1(ts1,sig_Dec)</div><div> </div><div> sig_Dec = mask(sig_Dec, sig_Dec.ge.100,False) </div><div> sig_Dec = mask(sig_Dec, sig_Dec.lt.90,False)</div><div>  </div><div><br></div><div>  res2=True</div><div>  res2@gsnLeftString     = ""</div><div>  res2@gsnRightString     = ""</div><div>  res2@gsnDraw              = False           ; Do not draw plot</div><div>  res2@gsnFrame             = False           ; Do not advance frome   </div><div>  ;res2@cnMonoFillColor      = False</div><div>  res2@cnLinesOn            = False    ; turn off contour lines</div><div>  res2@lbLabelBarOn         = False                            ; turn off label bar</div><div>  res2@cnFillColor          = "black"</div><div>  res2@cnLevelSelectionMode = "ManualLevels"   ; manually specify contour levels</div><div>  res2@cnMinLevelValF       = 90             ; min level</div><div>  res2@cnMaxLevelValF       = 100             ; max level</div><div>  res2@cnLevelSpacingF      =  1              ; contour interval</div><div>  res2@gsnSpreadColors      = False</div><div><br></div><div><br></div><div>   plotB=gsn_csm_contour(wks,sig_Dec, res2) ; contours are at 90,100 </div><div><br></div><div>   opt = True</div><div>   opt@gsnShadeFillType = "pattern" ; pattern fill</div><div>   opt@gsnShadeHigh =16     ; use pattern #2</div><div>   opt@gsnShadeFillDotSizeF =  2</div><div>   plotc=gsn_contour_shade(plotB,-999.,90.,opt) </div></div><div><br></div><div><div>  </div><div>  pmres                        =  True</div><div>  pmres@gsMarkerColor          = "white"       ;-- marker color</div><div>  pmres@gsMarkerSizeF          =  50       ;-- set size of marker</div><div>  pmres@gsLineThicknessF       =  46.          ;-- marker line thickness</div><div>  pmres@gsMarkerIndex          = 1</div><div>  pmres@gsFillColor            = "white"</div><div>    </div></div><div><br></div><div>SUMMARY:</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Variable: ts1</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Type: float</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Total Size: 389486592 bytes</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">            97371648 values</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 3</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>[lat | 2112] x [lon | 1921] x [time | 24]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Coordinates: </span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">            lat: [5.0078125..37.9921875]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">            lon: [  68..  98]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">            time: [9465090..9465113]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 8</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  vmin :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>-1e+15</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  vmax :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>1e+15</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  fmissing_value :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">     </span>1e+15</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  missing_value :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>1e+15</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  _FillValue :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>1e+15</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  units :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>kg m-3</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  </span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Variable: ts2</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Type: float</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Total Size: 389486592 bytes</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">            97371648 values</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 3</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>[lat | 2112] x [lon | 1921] x [time | 24]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Coordinates: </span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">            lat: [5.0078125..37.9921875]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">            lon: [  68..  98]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">            time: [9466530..9466553]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 8</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  vmin :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>-1e+15</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  vmax :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>1e+15</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  fmissing_value :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">     </span>1e+15</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  missing_value :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>1e+15</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  _FillValue :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>1e+15</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  units :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>m</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  </span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Variable: ccr</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Type: float</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Total Size: 16228608 bytes</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">            4057152 values</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 2</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>[2112] x [1921]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Coordinates: </span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 1</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">  _FillValue :<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>1e+15</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">     </span>min=-0.996108   max=0.325499</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo;min-height:19px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Variable: sig_Dec</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Type: float</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Total Size: 16228608 bytes</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">            4057152 values</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 2</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>[2112] x [1921]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:16px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Coordinates: </span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><br></div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail-m_-1604676907301775158gmail-m_5927330688432409503gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>---<br></div><div><font size="2"><span>Kunal<br></span></font></div><div><br></div><div><br></div><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></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" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-1604676907301775158gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>