<div dir="ltr"><div><div><div>Please be clear about what you want to plot. You mean DJF seasonal mean? If you want for one year, you may go like below<br><br></div>d (var(t=1)+var(t=2)+var(t=12))/3<br><br></div>Regards,<br></div>Kishore<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_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/profile/Kishore_Ragi</a><br><br><a href="https://in.linkedin.com/in/kishoreragi" target="_blank">https://in.linkedin.com/in/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">On Tue, Aug 29, 2017 at 6:34 PM, Sanjukta Rani Padhi <span dir="ltr"><<a href="mailto:sanjuktapadhi87@gmail.com" target="_blank">sanjuktapadhi87@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">can I know the codes to plot a DJF (december, january, february) from a .nc file. thanks.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 29, 2017 at 6:32 PM, Sanjukta Rani Padhi <span dir="ltr"><<a href="mailto:sanjuktapadhi87@gmail.com" target="_blank">sanjuktapadhi87@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">yes it help. thank you sir.<div><br></div></div><div class="m_86432065081878770HOEnZb"><div class="m_86432065081878770h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 29, 2017 at 6:07 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>Technically, there is no difference between cdo and grads to extract. Output should be same!<br><br>However, you can get separated files for each year with grads. You only have to select x and y for each year that you want.<br><br></div>Then you can combine the separated years using cdo as the following<br><br></div>cdo mergetime <a href="http://file1.nc" target="_blank">file1.nc</a> <a href="http://file2.nc" target="_blank">file2.nc</a> <a href="http://file3.nc" target="_blank">file3.nc</a> <a href="http://all.nc" target="_blank">all.nc</a><br><br></div><div>But, I prefer using cdo command.<br><br></div><div>cdo selyear,2002,2004,2007 <a href="http://2000-2013.nc" target="_blank">2000-2013.nc</a> <a href="http://200220042007.nc" target="_blank">200220042007.nc</a><br></div><div><br></div>hope this helps!<br><br></div>Regards,<br></div>Kishore<br></div><div class="gmail_extra"><span><br clear="all"><div><div class="m_86432065081878770m_7440464598717591288m_-2231382685742041741gmail_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: <a href="tel:+91%2089086%2071881" value="+918908671881" target="_blank">+91-8908671881</a><br><br><a href="http://www.researchgate.net/profile/Kishore_Ragi" target="_blank">http://www.researchgate.net/pr<wbr>ofile/Kishore_Ragi</a><br><br><a href="https://in.linkedin.com/in/kishoreragi" target="_blank">https://in.linkedin.com/in/kis<wbr>horeragi</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></span><div><div class="m_86432065081878770m_7440464598717591288h5"><div class="gmail_quote">On Tue, Aug 29, 2017 at 5:55 PM, Sanjukta Rani Padhi <span dir="ltr"><<a href="mailto:sanjuktapadhi87@gmail.com" target="_blank">sanjuktapadhi87@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">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" target="_blank">2000-2013.nc</a> data set. kindly help.</div><div><br></div></div><div class="m_86432065081878770m_7440464598717591288m_-2231382685742041741HOEnZb"><div class="m_86432065081878770m_7440464598717591288m_-2231382685742041741h5"><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_86432065081878770m_7440464598717591288m_-2231382685742041741m_526172761033237400m_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: <a href="tel:+91%2089086%2071881" value="+918908671881" target="_blank">+91-8908671881</a><br><br><a href="http://www.researchgate.net/profile/Kishore_Ragi" target="_blank">http://www.researchgate.net/pr<wbr>ofile/Kishore_Ragi</a><br><br><a href="https://in.linkedin.com/in/kishoreragi" target="_blank">https://in.linkedin.com/in/kis<wbr>horeragi</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="m_86432065081878770m_7440464598717591288m_-2231382685742041741m_526172761033237400h5">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="m_86432065081878770m_7440464598717591288m_-2231382685742041741m_526172761033237400h5"><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" 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>
</div></div><br>______________________________<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></div></div>
<br>______________________________<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>
</div></div></blockquote></div><br></div>
</div></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>