<div dir="ltr">Hi,</div>
<div dir="ltr">Plz try with that I have suggested. you just write .grib in place of .grb<br></div>
<div class="gmail_extra">Regards</div>
<div class="gmail_extra">Sridhara<br><br></div>
<div class="gmail_quote">On Tue, Dec 24, 2013 at 9:08 PM, fereshteh komijani <span dir="ltr"><<a href="mailto:fereshtehkomijani@gmail.com" target="_blank">fereshtehkomijani@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">
<div>
<div>
<div>dear <img style="BACKGROUND-COLOR: rgb(164,194,244)" name="1432546ce18f474e_143254256af5cac4_:0" src="https://plus.google.com/u/0/_/focus/photos/public/AIbEiAIAAABDCLLYof3ck4zrZyILdmNhcmRfcGhvdG8qKGI5NjQxMjUxN2IyNDU5YzUzZmI2MzBjMGJiNjczNTdiOGUwNDU3MzAwAWIw8CfWqZTMPuFZ8Uf3qci07Omf?sz=32"><span name="Sridhara Nayak">Sridhara <br>
thanks. i saw following command in some site:<br></span><span style="COLOR:green">Command : cdo -f nc copy file.grb <a href="http://file.nc/" target="_blank">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>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/" target="_blank">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/" target="_blank">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">
<div>
<div><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 style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">
<div>
<div>
<div>
<div><font size="+0"><span style="FONT-FAMILY:arial,helvetica,sans-serif">Hi,<br></span></font></div><font size="+0"><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 size="+0"><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 size="+0"><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 size="+0"><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>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 style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>
<div>
<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" color="#ffffff" size="4" 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" color="#ffff33" size="4" 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><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" 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><br><br clear="all"><br>-- <br></div></div>
<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><br>_______________________________________________<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>
<div class="gmail_extra"><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. </div>