[ncl-talk] Plotting WRF 24hr total rainfall

Zilore Mumba zmumba at gmail.com
Thu Jul 21 12:18:02 MDT 2022


I have hourly output files in my WRF runs, running up to 6 days. I would
like to plot daily total rainfal at D+00(at T+24), D+01(at T+48), up to
D+05. My understnding is that WRF rainfall is accumulated over the entire
run. I have run the model to T+48 over equatorial Africa, and it apparent
that the rainfall field at T+48 is very much wetter than at T+24,
suggesting T+48 is accumulation from the beginning of the run (attached
graphics).
My search indicates that it is best to do a difference in cdo or nco. So I
tried

cdo sub wrfoutT+48.nc wrfoutT+24.nc wrfout_cdodiff.nc
ncdiff wrfoutT+48.nc wrfoutT+24.nc wrfout_nc0diff.nc

Then I do a plot of wrfout_new.nc in ncl. I used the script WRF_pcp_1.cnl,
except I removed the plotting of terrain height.
With cdodiff.nc I get the following message and error:
fatal:Number of subscripts do not match number of dimensions of variable,
(3) subscripts used, (2) subscripts expected
fatal:["Execute.c":6377]:variable (XLAT) is not in file (in_file)
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 5140 in
file
/home/zmumba/anaconda3/envs/py39/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 5241 in
file
/home/zmumba/anaconda3/envs/py39/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 5324 in
file
/home/zmumba/anaconda3/envs/py39/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 289 in
file WRF_pcp_1.ncl


wrfout_ncodiff plots ok. The problem is the scale used which goes from 40
to 440 (attached graphic). I do not know where this scale is coming from.
rpntVarSumaary(rain_tot) for both files shows reasonable values, which do
not exceed 200mm.

If there is anyone who is able to plot 24hr WRF rainfall at day1, day2,
..., I will appreciate if they are able to share their method.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220721/3ca158b2/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WRF_pcp1.png
Type: image/png
Size: 207133 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220721/3ca158b2/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WRF_pcp2.png
Type: image/png
Size: 218718 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220721/3ca158b2/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WRF_pcp3.png
Type: image/png
Size: 116882 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220721/3ca158b2/attachment-0005.png>


More information about the ncl-talk mailing list