<div dir="ltr">Dian,<div>First define your averaged u and v, then display result. For example:</div><div><br></div><div>'define uavg=ave(u,z=36,z=46)'</div><div>'define vavg=ave(v,z=36,z=46)'</div><div>'d uavg;vavg'</div><div><br></div><div>Stephen Mc</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 31, 2015 at 1:53 PM, dian novianto <span dir="ltr"><<a href="mailto:novianto_dian@yahoo.com.au" target="_blank">novianto_dian@yahoo.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:lucida console,sans-serif;font-size:10px"><div dir="ltr">this is my scripts for temperature average for layer 3 - 50 meter.</div><div dir="ltr">but when i try using for current(u;v) this is error.</div><div dir="ltr">i need help to make scripts average layer value like in temperature script for u;v variables.</div><div dir="ltr"><font color="#cd232c">#my data description.</font></div><div dir="ltr"><br></div><div dir="ltr"><font color="#8fca40">ga-> sdfopen e:/new/cur/<a href="http://current_northwest_monsoon_ave.nc" target="_blank">current_northwest_monsoon_ave.nc</a></font></div><div dir="ltr"><font color="#8fca40">Scanning self-describing file: e:/new/cur/<a href="http://current_northwest_monsoon_ave.nc" target="_blank">current_northwest_monsoon_ave.nc</a></font></div><div dir="ltr"><font color="#8fca40">SDF file has no discernable time coordinate -- using default values.</font></div><div dir="ltr"><font color="#8fca40">SDF file e:/new/cur/<a href="http://current_northwest_monsoon_ave.nc" target="_blank">current_northwest_monsoon_ave.nc</a> is open as file 1</font></div><div dir="ltr"><font color="#8fca40">LON set to 109.062 126.938</font></div><div dir="ltr"><font color="#8fca40">LAT set to -15.9599 -6.03633</font></div><div dir="ltr"><font color="#8fca40">LEV set to -10000 -10000</font></div><div dir="ltr"><font color="#8fca40">Time values set: 1:1:1:0 1:1:1:0</font></div><div dir="ltr"><font color="#8fca40">E set to 1 1</font></div><div dir="ltr"><font color="#8fca40">ga-> q file</font></div><div dir="ltr"><font color="#8fca40">File 1 :</font></div><div dir="ltr"><font color="#8fca40"> Descriptor: e:/new/cur/<a href="http://current_northwest_monsoon_ave.nc" target="_blank">current_northwest_monsoon_ave.nc</a></font></div><div dir="ltr"><font color="#8fca40"> Binary: e:/new/cur/<a href="http://current_northwest_monsoon_ave.nc" target="_blank">current_northwest_monsoon_ave.nc</a></font></div><div dir="ltr"><font color="#8fca40"> Type = Gridded</font></div><div dir="ltr"><font color="#8fca40"> Xsize = 144 Ysize = 82 Zsize = 46 Tsize = 1 Esize = 1</font></div><div dir="ltr"><font color="#8fca40"> Number of Variables = 2</font></div><div dir="ltr"><font color="#8fca40"> u 46 z,y,x UVEL[D=1, GT=MONTH_REG@MOD]</font></div><div dir="ltr"><font color="#8fca40"> v 46 z,y,x VVEL[D=2, G=LONLAT, GT=MONTH_REG@MOD]</font></div><div dir="ltr"><font color="#8fca40">ga-> q dims</font></div><div dir="ltr"><font color="#8fca40">Default file number is: 1</font></div><div dir="ltr"><font color="#8fca40">X is varying Lon = 109.062 to 126.938 X = 1 to 144</font></div><div dir="ltr"><font color="#8fca40">Y is varying Lat = -15.9599 to -6.03633 Y = 1 to 82</font></div><div dir="ltr"><font color="#8fca40">Z is fixed Lev = -10000 Z = 1</font></div><div dir="ltr"><font color="#8fca40">T is fixed Time = 00Z01JAN0001 T = 1</font></div><div dir="ltr"><font color="#8fca40">E is fixed Ens = 1 E = 1</font></div><div dir="ltr"><font color="#8fca40">ga-></font></div><div dir="ltr"><br></div><div dir="ltr"><font color="#cd232c"># this is my scripts for temperature</font></div><div dir="ltr"><br></div><div>'sdfopen E:/new/temp/<a href="http://temp_trans1_monsoon_ave.nc" target="_blank">temp_trans1_monsoon_ave.nc</a>'</div><div>'set lat -16 -7'</div><div>'set lon 109 127'</div><div><br></div><div>'set t 1'</div><div>'set gxout line'</div><div>'set gxout shaded'</div><div><br></div><div>'set mpdset hires'</div><div>'set csmooth on'</div><div><br></div><div>'d ave(temp_clim,z=36,z=46)'</div><div>'cbarn'</div><div>'draw title trans1_temp3-50m'</div><div>'printim e:/re/monsoon/fig/gambar.trans1_temp50m.gif white'</div><div><br></div><div>'set x 1 140'</div><div><br></div><div>'set t 1'</div><div>'<a href="http://fprintf.gs" target="_blank">fprintf.gs</a> lat lat.txt %g 1 0'</div><div>'fprintf lat e:/re/monsoon/txt/trans1_temp50m_lat.txt'</div><div>'set x 1 140'</div><div><br></div><div>'set t 1'</div><div>'<a href="http://fprintf.gs" target="_blank">fprintf.gs</a> lon lon.txt %g 1 0'</div><div>'fprintf lon e:/re/monsoon/txt/trans1_temp50m_lon.txt'</div><div><br></div><div><br></div><div><br></div><div>'set x 1 140'</div><div><br></div><div>'set t 1'</div><div>'fprintf ave(temp_clim,z=36,z=46) ave(temp_clim,z=36,z=46).txt %g, 1 0'</div><div></div><div>'fprintf ave(temp_clim,z=36,z=46) e:/re/monsoon/txt/trans1_Value50m.txt'</div><div></div><div> </div><div><div><span style="color:rgb(0,0,127);font-family:'lucida console',sans-serif"><br></span></div><div><span style="color:rgb(0,0,127);font-family:'lucida console',sans-serif">Regards,<br></span></div><div><span style="font-family:'lucida console',sans-serif"><span style="color:rgb(0,0,127)"><span style="font-weight:bold">Dian Novianto</span></span><span style="font-size:medium"><br></span><br><br></span></div><div><span style="color:rgb(64,0,127)"><span style="font-family:arial"><br></span></span></div><div style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><div dir="ltr"></div></div></div></div></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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>