<div dir="ltr">Hi Atul,<div>If you could better describe the issue you are having in future postings it would be helpful, and would encourage more folks to take a look at your script. Thank you for sending an easy-to-run script. Running your script, I see the following issues:</div><div>1 - Within your double do loop you need to check for missing values:</div><div> do j=0,nlat-1<br> do i=0,nlon-1<br> if (.not.ismissing(pval(j,i))) then <----- Required<br> if (pval(j,i).lt.siglvl) then<br> sig(j,i) = 1.<br> else<br> sig(j,i) = 0.<br> end if<br> end if<br> end do<br> end do<br></div><div><br></div><div>Note that you can use the following where statement to do the exact same operation:</div><div>sig = where(pval.lt.siglvl,1,0)<br><br></div><div>2 - Change res@cnrasterFill=True to res@cnFillMode = "RasterFill"</div><div>3 - You were setting all colors to be filled to transparent. Change this:</div><div>res@cnFillColors = (/"transparent","transparent"/)<br></div><div>to this:</div><div>res@cnFillColors = (/"blue","transparent"/)<br></div><div><br></div><div>I have attached the script. If you have any further issues please respond to ncl-talk.</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 22, 2020 at 11:13 PM Atul Saini via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.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>Hi NCL,</div><div> Please Help.</div><div><br></div><div>Herewith this mail I attached datafiles of two different periods and the script.<div></div><div>Please help me to plot the p-value < 0.5 on the map with shades.</div><div></div><div>I have tried it using the attached data and script file.<br></div><div>But it is not working.</div><div>Your guidance to solve the issue is very important.</div></div><div><br></div><div><div dir="ltr"><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><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4">Regards,</font></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=1rJgOat56z2h361HUvXswhagxUqdjmqMa&revid=0Byj9ykpbAx3od2RJVmI1bHNUWW1MQkdTZGhHQ0g4RjEzbWZzPQ" width="420" height="126"></div><div><b> Mob. No. +91-8130662361 / +91-9868636507</b></div><div><b> <a href="https://www.researchgate.net/profile/Atul_Saini3" target="_blank">https://www.researchgate.net/profile/Atul_Saini3</a></b><br></div><div> <br></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></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_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>