<div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><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>Dear Sir Dennis and NCL Experts, </div><div><br></div><div>I tried your suggestions but still I'm unable to plot.</div><div>Attached is the modified script and the list of sample input files.</div><div><br></div><div>I tried getting the average between two years as a sample (2000 and 2001).</div><div>[1] Get the daily binned trmm 2a25</div><div>[2] Get monthly mean</div><div>[3] Get climatology</div><div><br></div><div>I have problems sorting and looping the files per month.</div><div><br></div><div>I'll appreciate any help on this matter.</div><div><br></div><div>Sincerely,</div><div>Lyndz</div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 1, 2020 at 12:15 AM 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> <b>nmos = 12</b></div><div> gbin = new ( (/<b>nmos,</b>nlat,mlon/), float )<br> gknt = new ( (/<b>nmos,</b>nlat,mlon/), integer)</div><div><br></div><div>Loop over each file and sum<br></div><div><br></div><div> nmo = ... ; determine the month [nmo=0,11] for the current file<br></div><div> <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/bin_sum.shtml" target="_blank"><b> bin_sum</b></a>(gbin(nmo,:,:),gknt(nmo,:,:),lon,lat,LON1D,LAT1D,ndtooned(x))</div><div><br></div><div>Later:</div><div> gknt = <b>where</b>(gknt.eq.0 , gknt@_FillValue, gknt)<br> gbin = gbin/gknt</div><div>=====================================<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 30, 2020 at 5:06 AM Lyndz via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@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">Dear NCL-experts,<div><br></div><div>I have a script for plotting the "DAILY" TRMM 2A25 swath data, which is attached to this email.</div><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"><br></div><div>I would like to get the MONTHLY CLIMATOLOGY of the files and plot them. I am not sure as to how I can modify the following script to generate these plots.</div><div><br></div><div>I have TRMM 2A25 HDF files from 1998 to 2015. All located in the same directory.</div><div><br></div><div><br></div><div>I'll appreciate any help on this matter.</div><div><br></div><div>Sincerely,</div><div>Lyndz</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></blockquote></div>
</blockquote></div>