[gradsusr] combine

Renalda El-Samra (Student) rse28 at mail.aub.edu
Sat Dec 21 22:09:24 EST 2013


Hi
you can use

cdo selvar,<variable_name>  <input_file> <output_file>

Regards,

Renalda


________________________________
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on behalf of fereshteh komijani [fereshtehkomijani at gmail.com]
Sent: Saturday, December 21, 2013 12:32 PM
To: GrADS Users Forum
Subject: Re: [gradsusr] combine

Dear friends
would you please guide me again to how i can remove one variable form one netcdf files (which contains several variables).
be come appreciate to receive commands appropriate for  CDO.
cheers
fereshte


On Sun, Dec 15, 2013 at 11:54 PM, Andrew Friedman <andfried at berkeley.edu<mailto:andfried at berkeley.edu>> wrote:
You can also use the NCO command ncrcat , as described in the GrADS documentation of sdfwrite:

http://www.iges.org/grads/gadoc/gadocindex.html
http://nco.sourceforge.net/nco.html#ncrcat

Andrew

On Dec 15, 2013, at 6:20 AM, Roger Rodrigues Torres <roger.torres at cptec.inpe.br<mailto:roger.torres at cptec.inpe.br>> wrote:

> Dear Fereshte, great!
> Mergetime is to combine different time-slices of the same variable.
> Cheers,
> Roger Torres
>
> Roger Rodrigues Torres
> Professor Auxiliar I
> Universidade Federal de Itajubá - Unifei
> Instituto de Recursos Naturais - IRN
> Curriculum Lattes: http://lattes.cnpq.br/5641165392004404
> Webpage: http://rtorres.webnode.com.br
>
> 2013/12/15 fereshteh komijani <fereshtehkomijani at gmail.com<mailto:fereshtehkomijani at gmail.com>>
>
> dear Roger
> many many thanks. i was on wrong , i was used mergetime instead of merge command.
> you help me so much
> all the best
> fereshte
>
>
> On Sun, Dec 15, 2013 at 5:26 PM, Roger Rodrigues Torres <roger.torres at cptec.inpe.br<mailto:roger.torres at cptec.inpe.br>> wrote:
> Dear Fereshte,
> one simple way to do this is using CDO (Climate Data Operators). It is a free package that you can find in the linux repositories.
> Once CDO installed, just type in the terminal:
> > cdo merge salinity.nc<http://salinity.nc> temperature.nc<http://temperature.nc> uwnd.nc<http://uwnd.nc> vwnd.nc<http://vwnd.nc> output-file.nc<http://output-file.nc>
> Regards,
> Roger Torres
>
> Roger Rodrigues Torres
> Professor Auxiliar I
> Universidade Federal de Itajubá - Unifei
> Instituto de Recursos Naturais - IRN
> Curriculum Lattes: http://lattes.cnpq.br/5641165392004404
> Webpage: http://rtorres.webnode.com.br
>
>
> 2013/12/15 fereshteh komijani <fereshtehkomijani at gmail.com<mailto:fereshtehkomijani at gmail.com>>
>
> dear
> i am a newbie. i have 4 netcdf files which all of them have same time steps (1460). but every one is for different variables (one for salinity, one for temperature and two of them for wind speed components). i should combine them in one netcdf file. it means that i should create one netcdf file for 1460 time step which has salinity, temperature and wind speed component. would you please guide me how i can do that. i have installed OCD and NCL.
> cheers
> fereshte
> --
> **Angel**
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
>
> --
> **Angel**
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
> http://gradsusr.org/mailman/listinfo/gradsusr


_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr



--
**Angel**


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20131222/cc977fec/attachment.html 


More information about the gradsusr mailing list