<div dir="ltr">Thanks sir for the commands. In CDO the ploting map is not clear , thats why i prefer to use Grads.<div>but if my years are not serialy means x to y is not serial, then how i set. </div><div>if i want 2002, 2004, 2007 from <a href="http://2000-2013.nc">2000-2013.nc</a> data set. kindly help.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 29, 2017 at 5:42 PM, Kishore Ragi <span dir="ltr"><<a href="mailto:kishoreragi@gmail.com" target="_blank">kishoreragi@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><div>Hi,<br><br></div>You can use cdo to extract data from th large file. <br><br></div>use the following command<br><br></div>cdo selyear,2010,2011,2012,etc <a href="http://inputfile.nc" target="_blank">inputfile.nc</a> <a href="http://outfile.nc" target="_blank">outfile.nc</a><br><br></div><div>or if you want to stick to grads and want to extract few years, here are the steps you should take<br><br></div><div>sdfopen <a href="http://yourfile.nc" target="_blank">yourfile.nc</a><br></div><div>set t x y<br></div><div>define var=var<br></div><div>set sdfwrite <a href="http://subset.nc" target="_blank">subset.nc</a><br></div><div>sdfwrite var<br><br></div><div>where x and y are initial and final timestep you want in your required subset file.<br><br></div><div>This clearly shows that the former process is much easier. If I were you, I would use cdo to accomplish as I am bit lazy.<br><br></div>Cheers,<br></div>Kishore<br></div><div class="gmail_extra"><br clear="all"><div><div class="m_7567395600536668185gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)"></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">PhD student in climate science,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">National Institute of Technology, Rourkela,<br></span></b></span></font></div><div><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">India- 769008<br></span></b></span></font></div><div dir="ltr"><font size="2"><span style="color:rgb(0,0,0)"><b><span style="background-color:rgb(255,255,255)">Phone: +91-8908671881<br><br><a href="http://www.researchgate.net/profile/Kishore_Ragi" target="_blank">http://www.researchgate.net/<wbr>profile/Kishore_Ragi</a><br><br><a href="https://in.linkedin.com/in/kishoreragi" target="_blank">https://in.linkedin.com/in/<wbr>kishoreragi</a><br></span></b></span></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Tue, Aug 29, 2017 at 5:24 PM, Sanjukta Rani Padhi <span dir="ltr"><<a href="mailto:sanjuktapadhi87@gmail.com" target="_blank">sanjuktapadhi87@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">Hi All,<div>I am new in Grads. I want to know how to extract some years from a .nc file having some large no of years.</div><div>thanks</div></div>
<br></div></div>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>