<div dir="ltr"><div>Hi all<br></div>I am using ferret; I am not sure how to remove the negative values. I am using NCL<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 10, 2016 at 8:13 AM, <span dir="ltr"><<a href="mailto:mmkamal@uwaterloo.ca" target="_blank">mmkamal@uwaterloo.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Juliet,<br>
<br>
I do not know which language you are using to process WRF output. I am using NCL to process my WRF output. In NCL, you can use the following command to remove any negative values of both convective and non convective precipitation.<br>
<br>
<br>
======================================<br>
;-----> read in data<br>
<br>
f1 = addfile ("/home/<a href="http://wrfout_d01_2000-01-01.nc" rel="noreferrer" target="_blank">wrfout_d01_2000-01-01.nc</a>","r") ; location of your WRF history file<br>
<br>
rain_conv = f1->RAINC(:,:,:)<br>
rain_non_conv = f1->RAINNC(:,:,:)<br>
<br>
x1 = rain_conv > 0.0 ; consider only values greater than zero<br>
y1 = rain_non_conv > 0.0<br>
<br>
total_rainfall = x1+y1<br>
<br>
===========================================<br>
<br>
I hope this helps.<br>
<br>
<br>
Thanks<br>
Mostofa Kamal<br>
PhD Candidate<br>
Department of Earth and Environmental Sciences<br>
University of Waterloo<br>
Ontario, Canada<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
Quoting afwande juliet <<a href="mailto:afwandej965@gmail.com" target="_blank">afwandej965@gmail.com</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Users<br>
I am perplexed. I plotted WRF output Rainc and Rainnc and Rainnc+Rainc<br>
My worry is that there are negative values for convective rain and when i<br>
add convective and non convective rain.But when I plot only non convective<br>
rain, no negative value in the scale is seen<br>
<br>
Is the problem with my simualtions? OR how can I avoid negative values? I<br>
am using ferret to plot<br>
<br>
</blockquote>
<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>