Hi Xuejia,

You can use the template option in GraDs to open all the nc files as one file. Just go to the following link and see which works for your purpose. It will solve your problem.

http://www.iges.org/grads/gadoc/templates.html

Otherwise I can give you a FERRET code that will do the job for you. Let me know if you are familiar with FERRET.

good luck,


Mubashar

--- On Sat, 11/6/11, Peter Huszar <huszarpet@gmail.com> wrote:

From: Peter Huszar <huszarpet@gmail.com>
Subject: Re: [RegCNET] convert many nc files into one
To: "Xuejia Wang" <wangxuejia86@163.com>
Cc: RegCNET@lists.ictp.it
Date: Saturday, 11 June, 2011, 11:00 PM

Hello Xuejia,

for this, an ideal tool is CDO (climate data operator). Find the
documentation at

https://code.zmaw.de/embedded/cdo/1.5.0/cdo.html

For Your purposes, You should use it like

cdo mergetime ifile1 ifile2 ifile3 ifile4 ofile

where ifile1, ifile2 etc are the files that contain the same data of
same dimensions, only the time coordinates are different. The ofile is
the name of the output file.

Good luck

Peter

On Sat, Jun 11, 2011 at 7:25 PM, Xuejia Wang <wangxuejia86@163.com> wrote:
> Hello, everybody!
> I have a question want to consult. I have download 60 nc
> files(shtfl.sfc.gauss.1951.nc-shtfl.sfc.gauss.2010.nc). Is there any way to
> make these files become one, which I can handle the synthetic file with
> Grads? Any suggestions will be appreciated.
> Thanks a lot!
>
>
>

------------------------------------------------

Mr. Muhammad Mubashar Dogar

Graduate Student

Earth Science and Engineering Department

Cubical 3203-W10

Building 1, 3rd Floor

King Abdullah University of Science and Technology (KAUST)

Email: muhammad.dogar@kaust.edu.sa, mubashardogar@yahoo.com

           mubashar.ahmad@gcisc.org.pk

Mobile: +966-504788162


---------------------------------------------------------

Muhammmad Mubashar Ahmad Dogar
Scientific Officer (Climatology Section),
Global Change Impact Studies Centre (GCISC),
NCP complex, Quaid-i-Azam University Campus,
Shahdra road, Islamabad, Pakistan.
Tel:  +92519230226
Mob:+923315144169
email: mubashardogar@yahoo.com
         mubashar.ahmad@gcisc.org.pk

         mubashardogar@gmail.com