<div dir="ltr">Dear Muhamaad, <br>Thank you for help , your suggestion works correctely <br>could you tell me who can i add the name of parameter to write it, with the value like that : <br>exemple : <br>EQMVR850 = 1.58<br>
EQMVR500 = 1.89<br>EQMVR700 =1.98<br>.......<br>.........<br><br><div class="gmail_quote">2011/3/9 Muhammad Rahiz <span dir="ltr"><<a href="mailto:muhammad.rahiz@ouce.ox.ac.uk">muhammad.rahiz@ouce.ox.ac.uk</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear Rabah,<br>
<br>
Could you try the following?<br>
<br>
...<br>
...<br>
<br>
'set gxout print'<br>
'd eqmVr850'<br>
ret = result<br>
res = write("output.txt",ret,append)<br>
res = close("output.txt)<br><font color="#888888">
<br>
<br>
-- <br>
Muhammad Rahiz<br>
Researcher & DPhil Candidate (Climate Systems & Policy)<br>
School of Geography & the Environment<br>
University of Oxford</font><div><div></div><div class="h5"><br>
<br>
On Wed, 9 Mar 2011, hachelaf rabah wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all GRADS users,<br>
<br>
My problem is that i can not find a solution to write some defined parameters like result of<br>
summing some parameters.<br>
or others statistical operations between variables.<br>
i have this part of my script :<br>
......................................<br>
'define VV1=mag(UGRDprs.1,VGRDprs.1)'<br>
'define VV2=mag(UGRDprs.2,VGRDprs.2)'<br>
'define VV3=mag(UGRDprs.3,VGRDprs.3)'<br>
'define VVdif=(VV2-VV1)*(VV2-VV1)'<br>
'define sumxVVdif=sum(VVdif,x=1,x=139)'<br>
'define sumtVVdif=sum(sumxVVdif,y=1,y=159)'<br>
'define eqmVr850=sqrt(sumtVVdif/22101)'<br>
'd eqmVr850'<br>
'define VVdif3=(VV3-VV1)*(VV3-VV1)'<br>
'define sumxVVdif3=sum(VVdif3,x=1,x=139)'<br>
'define sumtVVdif3=sum(sumxVVdif3,y=1,y=159)'<br>
'define eqmVs850=sqrt(sumtVVdif3/22101)'<br>
'd eqmVs850'........<br>
..........................................<br>
so i need to write the result of eqmVr850 and eqmVs850 ....and other variables like that in a ASCII<br>
file.<br>
i tried that with the <a href="http://fprintf.gs" target="_blank">fprintf.gs</a> script but it each time,just the last value is wrote because this<br>
script erase preceding values wrote in the ASCII file.<br>
<br>
Thank you advance for any suggestions.<br>
<br>
<br>
<br>
--<br>
Cordialement,<br>
Best regards,<br>
Rabah Hachelaf<br>
<br>
______ <br>
( )<br>
( ) <br>
(________) <br>
///////// <br>
<br>
<br>
<br>
</blockquote>
</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><br clear="all"><br>-- <br>Cordialement,<br>Best regards,<br>Rabah Hachelaf <br><br> ______ <br> ( )<br> ( ) <br> (________) <br>
///////// <br><br><br>
</div>