<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=ISO-8859-1" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20110928125959099681 {
        COLOR: #000000
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: 微软雅黑; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.7600.16853"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>set gxout print</DIV>
<DIV>d *</DIV>
<DIV> </DIV>
<DIV>or </DIV>
<DIV> </DIV>
<DIV>rc=write(file='.../result.txt',result)</DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>Yan Libin</SPAN></DIV>
<DIV> </DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:sushantpuranik@gmail.com">sushant
puranik</A></DIV>
<DIV><B>Date:</B> 2011-09-28 13:26</DIV>
<DIV><B>To:</B> <A href="mailto:gradsusr@gradsusr.org">GrADS Users
Forum</A></DIV>
<DIV><B>Subject:</B> [gradsusr] How to write data in a
file</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20110928125959099681>
<DIV>Hi<BR clear=all></DIV>
<DIV>I am trying to make average of vorticity over four points as </DIV>
<DIV><BR></DIV>
<DIV>set lev 850</DIV>
<DIV>define zeta=hcurl(uwnd,vwnd.2)</DIV>
<DIV>set lat 12.5</DIV>
<DIV>set lon 100</DIV>
<DIV>define z1=zeta</DIV>
<DIV>clear</DIV>
<DIV>set lat 10</DIV>
<DIV>set lon 100</DIV>
<DIV>define z2=zeta</DIV>
<DIV>clear</DIV>
<DIV>
<DIV>set lat 12.5</DIV>
<DIV>set lon 97.5</DIV>
<DIV>define z3=zeta</DIV>
<DIV>clear</DIV>
<DIV>set lat 10</DIV>
<DIV>set lon 97.5</DIV>
<DIV>define z4=zeta</DIV>
<DIV>clear</DIV></DIV>
<DIV>define avez=(z1+z2+z3+z4)/4</DIV>
<DIV>d avez</DIV>
<DIV>write (testz.txt,te)</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>But the output file remains blank.<BR></DIV>
<DIV><BR></DIV>
<DIV>whats wrong with the script?</DIV>
<DIV><BR></DIV>
<DIV>Thanks </DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Sushant</DIV><BR></DIV></DIV></BODY></HTML>