<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div>The minimum and maximum value showed nan:</div><div dir="ltr">(0) precipitation (mm) : min=-nan max=-nan<br></div><div dir="ltr">(0) Rain Total on Rain Days: prcTrace=1 (mm) : min=-nan max=-nan<br></div><div dir="ltr">(0) Rain Varianceon Rain Days: prcTrace=1 (mm) : min=-nan max=-nan<br></div><div dir="ltr"><br></div><div>Please find the printVarSummary, errors, and script in the attachment. </div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 19, 2019 at 11:49 PM Dennis Shea <<a href="mailto:shea@ucar.edu">shea@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"><br> f = addfile("all_BoB.nc", "r")<br> prc =f->pre(:,{65:110},{0:30})<br><br> prc_reorder = prc(time|:,latitude|:,longitude|:)<br>;printVarSummary(prc_reorder)</div><div>;printMinMax(prc_reorder,0)</div><div dir="ltr"><br></div><div> prcTrace = 1.0 ; mm</div><div> prcRain = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml" target="_blank"><b>where</b></a>(prc_reorder.ge.prcTrace, prc_reorder, prc_reorder@_FillValue)</div><div> <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/copy_VarMeta.shtml" target="_blank"><b>copy_VarMeta</b></a>(prc_reorder, prcRain)</div><div><div dir="ltr">;printVarSummary(prcRain)</div><div>;printMinMax(prcRain,0)</div></div><div><br></div><div> prcDayRainAvg = <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/dim_avg_n_Wrap.shtml" target="_blank"><b>dim_avg_n_Wrap</b></a>(prcRain, 0)</div><div> prcDayRainAvg@long_name = "Rain Total on Rain Days: prcTrace="+prcTrace<br></div><div dir="ltr"> prcDayRainVar = <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/dim_variance_n_Wrap.shtml" target="_blank"><b>dim_variance_n_Wrap</b></a>(prcRain,0)</div><div dir="ltr"> rcDayRainVar@long_name = "Rain Varianceon Rain Days: prcTrace="+prcTrace</div><div dir="ltr"><br></div><div dir="ltr"><div><div dir="ltr">;printVarSummary(prcDayRainAvg)</div><div>;printMinMax(prcDayRainAvg,0)</div><div><br></div><div><div dir="ltr"><div><div dir="ltr">;printVarSummary(prcDayRainVar)</div><div>;printMinMax(prcDayRainVar,0)</div><div><br></div><div>You will still get large variance numbers. Rain amounts span prcTrace to (say) 500.</div><div><br></div><div><br></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail-m_5320819871582869141gmail_attr">On Fri, Jan 18, 2019 at 11:38 PM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@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">Thanks for your kind explanation. Could I calculate and plot of per day variance, also for greater than 0 rainfall? </div><br><div class="gmail_quote"><div dir="ltr" class="gmail-m_5320819871582869141gmail-m_-7540474556931581614gmail_attr">On Thu, Jan 17, 2019 at 1:58 PM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@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">More: <br><div><div><b>dim_variance_n_Wrap</b>(prc_reorder,<b>0</b>) ; variance over <span style="color:rgb(0,0,255)"><b>all days</b></span>: <b>DRY and WET</b> seasons</div><div><br></div><div>Consider Pune, India. <br></div><div> (say; made up numbers) day 170: mean over DRY and WET seasons 10mm; range 0-500mm</div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 17, 2019 at 2:12 PM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@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>Well, you live with the monsoon.</div><div><br></div><div>Some days have zero precipitation and some monsoon days have VERY LARGE daily amounts.</div><div>Hence large variance.<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 16, 2019 at 10:53 PM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@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>Hi all,</div><div><br></div><div>I am getting a too large variation of rainfall. I used dim_variance_n_Wrap function to calculate variance. The first figure is for the mean rainfall and the second one is for variance at the same time. </div><div><br></div><div>Could anyone help me to understand where I am wrong?</div><div><br></div><div><div>Variable: prc_reorder</div><div>Type: double</div><div>Total Size: 491961600 bytes</div><div> 61495200 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes:<span style="white-space:pre-wrap"> </span>[time | 2847] x [latitude | 120] x [longitude | 180]</div><div>Coordinates: </div><div> time: [ 120..6939]</div><div> latitude: [0.125..29.875]</div><div> longitude: [65.125..109.875]</div><div>Number Of Attributes: 4</div><div> missing_value :<span style="white-space:pre-wrap"> </span>-nan</div><div> _FillValue :<span style="white-space:pre-wrap"> </span>-nan</div><div> units :<span style="white-space:pre-wrap"> </span>mm</div><div> long_name :<span style="white-space:pre-wrap"> </span>precipitation</div></div><div><br></div><div>Best regards,</div><div>Jalal</div>-- <br><div dir="ltr" class="gmail-m_5320819871582869141gmail-m_-7540474556931581614gmail-m_218461612931809550gmail-m_-7536788206683104079gmail-m_-5802588990053098024gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2" color="#000000"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><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></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>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_5320819871582869141gmail-m_-7540474556931581614gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2" color="#000000"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><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>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font color="#000000" size="2"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><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>