<div dir="ltr">Hi Toni,<div>I understood your sound explanation. How could I create an empty array and every loop will paste that array? Actually, I need to extract whole hourly data over land for further PDF analysis. I tried to plot first because I wanted to confirm that I could produce plot correctly for whole hourly data. </div><div><br></div><div>Any suggestions would be appreciated?</div><div><br></div><div>Best wishes,</div><div>Jalal</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 13, 2019 at 9:19 PM Toni Klemm <<a href="mailto:toni-klemm@tamu.edu">toni-klemm@tamu.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="auto">Hi Jalal,<div><br></div><div>You mean you want to create a plot for each of your 2444 loops (since your data is hourly and you want hourly plots)? In that case you should use your original first attempt and include code to create a plot within the loop. You should include “i” in the output file name to get a different file name for each loop, so that your plot doesn’t get overwritten each time.</div><div><br></div><div>As a thought, 2444 files in one folder can be slow to access I noticed from my own work. You might want to think about some kind of file organization, like include a loop to create a new folder every time “i” is divisible by 100 or so, thereby limiting the number of files to 100 per folder.</div><div><br></div><div>Good luck,</div><div>Toni</div><div><br><br><div id="gmail-m_-5138565920812922838AppleMailSignature" dir="ltr"><b style="background-color:rgba(255,255,255,0);font-size:13pt">Toni Klemm</b><b style="background-color:rgba(255,255,255,0);font-size:13pt"><span>, </span><span>Ph.D.</span></b><div><span style="background-color:rgba(255,255,255,0);font-size:13pt">Postdoctoral Research Associate</span></div><div><span style="background-color:rgba(255,255,255,0);font-size:13pt">Department of Ecosystem Science and Management</span></div><div><span style="background-color:rgba(255,255,255,0);font-size:13pt">College of Agriculture and Life Sciences</span></div><div><span style="background-color:rgba(255,255,255,0);font-size:13pt">Texas A&M University, College Station, TX</span></div><div><span style="background-color:rgba(255,255,255,0);font-size:13pt">Contributor to the </span><a href="https://www.eccforum.org/" style="background-color:rgba(255,255,255,0);font-size:13pt" target="_blank">Early Career Climate Forum</a></div><div><span style="background-color:rgba(255,255,255,0);font-size:13pt"><a href="http://www.toni-klemm.de/" target="_blank">www.toni-klemm.de</a> | </span><a href="https://twitter.com/ToniKlemm" style="background-color:rgba(255,255,255,0);font-size:13pt" target="_blank">@toniklemm</a></div><div><br></div></div><div dir="ltr"><br>On Feb 13, 2019, at 2:14 AM, Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>My data is hourly. I want to plot hourly data without dimension average. Could you tell me where I need to change from my loop? I want to take whole time 2444.</div><div><br></div><div>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=CXUkFnTzzr5qrit9QEbg0vsqVwKx_8rF2UVms6aMoAI&s=iIs8A7ehPl3cQYVG_plfyWLyMecJ6Ilr3w5-W8sbF_w&e=" target="_blank">bob_dd.nc</a>","r")</div><div>do i =0,2443</div><div> TRMM = f->pcp(i,{0:30},{65:110}) </div><div> end do</div><div><br></div><div>Best Regards,</div><div>Jalal</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 13, 2019 at 12:46 PM Toni Klemm <<a href="mailto:toni-klemm@tamu.edu" target="_blank">toni-klemm@tamu.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>Hi Jamal,<div><br></div><div>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><br></div><div>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><br></div><div>I hope that makes sense.</div><div><br></div><div>Toni<br><div>
<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;text-decoration:none"><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;text-decoration:none"><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;text-decoration:none"><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;text-decoration:none"><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"><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"><font face="Calibri"><br class="gmail-m_-5138565920812922838gmail-m_2272170644238324704Apple-interchange-newline"><br></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"><font face="Calibri"><b>Toni Klemm, Ph.D.<br></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">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">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">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"><font face="Calibri">Contributor to the <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.eccforum.org&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CXUkFnTzzr5qrit9QEbg0vsqVwKx_8rF2UVms6aMoAI&s=AZ0H73b1OhlqI7lxkFnFPPN6IxQb6pKG3ClLV6AAGDc&e=" target="_blank">Early Career Climate Forum</a><br><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toni-2Dklemm.de&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CXUkFnTzzr5qrit9QEbg0vsqVwKx_8rF2UVms6aMoAI&s=dMeCBsXP44WME1b8UafCArrcC3EuwRRuixwnyRkV3ic&e=" target="_blank">www.toni-klemm.de</a> | <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_toniklemm&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CXUkFnTzzr5qrit9QEbg0vsqVwKx_8rF2UVms6aMoAI&s=D4MPz7NB8pDKZKx28FwwZYge4Nu234sYnmMJHHMAffw&e=" target="_blank">@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"><font face="Calibri"><br></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"><font face="Calibri"><br></font></div></div></div><br class="gmail-m_-5138565920812922838gmail-m_2272170644238324704Apple-interchange-newline"></div><br class="gmail-m_-5138565920812922838gmail-m_2272170644238324704Apple-interchange-newline"></div><br class="gmail-m_-5138565920812922838gmail-m_2272170644238324704Apple-interchange-newline"></div><br class="gmail-m_-5138565920812922838gmail-m_2272170644238324704Apple-interchange-newline"><br class="gmail-m_-5138565920812922838gmail-m_2272170644238324704Apple-interchange-newline">
</div>
<div><br><blockquote type="cite"><div>On Feb 12, 2019, at 2:20 PM, Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@gmail.com</a>> wrote:</div><br class="gmail-m_-5138565920812922838gmail-m_2272170644238324704Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div> Hi all, </div><div>When I did loop over time, I got a spatial figure that I did not expect (dd_loop figure). </div><div>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=" target="_blank">bob_dd.nc</a>","r")<br></div><div>do i =0,2443</div><div> TRMM = f->pcp(i,{0:30},{65:110}) </div><div> end do</div><div><br></div><div>I got the right spatial pattern when I did dimension average (dd_avg figure). </div><div><div>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=" target="_blank">bob_dd.nc</a>","r")</div><div>TRMM = f->pcp(:,{0:30},{65:110}) </div><div> dd_ave = dim_avg_n_Wrap(TRMM,0)</div></div><div><br></div><div>How can I get similar spatial pattern? What is the difference between time loop and dimension average? Could you explain, please? </div><div><br></div><div>Jalal</div>-- <br><div dir="ltr" class="gmail-m_-5138565920812922838gmail-m_2272170644238324704gmail_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"><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="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">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>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">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></div></div>
<span id="gmail-m_-5138565920812922838gmail-m_2272170644238324704cid:f_js27jh7o0"><dd_loop.png></span><span id="gmail-m_-5138565920812922838gmail-m_2272170644238324704cid:f_js27jmou1"><dd_avg.png></span>_______________________________________________<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="https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CXUkFnTzzr5qrit9QEbg0vsqVwKx_8rF2UVms6aMoAI&s=NA7lfYlsnxa80pXhMWITDURNdvpg9QVV_UG4UQZLC78&e=" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></div></blockquote></div><br></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-5138565920812922838gmail_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="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.dmjalal90.weebly.com&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CXUkFnTzzr5qrit9QEbg0vsqVwKx_8rF2UVms6aMoAI&s=nlnHQsToXZfWCUsnknszbKOra4zU3isLtkAD8zudZqY&e=" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>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=CXUkFnTzzr5qrit9QEbg0vsqVwKx_8rF2UVms6aMoAI&s=ux_TEWVwZ4QDVZeE2c1flYT56zUid4Es-rejlnMVaOA&e=" 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></blockquote></div></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>