[ncl-talk] Hourly Rain fall

Muhammad Omer Mughal m.mughal1 at postgrad.curtin.edu.au
Wed Nov 15 19:02:50 MST 2017


Hi


Since I am not using any cumulus scheme due to size of grids <10 km therefore I am only using RAINNC.


See below the script



a=addfile("wrfout_d05_2016-04-01_00:00:00.nc","r")

times = wrf_user_getvar(a,"times",-1) ; get all times in the file

ntimes = dimsizes(times)



do it = 0,ntimes-1,2

rain = wrf_user_getvar(a,"RAINNC",it)

if ( it .eq. 0 ) then
         rain_save = rain

    else
        rain_save = wrf_user_getvar(a,"RAINNC",it-1)


 end if

end do


res=True

type="x11"

wks = gsn_open_wks(type,"Rain")

x= ispan(0,24,1)
plot =gsn_csm_xy(wks,x,rain_save,res)










Muhammad Omer Mughal
MSc BSc Mechanical Engineering
PhD  Research Scholar
Remote Sensing and Satellite Research Group
Department of Imaging and Applied Physics
Curtin University

Curtin University
Tel | +61 8 9266 7962
Fax | +61 8 9266 2377
Mobile | 0470 237 525

Email | m.mughal1 at postgrad.curtin.edu.au<mailto:m.lynch at curtin.edu.au>
Web | http://curtin.edu.au<http://curtin.edu.au/>

Curtin University is a trademark of Curtin University of Technology.
CRICOS Provider Code 00301J (WA), 02637B (NSW)


________________________________
From: Adam Phillips <asphilli at ucar.edu>
Sent: Thursday, 16 November 2017 1:12:13 AM
To: Muhammad Omer Mughal
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] Hourly Rain fall

Hi Muhammad,
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.
Adam

On Wed, Nov 15, 2017 at 7:57 AM, Muhammad Omer Mughal <m.mughal1 at postgrad.curtin.edu.au<mailto:m.mughal1 at postgrad.curtin.edu.au>> wrote:
Hi

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?




Muhammad Omer Mughal
MSc BSc Mechanical Engineering
PhD  Research Scholar
Remote Sensing and Satellite Research Group
Department of Imaging and Applied Physics
Curtin University

Curtin University
Tel | +61 8 9266 7962<tel:%2B61%208%209266%207962>
Fax | +61 8 9266 2377<tel:%2B61%208%209266%202377>
Mobile | 0470 237 525

Email | m.mughal1 at postgrad.curtin.edu.au<mailto:m.mughal1 at postgrad.curtin.edu.au>
Web | http://curtin.edu.au

Curtin University is a trademark of Curtin University of Technology.
CRICOS Provider Code 00301J (WA), 02637B (NSW)


_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



--
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/<http://www.cgd.ucar.edu/staff/asphilli/>   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171116/16def2ea/attachment.html>


More information about the ncl-talk mailing list