<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'><FONT face=Arial>
<P>Hello grads users!</P>
<P> </P>
<P>I’m trying to write a single binary file, the first records from two different grib files (nww3.UGRD.grb and nww3.VGRD.grb, from NOAA’s site). When I open this new file in GRADS I keep getting errors, particularly for the second variable. Can someone help me?</P>
<P>My procedures were:</P>
<P> </P>
<P>1º I’ve created the .ctl files (nww3.UGRD.ctl and nww3.VGRD.ctl) with grib2ctl.pl; I’ve obtained the following files:</P>
<P> </P></FONT><FONT face="Courier New" size=2>
<P>dset ^nww3.UGRD.grb</P>
<P>index ^nww3.UGRD.grb.idx</P>
<P>undef 9.999E+20</P>
<P>title nww3.UGRD.grb</P>
<P>* produced by grib2ctl v0.9.12.5p39c</P>
<P>dtype grib 233</P>
<P>options yrev</P>
<P>ydef 157 linear -78.000000 1</P>
<P>xdef 288 linear 0.000000 1.250000</P>
<P>tdef 61 linear 12Z28apr2008 3hr</P>
<P>zdef 1 linear 1 1</P>
<P>vars 1</P>
<P>UGRDsfc 0 33,1,1 ** surface u wind [m/s]</P>
<P>ENDVARS</P>
<P> </P>
<P> </P>
<P></P>
<P>dset ^nww3.vgrd.grb</P>
<P>index ^nww3.vgrd.grb.idx</P>
<P>undef 9.999E+20</P>
<P>title nww3.vgrd.grb</P>
<P>* produced by grib2ctl v0.9.12.5p39c</P>
<P>dtype grib 233</P>
<P>options yrev</P>
<P>ydef 157 linear -78.000000 1</P>
<P>xdef 288 linear 0.000000 1.250000</P>
<P>tdef 61 linear 12Z28apr2008 3hr</P>
<P>zdef 1 linear 1 1</P>
<P>vars 1</P>
<P>VGRDsfc 0 34,1,1 ** surface v wind [m/s]</P>
<P>ENDVARS</P>
<P> </P></FONT><FONT face=Arial>
<P>2º I’ve created the grb.idx files (nww3.UGRD.grb.idx and nww3.VGRD.grb.idx) with grib2ctl.pl and gribmap.</P>
<P> </P>
<P>3º I’ve opened nww3.UGRD.ctl and nww3.VGRD.ctl in the GRADS.</P>
<P> </P>
<P>4º I did ‘set gxout fwrite’, then ‘d UGRDsfc’ and ‘d VGRDsfc’. I’ve obtained the binary file grads.fwrite (with 354kb).</P>
<P> </P>
<P>5º Then, I’ve created a .ctl file for the file grads.fwrite, called teste.ctl:</P>
<P> </P></FONT><FONT face="Courier New" size=2>
<P>dset ^grads.fwrite</P>
<P>undef 9.999E+20</P>
<P>title teste20_06</P>
<P>ydef 158 linear -78.000000 1</P>
<P>xdef 289 linear 0.000000 1.250000</P>
<P>tdef 1 linear 12Z28apr2008 3hr</P>
<P>zdef 1 linear 1 1</P>
<P>vars 2</P>
<P>u 0 99 ** surface v wind [m/s]</P>
<P>v 0 99 ** surface v wind [m/s]</P>
<P>ENDVARS</P>
<P> </P></FONT><FONT face=Arial>
<P>6º I’ve opened teste.ctl in the GRADS, and I’ve written ‘set gxout shaded’, then ‘d u’, without problems. The problem appears when I display the next variable,v. GRADS doesn’t recognize v. The error is:</P>
<P> </P>
<P> </P></FONT><FONT face="Courier New">
<P>Low Level I/O Error: Read error on data file </P>
<P>Data file name = e:/swan_pendrive/02_07/25_06/25_06/grads.fwrite </P>
<P>Error reading 289 bytes at location 90457 </P>
<P>Data Request Error: Error for variable 'v'</P>
<P>Error ocurred at column 1</P>
<P>DISPLAY error: Invalid expression </P>
<P>Expression = v</P></FONT><FONT face=Arial>
<P> </P>
<P> </P>
<P>It indicates a problem with the binary file grads.fwrite. </P>
<P> </P>
<P>Thanks in advance,</P>
<P> </P>
<P>Anelise Pereira Baur</P>
<P>Universidade Federal do Rio Grande do Sul</P>
<P>Instituto de Matemática</P>
<P>anelisebaur@yahoo.com.br </P></FONT></td></tr></table><br>
<hr size=1>Novos endereços, o Yahoo! que você conhece. <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.new.mail.yahoo.com/addresses">Crie um email novo</a> com a sua cara @ymail.com ou @rocketmail.com.