<div dir="ltr">Tom,<div><br></div><div>I think you can create a weighting function and then use it in the average command.  So it would look like</div><div><br></div><div>(define weight field somehow as wgt)</div><div>&#39;d ave(wgt*product,e=1,e=8)&#39;</div>
<div><br></div><div>The tricky part is creating a weighting field that is a function of ensemble member.  I haven&#39;t tried this to see if it works or not, but if you set your dimension environment so that ensemble dimension is varying, you could then try defining the field, possibly using the const(maskout()) function.  If that doesn&#39;t work, you&#39;ll have to create a separate weight function for each ensemble member and display the product using a manual average, i.e.,</div>
<div>&#39;define sum = weight1*member1 + weight2*member2 + ... + weightN*memberN&#39;</div><div>&#39;define totalweight = weight1+weight2 + ... + weightN&#39;</div><div>&#39;d sum/totalweight&#39;</div><div><br></div><div>
If you&#39;re using a script to do this, the sums can be handled using a while loop to make them much more tractable.</div><div><br></div><div>Good luck. Let me know if you have more questions.</div><div><br></div><div>Jeff</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 20, 2014 at 1:24 PM, Tom Hultquist <span dir="ltr">&lt;<a href="mailto:weathertom@gmail.com" target="_blank">weathertom@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Is there a way to adjust the weighting of members when using the ensemble dimension? I&#39;d like to use the ave function across and ensemble (e=1, e=8), but want different weighting for members 1-4 vs members 5-8. </p>

<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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
</div>