[gradsusr] extracting problem

Sanjukta Rani Padhi sanjuktapadhi87 at gmail.com
Tue Aug 29 09:02:29 EDT 2017


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-8908671881http://www.researchgate.net/profile/Kishore_Ragi
> <http://www.researchgate.net/profile/Kishore_Ragi>https://in.linkedin.com/in/kishoreragi
> <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
>>> <+91%2089086%2071881>http://www.researchgate.net/profile/Kishore_Ragi
>>> <http://www.researchgate.net/profile/Kishore_Ragi>https://in.linkedin.com/in/kishoreragi
>>> <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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170829/fb066103/attachment.html 


More information about the gradsusr mailing list