<div dir="ltr"><div>Brian,<br>You're effectively double-masking in the sense that you define a new field (t2c) that is the difference between the temperature (in C) and the 1 deg. C mark; then you plot your snsq field using that masked temperature field, but then you apply another mask. Remove your second line. You also should flip the sign of the mask, since the maskout() function masks the field where mask values are negative. Display maskout(snsq,1-t2c) and you'll get what you're looking for.<br><br></div>Jeff Duda<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 20, 2015 at 12:47 PM, Brian Bernard <span dir="ltr"><<a href="mailto:brian.brianbernard@gmail.com" target="_blank">brian.brianbernard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello,<br><br></div>I have a script for my website where I plot the snow squall paramater (based on the work of Perter Banacos of NWS Burlington, VT). I want to mask out areas of the snow squall parameter where the surface temperatures are above 1C. (Actually it should be the wet-bulb temperature, but there seems to be several formulas, which is rather confusing to me).<br><br></div>This is my maskout function:<br><br> 'define t2=(tmp2m(t='dis_t')-273)' # converting WRF temps from Kelvin to Celsius<br> 'define t2c=(t2*-1)' # here I'm making positive temps, negative for the maskout function<br></div><div> 'd maskout ((snsq),(t2c)-1.0)'<br><br></div><div>Thank you,<br><br></div><div>Brian Bernard<br></div><div><br> <br></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br></div>
</div>