<div>How I make for transform data *.bin in *.txt in GRADS.</div><div><br></div><div>I tried make an gs script for transform the data *bin in data *txt and not gave right...</div><div><br></div><div>Somebody could help me, please? I did write as show the gs below:</div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'reinit'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'open saidaR-aquid1.ctl'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">*'set gxout fwrite'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">*'set saidaR-aquid1.dat'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">t1=1</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">t2=37</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br>
</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">while(1<=37)</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">*'set t 'tempoi''</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'set t 1 37'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define vazan=vazan'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define pe=pe'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define as=as'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define at=at'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define in=in'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define ps=ps'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define pn=pn'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define aquid1an=aquid1an'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define pdold= pdold'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define soild= soild'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define naold= naold'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define samld= samld'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define nino12ld=nino12ld'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define nino34ld=nino34ld'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'define nino4ld=nino4ld'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'set x 1'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'set y 1'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d pe'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d as'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d at'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d at'</span></div><div>
<span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d in'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d ps'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d pn'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d aquid1an'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d pdold'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d soild'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d naold'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d samld'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d nino12ld'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d nino34ld'</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'d nino4ld'</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br>
</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">res=subwrd(result,4)</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">write('saidaR-aquid1.txt',res,append)</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br>
</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">*tempoi=tempoi+1</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">endwhile</span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);"><br></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">'c'</span></div>
<div><br></div><div><br></div><div>What is wrong?</div><div><br></div><div><br></div><div>Thanks</div><div>Krlos</div><div>Universidade de Sao Paulo-Brasil</div><div>Departamento de Geografia</div>