<div dir="ltr">Yes. Thank you.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><font size="2" color="#000000"><i><b>Zaib-un-nisa</b></i></font></div><div style="font-size:small"><font color="#000000"><b><br></b></font></div><div style="font-size:small"><font color="#000000"><b>MS Research Student (Remote sensing and GIS)</b></font></div><div style="font-size:small"><font color="#073763"><b>Institute of Geographic Information Systems,</b></font></div><div style="font-size:small"><font color="#073763">National University of Sciences and Technology,</font></div><div style="font-size:small"><font color="#073763">Islamabad, Pakistan</font></div></div></div></div>
<br><div class="gmail_quote">On Sat, Jul 11, 2015 at 9:14 PM, Stephen McMillan <span dir="ltr"><<a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.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">Zaib-un-nisa,<div><br></div><div>So, for example, to get average of sl1,sl2,sl3...sl8:</div><div><br></div><div>avesl=(sl1+sl2+sl3...+sl8)/8</div><div><br></div><div>Stephen McMillan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Jul 11, 2015 at 8:01 AM, Zaib-un- Nisa <span dir="ltr"><<a href="mailto:zaib.envsc@gmail.com" target="_blank">zaib.envsc@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><br clear="all"><div><div><div dir="ltr"><div><font size="2" color="#000000"><i><b>Hi,</b></i></font></div><div><font size="2" color="#000000"><i><b><br></b></i></font></div><div><font size="2" color="#000000"><span style="background-color:rgb(255,255,255)">Can anyone tell me, how can i get average of defined variables, i have averaged mean sea level pressure for three months of each year, now i want to get combined average result of all years;</span></font></div><div><font size="2" color="#000000"><span style="background-color:rgb(255,255,255)"><br></span></font></div><div><font size="2" color="#000000"><span style="background-color:rgb(255,255,255)">for example,</span></font></div><div><font size="2" color="#000000"><span style="background-color:rgb(255,255,255)"><br></span></font></div><div><font size="2" color="#000000"><span style="background-color:rgb(255,255,255)">here i have averaged set of dec,jan, feb of each year and numbered them as sl1, sl2 and so on. now i want to extract average of sl1, sl2, sl3..... how will it be possible!</span></font></div><div><font size="2" color="#000000"><span style="background-color:rgb(255,255,255)"><br></span></font></div><div><font size="2" color="#000000"><span style="background-color:rgb(255,255,255)">Script is as follows;</span></font></div><div><font size="2" color="#000000"><span style="background-color:rgb(255,255,255)"><br></span></font></div><div><font size="2" color="#000000"><span style="background-color:rgb(255,255,255)"><div>'reinit'</div><div>'sdfopen <a href="http://djf00-12.nc" target="_blank">djf00-12.nc</a>'</div><div>'set display color white'</div><div>'c'</div><div>'set lat 0 60'</div><div>'set lon 0 120'</div><div>'set z 1'</div><div>'set e 1'</div><div>'define sl1=ave(msl/100,t=1,t=3)'</div><div>'define x1 = ave(u10,t=1,t=3)'</div><div>'define y1 = ave(v10,t=1,t=3)'</div><div><br></div><div>'define sl2=ave(msl/100,t=4,t=6)'</div><div>'define x2 = ave(u10,t=4,t=6)'</div><div>'define y2 = ave(v10,t=4,t=6)'</div><div><br></div><div>'define sl3=ave(msl/100,t=7,t=9)'</div><div>'define x3 = ave(u10,t=7,t=9)'</div><div>'define y3 = ave(v10,t=7,t=9)'</div><div><br></div><div>'define sl4=ave(msl/100,t=10,t=12)'</div><div>'define x4 = ave(u10,t=10,t=12)'</div><div>'define y4 = ave(v10,t=10,t=12)'</div><div><br></div><div>'define sl5=ave(msl/100,t=13,t=15)'</div><div>'define x5 = ave(u10,t=13,t=15)'</div><div>'define y5 = ave(v10,t=13,t=15)'</div><div><br></div><div>'define sl6=ave(msl/100,t=16,t=18)'</div><div>'define x6 = ave(u10,t=16,t=18)'</div><div>'define y6 = ave(v10,t=16,t=18)'</div><div><br></div><div>'define sl7=ave(msl/100,t=19,t=21)'</div><div>'define x7 = ave(u10,t=19,t=21)'</div><div>'define y7 = ave(v10,t=19,t=21)'</div><div><br></div><div>'define sl8=ave(msl/100,t=22,t=24)'</div><div>'define x8 = ave(u10,t=22,t=24)'</div><div>'define y8 = ave(v10,t=22,t=24)'</div><div><br></div><div>How can i get average of sl1,sl2,sl3...sl8. </div><div><br></div><div>stuck in the next step.</div></span></font></div><div><font size="2" color="#000000"><i><b><br></b></i></font></div><div><br></div><div><font size="2" color="#000000"><i><b>Best,</b></i></font></div><div><font size="2" color="#000000"><i><b>Zaib-un-nisa</b></i></font></div><div style="font-size:small"><font color="#000000"><b><br></b></font></div><div style="font-size:small"><br></div></div></div></div>
</div>
<br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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></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></div>