<div dir="ltr"><div><div><div>dear <img id=":0_24-e" name=":0" src="https://plus.google.com/u/0/_/focus/photos/public/AIbEiAIAAABDCLLYof3ck4zrZyILdmNhcmRfcGhvdG8qKGI5NjQxMjUxN2IyNDU5YzUzZmI2MzBjMGJiNjczNTdiOGUwNDU3MzAwAWIw8CfWqZTMPuFZ8Uf3qci07Omf?sz=32" class="" style="background-color: rgb(164, 194, 244);"><span name="Sridhara Nayak" class="">Sridhara <br>
thanks. i saw following command in some site:<br></span><span style="color:green" class="">Command : cdo -f nc copy file.grb <a href="http://file.nc">file.nc</a></span><br></div>but my file in <b><u>.grib</u> </b>but in mention command tehre is <u><b>.grd</b></u><br>
and alsoany useful command that i searchare for .grd not .grib<br></div>therefore after trying following command i cant get .nc file<br><br><span style="color:rgb(0,0,0)">1-</span><span style="color:rgb(153,0,0)"><span style="color:rgb(0,0,0)">[fkomijani@localhost Downloads]$ </span> cdo -f nc copy aa.grib <a href="http://file.nc">file.nc</a><br>
Warning (cgribexScanTimestep) : Param=182.128 level=0 not available at timestep 1338!<br>cdo copy: Processed 2262204 values from 1 variable over 1337 timesteps ( 0.05s )<br><span style="color:rgb(0,0,0)">2-[fkomijani@localhost Downloads]$</span> cdo -f nc copy aa.grb <a href="http://file.nc">file.nc</a><br>
cdo copy: Open failed on >aa.grb<<br>No such file or directory<br></span><br></div><div><br></div><div>please if i am in wrong tell me.<br></div><div>thanks<br></div><div>fereshte<br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Dec 24, 2013 at 6:35 PM, Sridhara Nayak <span dir="ltr"><<a href="mailto:sridharanayakiitkgp@gmail.com" target="_blank">sridharanayakiitkgp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><font><span style="font-family:arial,helvetica,sans-serif">Hi,<br></span></font></div><font><span style="font-family:arial,helvetica,sans-serif">First, you will have to create a CONTROL file to read your GRIB data.<br>
e.g. my GRIB data file is named as ifile.grb<br>So I am creating a ifile.ctl which looks as <span> </span><span> <br></span><span> </span><span>DSET</span><span>^</span><span></span><span></span><span>ifile</span><span>.</span><span>grb</span><span></span><br>
<span></span><span> </span><span> </span><span> </span><span>OPTIONS</span><span> </span><span>sequential</span><span> </span><br><span></span><span> </span><span> </span><span> </span><span>UNDEF</span><span> </span><span> </span><span>-</span><span>9</span><span>.99e</span><span>+36</span><span> </span><br>
<span></span><span> </span><span> </span><span> </span><span>XDEF</span><span> </span><span>360</span><span> </span><span>LINEAR</span><span> </span><span>-</span><span>179.5</span><span> </span><span>1</span><span> </span><br>
<span></span><span> </span><span> </span><span> </span><span>YDEF</span><span> </span><span>180</span><span> </span><span>LINEAR</span><span> </span><span> </span><span>-</span><span>89.5</span><span> </span><span>1</span><span> </span><br>
<span></span><span> </span><span> </span><span> </span><span>ZDEF</span><span> </span><span> </span><span> </span><span>1</span><span> </span><span>LINEAR</span><span> </span><span>1</span><span> </span><span>1</span><span> </span><br>
<span></span><span> </span><span> </span><span> </span><span>TDEF</span><span> </span><span> </span><span> </span><span>1</span><span> </span><span>LINEAR</span><span> </span><span>00:00</span><span>Z15jun1990</span><span> </span><span>1mo</span><span></span><span> </span><br>
<span></span><span> </span><span> </span><span> </span><span>VARS</span><span> </span><span> </span><span> </span><span>1</span><span> </span><br>
<span></span><span> </span><span> </span><span> </span><span>ps</span><span> </span><span> </span><span>1</span><span> </span><span> </span><span>99</span><span> </span><span> </span><span>description</span><span> </span><span>of</span><span> </span><span>the</span><span> </span><span>variable</span><span> </span><br>
<span></span><span> </span><span> </span><span> </span><span>ENDVARS</span><br><br></span></font></div><div><font><span style="font-family:arial,helvetica,sans-serif">or you can prepare CONTROL file with the following command provided <a href="http://grib2ctl.pl" target="_blank">grib2ctl.pl</a> and wgrib is installed in your Linux /UNIX machine<br>
</span></font><pre><font><span style="font-family:arial,helvetica,sans-serif"><a href="http://grib2ctl.pl" target="_blank">grib2ctl.pl</a> ifile.grb > ifile.ctl</span></font></pre></div><div><font><span style="font-family:arial,helvetica,sans-serif"><br>
Finally use CDO<br><span>cdo</span><span> </span><span>-</span><span>f</span><span> </span><span>nc</span><span> </span><span>import_binary</span><span> </span><span>ifile</span><span>.</span><span>ctl</span><span> </span><span>ofile</span><span>.</span><span>nc<br>
<br></span></span></font></div><span>Hope it will help you.<br><br></span></div><span>Kind Regards<br></span></div><span>Sridhara<br></span></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">
On Tue, Dec 24, 2013 at 7:37 PM, fereshteh komijani <span dir="ltr"><<a href="mailto:fereshtehkomijani@gmail.com" target="_blank">fereshtehkomijani@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<div dir="ltr"><div><div><div><div>dear friends<br></div>i have Grib file (a.grib) that what to convert it to netcdf files . <br></div>would you please tell me which command in CDO can do it.<br></div>many thanks in advance<br>
</div>fereshte<span><font color="#888888"><br clear="all"><div><div><div><div><div><br>-- <br><div style="text-align:center"><font style="background-color:#cc33cc" size="4" color="#ffffff" face="comic sans ms,sans-serif"><b>**Angel**</b></font></div>
<div style="text-align:center"> </div>
<div style="text-align:center"><span><b><u><font style="background-color:#3333ff" size="4" color="#ffff33" face="Arial Narrow"></font></u></b></span> </div>
</div></div></div></div></div></font></span></div>
<br></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Sridhara Nayak, PhD Student;<br>Centre for Oceans, Rivers, Atmosphere and Land Sciences;<br>Indian Institute of Technology Kharagpur; Kharagpur; West Bengal; India.
</font></span></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div style="text-align:center"><font style="background-color:#cc33cc" color="#ffffff" size="4" face="comic sans ms,sans-serif"><strong>**Angel**</strong></font></div>
<div style="text-align:center"> </div>
<div style="text-align:center"><span><strong><u><font style="background-color:#3333ff" color="#ffff33" size="4" face="Arial Narrow"></font></u></strong></span> </div>
</div>