Re: Convert GRIB to netCDF

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 25 2013 - 13:09:56 MDT

Currently, ncl_convert2nc works on one file at a time. Each individual
input GRIB file is converted to a corresponding netCDF files.

--
However, there are a few approaches that will allow the
creation of a single netCDF file.
[1] Use the unix 'cat' command; then use ncl_convert2nc
     %> cat grib_file01 grib_file02 grib_file03 ... > GRIB_FILE.grb
or
     %> cat grib*  > GRIB_FILE.grb
     %> ncl_convert2nc GRIB_FILE.grb
[2] Use ncl_convert2nc and then use netCDF operator 'ncrcat'
     %> ncl_convert2nc grib* -itime      (force a time dimension)
     This will create a number of netCDF files
     %> ncrcat grib*nc MY_GRIB.nc
On 03/25/2013 12:54 PM, Renata Tedeschi wrote:
> Hello everyone,
>
> When I need to convert a grib file in netcdf file, I can use
> ncl_convert2nc command. Is there any way to transform multiple grib
> files (via template) in a single netcdf file?
>
> Thanks
> Renata Tedeschi
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 25 13:10:09 2013

This archive was generated by hypermail 2.1.8 : Tue Apr 02 2013 - 21:23:48 MDT