<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Jamal,<div class=""><br class=""></div><div class="">It looks like your do loop in your first attempt does not average. You’re simply replacing the first dimension in TRMM with the next dataset every time you repeat the loop. That’s why your first and second plot look so different. </div><div class=""><br class=""></div><div class="">In your second attempt you're copying the entire first dimension and then average, that’s why it looks different. If you mean to do that (average the first dimension), your second attempt seems fine.</div><div class=""><br class=""></div><div class="">I hope that makes sense.</div><div class=""><br class=""></div><div class="">Toni<br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><br class="Apple-interchange-newline"><br class=""></font></div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><b class="">Toni Klemm, Ph.D.<br class=""></b>Postdoctoral Research Associate</font></div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Department of Ecosystem Science and Management</div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">College of Agriculture and Life Sciences</div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Texas A&M University, College Station, TX</div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Calibri" class="">Contributor to the <a href="http://www.eccforum.org" class="">Early Career Climate Forum</a><br class=""><a href="http://www.toni-klemm.de" class="">www.toni-klemm.de</a> | <a href="http://twitter.com/toniklemm" class="">@toniklemm</a></font></div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><br class=""></font></div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><font face="Calibri" class=""><br class=""></font></div></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Feb 12, 2019, at 2:20 PM, Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" class="">dmjalal90@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""> Hi all, </div><div class="">When I did loop over time, I got a spatial figure that I did not expect (dd_loop figure). </div><div class="">f = addfile("<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__bob-5Fdd.nc&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=00Y6K5t3WswGmNOO6WFFhxReMcZp10_pqq3Gh_aSm1c&s=1UQT6wjQp2nsSrxV7rcEPkMkD2C2aMAPttXb-3HRnnw&e=" class="">bob_dd.nc</a>","r")<br class=""></div><div class="">do i =0,2443</div><div class="">  TRMM = f->pcp(i,{0:30},{65:110})        </div><div class=""> end do</div><div class=""><br class=""></div><div class="">I got the right spatial pattern when I did dimension average (dd_avg figure). </div><div class=""><div class="">f = addfile("<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__bob-5Fdd.nc&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=00Y6K5t3WswGmNOO6WFFhxReMcZp10_pqq3Gh_aSm1c&s=1UQT6wjQp2nsSrxV7rcEPkMkD2C2aMAPttXb-3HRnnw&e=" class="">bob_dd.nc</a>","r")</div><div class="">TRMM = f->pcp(:,{0:30},{65:110})          </div><div class=""> dd_ave = dim_avg_n_Wrap(TRMM,0)</div></div><div class=""><br class=""></div><div class="">How can I get similar spatial pattern? What is the difference between time loop and dimension average? Could you explain, please? </div><div class=""><br class=""></div><div class="">Jalal</div>-- <br class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><font size="2" class=""><b class="">Md. Jalal Uddin</b></font></div><div dir="ltr" class="">MSc in Applied Meteorology (English Language)<br class="">Nanjing University of Information, Science and Technology, China</div><div dir="ltr" class=""><span style="letter-spacing:0.2px" class="">B.Sc. in Disaster Management (Hons.) </span><br class=""></div><div dir="ltr" class=""><span style="letter-spacing:0.2px" class="">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr" class="">Cell: +8613260859092, <span style="letter-spacing:0.2px" class="">+8801792052662</span></div><div dir="ltr" class=""><font size="2" class="">Web: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.dmjalal90.weebly.com&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=00Y6K5t3WswGmNOO6WFFhxReMcZp10_pqq3Gh_aSm1c&s=84I3BnXlOpSL3H8dxEaHylU9iBYalkvo1MlMON5vUsQ&e=" target="_blank" class="">www.dmjalal90.weebly.com</a>  <br class="">Facebook: jalal.hossen.39  <br class="">LinkedIn: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__bd.linkedin.com_in_md-2Djalal-2Duddin-2D80a026b0&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=00Y6K5t3WswGmNOO6WFFhxReMcZp10_pqq3Gh_aSm1c&s=6UgI5FMI3Ol23LyLDegxH5Kymdnzb6kdbxyqtVgYRbY&e=" target="_blank" class="">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a>   <br class="">Twitter: dmjalal90  <br class="">Skype: dmjalal90</font><br class=""></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></div></div>
<span id="cid:f_js27jh7o0"><dd_loop.png></span><span id="cid:f_js27jmou1"><dd_avg.png></span>_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>