Hi Zhang,<br><br>since you are new to GrADS I recommend you to take a look at grib2ctl.pl, it&#39;s a Perl program that try to catch informations from files in GRIB format and build a control file (.ctl).<br>( <a href="http://www.cpc.ncep.noaa.gov/products/wesley/grib2ctl.html">
http://www.cpc.ncep.noaa.gov/products/wesley/grib2ctl.html</a> )<br>Line <br>&nbsp;APCP 0 99 total precipitation<br>is configured to access a flat binary file, and not a grib file. If grib2ctl does not work you can try to change this, or at least use the wgrib to convert it to a binary file.
<br><br>regards,<br><br>Ricardo.<br><br><div class="gmail_quote">On Nov 15, 2007 11:02 AM, Baolin Zhang &lt;<a href="mailto:baolin@alrc.tottori-u.ac.jp">baolin@alrc.tottori-u.ac.jp</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear Heiner,<br><br>Thank you for your reply.<br>Grads is new to me. I made the .ctl by myself, according to wgrib.<br><div class="Ih2E3d">I used wgrib a.grb, the last line is:<br>1812:10894976:d=00121612:APCP:kpds5=61:kpds6=1:kpds7=0:TR=10:P1=0:P2=0:TimeU=0:sfc:anl:NAve=0
<br></div>Using wgrin -V, I can find the last record as follow:<br>rec 1812:10894976:date 2100121612 APCP kpds5=61 kpds6=1 kpds7=0 levels=(0,0)<br>grid=255 sfc anl:<br>ACPC=total precipitation<br>timerange 10 P1 0 P2 0 TimeU0 nx 57 nny 52 GDS grid 4 num_in_ave 0 missing 0
<br>center 0 subcenter 0 process 0 Table 0<br>gaussian: lat -56.890000 to 38.238000<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; long -33.750000 to 71.250000 by 1.875000, (57X52) scan 0 mode<br>128 bdsgrid 1<br>min/max data 0 8.88966e-05 num bits 16 BDS_Ref 0 DecScale 0 BinScale -29
<br><br>So, I made a .ctl file like this:<br><div class="Ih2E3d">dset ^a.grb<br>dtype grib<br>&nbsp;index ^a.grb.gmp<br>&nbsp;undef -9.99E+33<br>&nbsp;title a.grb<br>&nbsp;xdef 57 linear -56.890000 1.875000<br>&nbsp;ydef 52 linear -33.750000 1.875000
<br>&nbsp;zdef 1 levels 1 1<br>&nbsp;tdef 1812 linear jan1950 1mon<br>&nbsp;vars 1<br>&nbsp;APCP 0 99 total precipitation<br>&nbsp;endvars<br></div>But it does not work.<br>Any suggestion?<br><br>Thank you very much<br><br><br>Baolin Zhang<br><br>
Arid Land Research Center<br>Tottori University<br><div><div></div><div class="Wj3C7c"><br><br><br>----- Original Message -----<br>From: &quot;Heiner Körnich&quot; &lt;<a href="mailto:heiner@MISU.SU.SE">heiner@MISU.SU.SE</a>
&gt;<br>To: &lt;<a href="mailto:GRADSUSR@LIST.CINECA.IT">GRADSUSR@LIST.CINECA.IT</a>&gt;<br>Sent: Thursday, November 15, 2007 9:48 PM<br>Subject: Re: help me the IPCC AR4 dada<br><br><br>&gt; Hi,<br>&gt;<br>&gt; have you run &quot;gribmap&quot; over the ctl-file?
<br>&gt; The entry for index is a bit strange. It should be ^ instead of ~.<br>&gt;<br>&gt; Regards,<br>&gt; Heiner<br>&gt;<br>&gt; On Thu, 2007-11-15 at 20:11 +0900, Baolin Zhang wrote:<br>&gt;&gt; Dear all<br>&gt;&gt; I want to open IPCC AR4 precipitation data over Africa.
<br>&gt;&gt;<br>&gt;&gt; I try the follow:<br>&gt;&gt; dset ^a.grb<br>&gt;&gt; dtype grib<br>&gt;&gt; index ~a.grb.gmp<br>&gt;&gt; undef -9.99E+33<br>&gt;&gt; title a.grb<br>&gt;&gt; xdef 57 linear -56.890000 1.875000<br>
&gt;&gt; ydef 52 linear -33.750000 1.875000<br>&gt;&gt; zdef 1 levels 1 1<br>&gt;&gt; tdef 1812 linear jan1950 1mon<br>&gt;&gt; vars 1<br>&gt;&gt; APCP 0 99 total precipitation<br>&gt;&gt; endvars<br>&gt;&gt;<br>&gt;&gt; But the result is: all grid undefined.
<br>&gt;&gt;<br>&gt;&gt; Anyone knows the format? I am not sure about the bold lines.<br>&gt;&gt; I used wgrib a.grb, the last line is:<br>&gt;&gt; 1812:10894976:d=00121612:APCP:kpds5=61:kpds6=1:kpds7=0:TR=10:P1=0:P2=0:TimeU=0:sfc:anl:NAve=0
<br>&gt;&gt; Any suggestions?<br>&gt;&gt;<br>&gt;&gt; Thank you<br>&gt;&gt;<br>&gt;&gt; Best regards<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Baolin Zhang<br>&gt; --<br>&gt; Heiner Körnich<br>&gt; Dept. of Meteorology &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Tel: &nbsp;+46 8 164333
<br>&gt; Stockholms University, SE-106 91 Stockholm, Sweden<br>&gt; Email: <a href="mailto:heiner@misu.su.se">heiner@misu.su.se</a> &nbsp; <a href="http://www.misu.su.se/%7Eheiner/" target="_blank">www.misu.su.se/~heiner/</a><br>
&gt;<br>&gt;<br></div></div></blockquote></div><br><br clear="all"><br>-- <br>============================================================<br>Ricardo Marcelo da Silva<br>LAMMA - Laboratório de Modelagem de Processos Marinhos e Atmosféricos
<br>Depto de Meteorologia - Instituto de Geociências <br>Centro de Ciências Matemáticas e da Natureza<br>Universidade Federal do Rio de Janeiro<br>e-mail: <a href="mailto:ricardom@acd.ufrj.br">ricardom@acd.ufrj.br</a> <br>
phone: 55 21 2598-9470 r 24<br>============================================================