<div dir="ltr">Hello all GRADS users,<br><br>My problem is that i can not find a solution to write some defined parameters like result of 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 file.<br>i tried that with the <a href="http://fprintf.gs">fprintf.gs</a> script but it each time,just the last value is wrote because this script erase preceding values wrote in the ASCII file.<br>
<br>Thank you advance for any suggestions.<br><br><br clear="all"><br>-- <br>Cordialement,<br>Best regards,<br>Rabah Hachelaf <br><br> ______ <br> ( )<br> ( ) <br> (________) <br>
///////// <br><br><br>
</div>