<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p>Hi <br>
</p>
<p><br>
</p>
<p>Since I am not using any cumulus scheme due to size of grids <10 km therefore I am only using RAINNC.<br>
</p>
<p><br>
</p>
<p>See below the script </p>
<p><span style="font-family:"Times New Roman""> </span><span style="font-family:"Times New Roman""></span><br style="font-family:"Times New Roman"">
</p>
<div>
<p style="margin-bottom:0in; line-height:100%">a=addfile("wrfout_d05_2016-04-01_00:00:00.nc","r")</p>
<p style="margin-bottom:0in; line-height:100%">times = wrf_user_getvar(a,"times",-1) ; get all times in the file</p>
<p style="margin-bottom:0in; line-height:100%">ntimes = dimsizes(times) <br>
</p>
<p style="margin-bottom:0in; line-height:100%"><br>
</p>
<p style="margin-bottom:0in; line-height:100%"><br>
</p>
<p style="margin-bottom:0in; line-height:100%">do it = 0,ntimes-1,2 </p>
<p style="margin-bottom:0in; line-height:100%">rain = wrf_user_getvar(a,"RAINNC",it)</p>
<div>if ( it .eq. 0 ) then<br>
rain_save = rain<br>
<br>
else<br>
rain_save = wrf_user_getvar(a,"RAINNC",it-1)</div>
<br>
</div>
<div>
<p style="margin-bottom:0in; line-height:100%"> end if</p>
<p style="margin-bottom:0in; line-height:100%">end do<br>
</p>
<p style="margin-bottom:0in; line-height:100%"><br>
</p>
<p style="margin-bottom:0in; line-height:100%">res=True</p>
<p style="margin-bottom:0in; line-height:100%"><span id="ms-rterangepaste-start"></span><span>type="x11"</span><span id="ms-rterangepaste-end"></span><br>
</p>
</div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<span>wks = gsn_open_wks(type,"Rain")</span></div>
<div dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<span></span><br>
</div>
x= ispan(0,24,1)</div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
plot =gsn_csm_xy(wks,x,rain_save,res)</div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<span style="font-family:"Times New Roman"">
<div> <br>
<br>
<br>
</div>
</span><br style="font-family:"Times New Roman"">
<br>
<p></p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><b><br>
</b></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif; font-size:15.4545450210571px; margin:0px; background-color:rgb(255,255,255)">
<font size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font size="2" color="#1F497D" face="Arial Bold"><span style="font-size:11pt">Muhammad Omer Mughal</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif; font-size:15.4545450210571px; margin:0px; background-color:rgb(255,255,255)">
<font size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font size="2" color="#1F497D" face="Arial Bold"><span style="font-size:11pt">MSc BSc Mechanical Engineering</span></font><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:8pt"><br>
</span></font><font size="2" color="#AB8303" face="Arial Bold"><span style="font-size:9pt">PhD Research Scholar</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif; font-size:15.4545450210571px; margin:0px; background-color:rgb(255,255,255)">
<font size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font size="2" color="#AB8303" face="Arial Bold"><span style="font-size:9pt">Remote Sensing and Satellite Research Group</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif; font-size:15.4545450210571px; margin:0px; background-color:rgb(255,255,255)">
<font size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font size="2" color="#AB8303" face="Arial Bold"><span style="font-size:9pt">Department of Imaging and Applied Physics</span></font><font size="2" color="#AB8303" face="Arial Bold"><span style="font-size:9pt"><br>
Curtin University</span></font><font size="2" color="#AB8303" face="Arial Bold"><span style="font-size:9pt"><br>
</span></font><font size="2" color="#1F497D" face="Calibri,sans-serif"><span style="font-size:11pt"><br>
</span></font><font size="2" color="#1F497D" face="Arial Bold"><span style="font-size:9pt">Curtin University</span></font><font size="2" color="#1F497D" face="Arial Bold"><span style="font-size:9pt"><br>
</span></font><font size="2" color="#AB8303" face="Arial Bold"><span style="font-size:9pt">Tel |</span></font><font size="2" color="#1F497D" face="Arial Bold"><span style="font-size:9pt"> </span></font><font size="2" color="#1F497D" face="Arial,sans-serif"><span style="font-size:9pt">+61
8 9266 7962</span></font><font size="2" color="#1F497D" face="Calibri,sans-serif"><span style="font-size:9pt"> </span></font><font size="1" color="#1F497D" face="Calibri,sans-serif"><span style="font-size:7pt"><br>
</span></font><font size="2" color="#AB8303" face="Arial Bold"><span style="font-size:9pt">Fax |</span></font><font size="2" color="#1F497D" face="Arial Bold"><span style="font-size:9pt"> </span></font><font size="2" color="#1F497D" face="Arial,sans-serif"><span style="font-size:9pt">+61
8 9266 2377</span></font><font size="2" color="#1F497D" face="Arial,sans-serif"><span style="font-size:9pt"><br>
</span></font><font size="2" color="#AB8303" face="Arial Bold"><span style="font-size:9pt">Mobile |</span></font><font size="2" color="#1F497D" face="Calibri,sans-serif"><span style="font-size:9pt"> </span></font><font size="2" color="#1F497D" face="Arial,sans-serif"><span style="font-size:9pt">0470 237 525</span></font><font size="2" color="#1F497D" face="Calibri,sans-serif"><span style="font-size:9pt"> </span></font><font size="2" color="#1F497D" face="Calibri,sans-serif"><span style="font-size:9pt"><br>
</span></font><font size="2" color="#1F497D" face="Calibri,sans-serif"><span style="font-size:9pt"><br>
</span></font><font size="2" color="#AB8303" face="Arial Bold"><span style="font-size:9pt">Email |</span></font><font size="2" color="#1F497D" face="Calibri,sans-serif"><span style="font-size:9pt"> </span></font><a href="mailto:m.lynch@curtin.edu.au" target="_blank" id="LPNoLP"><font size="2" face="Arial,sans-serif"><span style="font-size:9pt">m.mughal1@postgrad.curtin.edu.au</span></font></a><font size="2" color="#1F497D" face="Arial,sans-serif"><span style="font-size:9pt"> </span></font><font size="2" color="#1F497D" face="Arial,sans-serif"><span style="font-size:9pt"><br>
</span></font><font size="2" color="#AB8303" face="Arial Bold"><span style="font-size:9pt">Web |</span></font><font size="2" color="#AB8303" face="Calibri,sans-serif"><span style="font-size:9pt"> </span></font><a href="http://curtin.edu.au/" target="_blank" id="LPNoLP"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Arial,sans-serif"><span style="font-size:9pt">http://curtin.edu.au</span></font></span></font></a><font size="2" color="#1F497D" face="Arial,sans-serif"><span style="font-size:9pt"><br>
</span></font><font size="1" color="#1F497D" face="Calibri,sans-serif"><span style="font-size:7pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif; font-size:15.4545450210571px; margin:0px; background-color:rgb(255,255,255)">
<font size="1" color="#1F497D" face="Calibri,sans-serif"><span style="font-size:6pt"></span></font><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:6pt">Curtin University is a trademark of Curtin University of Technology. </span></font><br>
</div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif; font-size:15.4545450210571px; margin:0px; background-color:rgb(255,255,255)">
<font size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:6pt">CRICOS Provider Code 00301J (WA), 02637B (NSW)</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif; font-size:15.4545450210571px; margin:0px; background-color:rgb(255,255,255)">
<font size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:6pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif; font-size:15.4545450210571px; margin:0px; background-color:rgb(255,255,255)">
<font size="3" face="Times New Roman,serif"><span style="font-size:12pt"><font size="1" color="#1F497D" face="Arial,sans-serif"><span style="font-size:6pt"><br>
</span></font></span></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Adam Phillips <asphilli@ucar.edu><br>
<b>Sent:</b> Thursday, 16 November 2017 1:12:13 AM<br>
<b>To:</b> Muhammad Omer Mughal<br>
<b>Cc:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] Hourly Rain fall</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Muhammad,
<div>Without seeing a script and the resulting plot I do not think anyone can assist. Please attach a script and the plot that shows the issue.</div>
<div>Adam</div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Wed, Nov 15, 2017 at 7:57 AM, Muhammad Omer Mughal <span dir="ltr">
<<a href="mailto:m.mughal1@postgrad.curtin.edu.au" target="_blank">m.mughal1@postgrad.curtin.edu.au</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Hi<br>
<br>
I want to calculate hourly rainfall from WRF output using RAINNC. I want to plot it as hourly averaged along the x and y axis with x as the hour and y as cumilative rainfall.The plot seems weird because the cumulative rainfall for hour zero is taken into account.
Can some one kindly elaborate how to correct this plot?<br>
<br>
<br>
<br>
<br>
Muhammad Omer Mughal<br>
MSc BSc Mechanical Engineering<br>
PhD Research Scholar<br>
Remote Sensing and Satellite Research Group<br>
Department of Imaging and Applied Physics<br>
Curtin University<br>
<br>
Curtin University<br>
Tel | <a href="tel:%2B61%208%209266%207962" value="+61892667962">+61 8 9266 7962</a><br>
Fax | <a href="tel:%2B61%208%209266%202377" value="+61892662377">+61 8 9266 2377</a><br>
Mobile | 0470 237 525<br>
<br>
Email | <a href="mailto:m.mughal1@postgrad.curtin.edu.au">m.mughal1@postgrad.curtin.edu.<wbr>au</a><br>
Web | <a href="http://curtin.edu.au" rel="noreferrer" target="_blank">http://curtin.edu.au</a><br>
<br>
Curtin University is a trademark of Curtin University of Technology.<br>
CRICOS Provider Code 00301J (WA), 02637B (NSW)<br>
<br>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>
<div><span><font color="#888888">Adam Phillips <br>
</font></span></div>
<span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br>
</font></span></div>
</div>
<div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>
</font></span><span><font color="#888888">303-497-1726 </font></span></div>
<span><font color="#888888"></font></span>
<div>
<div><span><font color="#888888"><br>
</font></span>
<div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>