Hi Zilore, <div><br></div><div>on the MARS server at ECMWF you can convert the data directly to NetCDF. But you need access to the ECMWF computer for this. </div><div>Then:</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br>
mars << EOF<br> retrieve,<br> time=00:00:00/06:00:00/12:00:00/18:00:00,<br> date=$iyear-$longmonth-01/to/$iyear-$longmonth-$lastday[$imonth],<br> stream=oper,<br> levtype=pl,<br> expver=1,<br>
type=an,<br> class=ei,<br> param=130.128,<br> levelist=1/2/3/5/7/10/20/30/50/70/100/125/150/175/200/225/250/300/350/400/450/500/550/600/650/700/750/775/800/825/850/875/900/925/950/975/1000,<br> grid = 1.0/1.0,<br>
target="output.grib"<br>EOF<br>mars -N <<@@<br> mars2netcdf,<br> source = output.grib,<br> target = $outname<br> ignore = TYPE/STEP<br>@@<br><br></span><br></div><div>Regards,</div><div>
Heiner<br><div class="gmail_quote">On Fri, Nov 13, 2009 at 10:11 AM, zilore mumba <span dir="ltr"><<a href="mailto:zmumba@yahoo.com">zmumba@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Dear Grads users,<br>Help sought if possible.<br>I have data in GRIB2 format from ECMWF. Because of the double headers in the data (complex packing), wgrib is not able to decode it propoerly hence not possible to make a ctl with <a href="http://grib2ctl.pl" target="_blank">grib2ctl.pl</a>.<br>
What I do is to decode the data with the ECMWF GRIB_API decoder and rewrite it in binary for grads with fortran. This works fine. I thought another alternative would be to convert the GRIB2 to NetCDF.<br>I have checked the listserver but did not find anything.<br>
Is such a conversion possible?<br>Thanks for assistance<br>Zilore<br><br></td></tr></tbody></table><br>
</blockquote></div><br><br clear="all"><br>-- <br>Heiner Körnich <br>Dept. of Meteorology Tel: +46 8 164333<br>Stockholms University, SE-106 91 Stockholm, Sweden<br>Email: <a href="mailto:heiner@misu.su.se">heiner@misu.su.se</a> <a href="http://www.misu.su.se/~heiner/">www.misu.su.se/~heiner/</a><br>
</div>