[gradsusr] extracting problem
Andrew Friedman
andfried at gmail.com
Tue Aug 29 15:04:29 EDT 2017
Check out the documentation for the ‘modify’ command on how to produce a seasonal climatology:
http://cola.gmu.edu/grads/gadoc/gradcomdmodify.html
-Andrew
> On Aug 29, 2017, at 3:36 PM, Sanjukta Rani Padhi <sanjuktapadhi87 at gmail.com> wrote:
>
> Thanks.I want to plot seasonal climatology.
>
>
> Sanjukta Rani Padhi
> Junior Research Fellow(DST INSPIRE)
> Dept. of Marine Sciences
> Berhampur University
> Bhanja Bihar-760007
> Berhampur, Odisha
> Ph. No.-7381539663
>
> On Tue, Aug 29, 2017 at 6:46 PM, Kishore Ragi <kishoreragi at gmail.com> wrote:
> 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
>
> d (var(t=1)+var(t=2)+var(t=12))/3
>
> Regards,
> Kishore
>
> PhD student in climate science,
> National Institute of Technology, Rourkela,
> India- 769008
> Phone: +91-8908671881
>
> http://www.researchgate.net/profile/Kishore_Ragi
>
> https://in.linkedin.com/in/kishoreragi
>
>
> On Tue, Aug 29, 2017 at 6:34 PM, Sanjukta Rani Padhi <sanjuktapadhi87 at gmail.com> wrote:
> can I know the codes to plot a DJF (december, january, february) from a .nc file. thanks.
>
> On Tue, Aug 29, 2017 at 6:32 PM, Sanjukta Rani Padhi <sanjuktapadhi87 at gmail.com> wrote:
> yes it help. thank you sir.
>
>
> On Tue, Aug 29, 2017 at 6:07 PM, Kishore Ragi <kishoreragi at gmail.com> wrote:
> Technically, there is no difference between cdo and grads to extract. Output should be same!
>
> 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.
>
> Then you can combine the separated years using cdo as the following
>
> cdo mergetime file1.nc file2.nc file3.nc all.nc
>
> But, I prefer using cdo command.
>
> cdo selyear,2002,2004,2007 2000-2013.nc 200220042007.nc
>
> hope this helps!
>
> Regards,
> Kishore
>
> PhD student in climate science,
> National Institute of Technology, Rourkela,
> India- 769008
> Phone: +91-8908671881
>
> http://www.researchgate.net/profile/Kishore_Ragi
>
> https://in.linkedin.com/in/kishoreragi
>
>
> On Tue, Aug 29, 2017 at 5:55 PM, Sanjukta Rani Padhi <sanjuktapadhi87 at gmail.com> wrote:
> Thanks sir for the commands. In CDO the ploting map is not clear , thats why i prefer to use Grads.
> but if my years are not serialy means x to y is not serial, then how i set.
> if i want 2002, 2004, 2007 from 2000-2013.nc data set. kindly help.
>
>
> On Tue, Aug 29, 2017 at 5:42 PM, Kishore Ragi <kishoreragi at gmail.com> wrote:
> Hi,
>
> You can use cdo to extract data from th large file.
>
> use the following command
>
> cdo selyear,2010,2011,2012,etc inputfile.nc outfile.nc
>
> or if you want to stick to grads and want to extract few years, here are the steps you should take
>
> sdfopen yourfile.nc
> set t x y
> define var=var
> set sdfwrite subset.nc
> sdfwrite var
>
> where x and y are initial and final timestep you want in your required subset file.
>
> 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.
>
> Cheers,
> Kishore
>
> PhD student in climate science,
> National Institute of Technology, Rourkela,
> India- 769008
> Phone: +91-8908671881
>
> http://www.researchgate.net/profile/Kishore_Ragi
>
> https://in.linkedin.com/in/kishoreragi
>
>
> On Tue, Aug 29, 2017 at 5:24 PM, Sanjukta Rani Padhi <sanjuktapadhi87 at gmail.com> wrote:
> Hi All,
> I am new in Grads. I want to know how to extract some years from a .nc file having some large no of years.
> thanks
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
More information about the gradsusr
mailing list