<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I'm trying to calculate 850 hPa temperature ensemble mean from 21 GEFS scenarios. The code doesn't give an error but also it doesn't calculate ensemble mean. It is just paints the 19th scenario's line white and thicken it. I give the diagram and code below.</div><div><br></div><div>All the best,</div><div><br></div><div>i=1<br></div><div><div><br></div><div>while(i<=21)</div><div><br></div><div><br></div><div>'set vpage 0.0 11.0 0.0 8.5'</div><div>'set parea 0.4 10.8 0.8 7.8'</div><div>'set lat 'lati</div><div>'set lon 'longt</div><div>'set ylab on'</div><div>'set vrange 0 30'</div><div>'set cstyle 1'</div><div>'set ccolor 'i''</div><div>'set grads off'</div><div>'set grid on'</div><div>'set t 1 65'</div><div>'set e 'i''</div><div>'set lev 850'</div><div>'set display color black'</div><div><br></div><div>'d tmpprs-273.15'</div><div><br></div><div>i=i+1<br></div><div>endwhile</div><div><br></div><div>'define tmp=tmpprs-273.15'</div><div>'define tmmn = tloop(ave(tmp, e=1, e=21))'</div><div>'set cthick 12'</div><div>'set ccolor 1'</div><div>'d tmmn'</div></div></div></div>