Re: GRIB to .nc conversion

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon, 30 Mar 2009 12:44:41 -0600

Hi Owen,

There are two ways you can take this:
1) You can use ncl_convert2nc to get a series of files, and then use
the netCDF operator ncrcat to concatenate the series of files into a
single file. For instance:

2) You can use addfiles to read in all the GRIB files at once, and write
out a netCDF file yourself:
(Unless you are dealing with many large arrays/variables, Method 1 under
the 2nd link should work for you.)

Good luck,

Owen Doherty wrote:
> Dear NCL Talk Community,
> I am new to the community, and was unable to find an answer to this
> question in the archives. I have a series of GRIB annual files, each of
> which contains monthly mean SLP fields for each month. It is my
> intention to build a single .nc file from this series GRIB files. It
> appears that "ncl_convert2nc" will produce a series of .nc files, but is
> there an option to produce a single .nc file? Or would I need to first
> convert the files to nc and find another function to concatenate the .nc
> files (suggestions for such a function would be very welcome)?
> Thanks in advance for your help in this. Apologies if this question has
> already been addresses and I cannot find the resolution to it.
> Warm Regards,
> Owen Doherty

Adam Phillips			   
National Center for Atmospheric Research   tel: (303) 497-1726
ESSL/CGD/CAS                               fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Mon Mar 30 2009 - 12:44:41 MDT

This archive was generated by hypermail 2.2.0 : Mon Apr 06 2009 - 14:56:31 MDT