<div dir="ltr"><div>I hope the code given below (in blue) is fine to get the correct P-values.</div><div>Please confirm.</div><div><br></div><div><br></div><div><span style="color:rgb(0,0,255)">begin<br><br>; specify file names (input&output, netCDF)<br> pathin = "./media/atul/Seagate_Atul/IGS_MonsoonOnsetPaper/Result/1_SD/fldmean_allyears/ttest_datafiles/" ; directory<br> fin1 = "File1.nc" ; input file name #1<br> fin2 = "File2.nc" ; input file name #2<br> ;fout = "signif_eraint_t2m_DJF" ; output file name<br> ;foutnc = fout+".nc"<br><br>; open input files<br> in1 = addfile(pathin+fin1,"r")<br> in2 = addfile(pathin+fin2,"r")<br><br>; read data<br> tmp1 = in1->rf<br> tmp2 = in2->rf<br><br>; t-test<br> xtmp = tmp1(lat|:,lon|:,time|:)<br> ytmp = tmp2(lat|:,lon|:,time|:)<br> ;xtmp = tmp1(latitude|:,longitude|:,time|:)<br> ;ytmp = tmp2(latitude|:,longitude|:,time|:)<br> Xave = dim_avg_Wrap(xtmp)<br> Yave = dim_avg_Wrap(ytmp)<br> Xvar = dim_variance(xtmp)<br> Yvar = dim_variance(ytmp)<br> Xs = dimsizes(tmp1(0,0,:))<br> Ys = dimsizes(tmp2(0,0,:))<br> iflag = False ; population variance similar<br> tval_opt = False ; p-value only<br> prob = ttest(Xave,Xvar,Xs,Yave,Yvar,Ys,iflag,tval_opt)</span></div><div><span style="color:rgb(0,0,255)"><br></span></div><div><span style="color:rgb(0,0,255)"><br></span></div><div><span style="color:rgb(0,0,255)"><br></span></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><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><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 21, 2020 at 7:28 PM Atul Saini <<a href="mailto:atulsainimail@gmail.com">atulsainimail@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>Herewith this mail I attached datafiles of two different periods.</div><div><br></div><div>One is controlled and another one uncontrolled. (File 1 and File 2 attached)<br></div><div><br></div><div>Please help me with a sample script to plot the p-value < 0.1 on the map with different colours.</div><div><br></div><div>I have tried Example 4 given on the <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ttest.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/ttest.shtml</a> web-link.</div><div><br></div><div>But it is not helping me.</div><div><br></div><div>Your guidance to solve the issue is very important.</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>
</blockquote></div>