<div dir="ltr">Hi:<div><br></div><div>Would this help you? <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/onedtond.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/onedtond.shtml</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 3, 2022 at 4:14 PM ali mughal 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 dir="ltr"><div dir="ltr">Dear Ehsan <div><br></div><div>Thank you for letting me know.</div><div><br></div><div>I didn't receive any reply to a couple of my previous messages which made me worried.</div><div><br></div><div>In any case I modified the attached code which allowed me to see the correct values. </div><div><br></div><div><div>a=addfile("../../../wrfout_d05_2016-03-31_00:00:00","r")</div><div><br></div><div>b=addfile("../../..wrfout_d05_2016-03-31_00:00:00","r")</div><div><br></div><div> times = wrf_user_list_times(a)<br></div><div> ntimes = dimsizes(times)</div><div><br></div><div>do it = 0,ntimes-1</div><div><br></div><div><br></div><div> TA_MEAN_IND = wrf_user_getvar(a,"TA_MEAN",it)</div><div> TA_MEAN_NO_IND = wrf_user_getvar(b,"TA_MEAN",it)</div><div> ts= TA_MEAN_IND-TA_MEAN_NO_IND</div><div><br></div><div> ts1=ts(0,45:49,60:64)</div><div> t_diff= avg(ts1)</div><div><br></div><div>print ("time="+times(it)+" TA_Average="+t_diff)<br></div><div><br></div><div>end do</div></div><div><br></div><div>Now what I want to do is reshape t_diff. t_diff is a one dimensional array that contains 720 values. I want to reshape to the following so that I can take a mean of 24 hours over a 30 day period </div><div>t_new = reshape(t_diff,(/24,30/))</div><div><br></div><div>but this does not work inside the loop. Could any one suggest how to reshape it properly so that I can take a mean and have 24 values of t_new at the end of the loop. </div><div><br></div><div>Thanks again</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div><div><br></div><div><br></div><div><br>On Thursday, March 3, 2022, Ehsan Taghizadeh <<a href="mailto:ehsantaghizadeh@yahoo.com" target="_blank">ehsantaghizadeh@yahoo.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"bookman old style","new york",times,serif;font-size:16px"><div><div dir="ltr"><div><div dir="ltr" style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">Dear Ali,</div><div dir="ltr" style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">Your email to the NCL community has been well received.</div></div><br></div><div><br></div><div><div dir="ltr" style="font-family:"old times",serif;font-size:16px"><div><div dir="ltr" style="color:rgb(0,0,0);font-family:"old times",serif;font-size:16px"><i><font size="2">-----------------------------------------------------------------------------</font></i></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"old times",serif;font-size:16px"><i><font size="2">Sincerely,</font></i></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"old times",serif;font-size:16px"><i><font size="2">Ehsan Taghizadeh</font></i></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"old times",serif;font-size:16px"><i><font size="2">Ph.D. of Meteorology</font></i></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"old times",serif;font-size:16px"><i><font size="2">Institute of Geophysics, University of Tehran, Iran</font></i></div><div dir="ltr" style="color:rgb(0,0,0);font-family:"old times",serif;font-size:16px"><i><font size="2">I.R. of Iran Meteorological Organization (IRIMO)</font></i></div></div><br></div></div></div>
<div><br></div><div><br></div>
</div><div>
<div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
<div>
On Saturday, February 26, 2022, 02:56:57 AM GMT+3:30, ali mughal via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div>Hi all <div><br></div><div>I am not sure if the following email was received by NCL community. </div><div>Can anyone kindly let me know if the following email and the associated attachment can be seen in the group ?</div><div><br></div><div>Thanks and Regards <br><br>---------- Forwarded message ----------<br>From: <b>ali mughal</b> <<a rel="nofollow noopener noreferrer" href="mailto:mughalali655@gmail.com" target="_blank">mughalali655@gmail.com</a>><br>Date: Saturday, February 19, 2022<br>Subject: request<br>To: Ncl-talk <<a rel="nofollow noopener noreferrer" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br><br><br>Dear Ncl users<div><br></div><div>I would be grateful if someone can reply to my following inquiry posted a few days ago.<br><br>---------- Forwarded message ----------<br>From: <b>ali mughal</b> <<a rel="nofollow noopener noreferrer" href="mailto:mughalali655@gmail.com" target="_blank">mughalali655@gmail.com</a>><br>Date: Tuesday, February 15, 2022<br>Subject: request<br>To: Ncl-talk <<a rel="nofollow noopener noreferrer" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br><br><br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear NCL users<div><br></div><div>In the attached script all values of TA_Average are equal to 0. </div><div><br></div><div>But when I individually calculate t2a_sub 2_avg and t2b _sub2_avg and evaluate the difference then the values are not 0. Can any one tell me what could be the reason and how to write the output correctly in to a csv or a text format. </div><div><br></div><div>I will be grateful for the support.</div><div><br></div></div></div></div></div>
<br></div>
<br></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" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div>
</div>
</div></div></blockquote></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"><br></div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior <font color="#000000">Scientist, Lecturer,</font></div><div><div><font color="#000000">The Institute of Earth Sciences, <br>The Hebrew University of Jerusalem, <br>Givat Ram, Jerusalem 91904, Israel <br></font></div><font color="#000000">Tel: 972 547 231 170<br>Fax: (972)-25662581</font></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">https://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div>