[gradsusr] Combining GRIB1 files

Wesley Ebisuzaki - NOAA Federal wesley.ebisuzaki at noaa.gov
Wed Sep 18 09:29:43 EDT 2013


Andrew,

   Davide is right, the grib file should only have one grid.
I used copygb to regrid the data to a common grid (NCEP
grid #2 which is a 2.5 x 2.5 degree global grid).

ebis at linux-landing:~/Downloads$ copygb.gfortran -g2 -x
D1D09180000091800011_SUPPLEMENTAL junk2
ebis at linux-landing:~/Downloads$ copygb.gfortran -g2 -x D1D09180000091800011
junk1
ebis at linux-landing:~/Downloads$ cat junk1 junk2 >junk3
ebis at linux-landing:~/Downloads$ grib2ctl.pl -verf junk3 >junk3.ctl
ebis at linux-landing:~/Downloads$ gribmap -i junk3.ctl

Wesley



On Wed, Sep 18, 2013 at 3:26 AM, Davide Sacchetti <
davide.sacchetti at arpal.gov.it> wrote:

> for what I know grads can manage a grib file ONLY if all grids are
> identical ...
> bye bye
> Davide
>
> On Wed, 2013-09-18 at 00:50 -0500, Andrew Revering wrote:
> > I have what *should* be a relatively straightforward problem that is
> > not turning out well.
> >
> >
> > I have two GRIB1 ECMWF files that I want to combine into one file so
> > the data is easier to work with.
> >
> >
> > The files apparently have slightly different format and/or domains.
> > When I combine them using 'cat file1 file2 > out' some of the
> > variables are no longer readable. IE variables originally from file1
> > may be readable, but the variables originally from file2 may not be.
> >
> >
> > Any ideas on what I need to do to the GRIBs so all variables can be
> > read as one file? I'm using grib2ctl and gribmap but not opposed to
> > other tools if necessary.
> >
> >
> > I have the two files in the directory below for your viewing pleasure.
> > http://www.f5data.net/55d3r4/
> >
> >
> >
> > The grib files to combine are:
> > D1D09180000091800011
> >
> > D1D09180000091800011_SUPPLEMENTAL
> >
> >
> >
> > Thanks in advance!
> >
> > Andrew Revering - Follow @andrewrevering on Twitter
> > Convective Development, Inc.
> > PO Box 511, Cambridge, MN 55008
> > http://www.convectivedevelopment.com/
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
>
> --
> --> Attenzione cambio indirizzo: davide.sacchetti at arpal.gov.it
> --
> Davide Sacchetti
> Centro Funzionale Meteo Idrologico di Protezione Civile della Regione
> Liguria
> ARPAL Unità Tecnica Complessa di livello Regionale
> V.le Brigare Partigiane 2 16121 Genova (I)
> tel: +39 010 6437535                    fax: +39 010 6437520
> mail: davide.sacchetti at arpal.gov.it     web: www.meteoliguria.it
>
>
> _______________________________________________
> 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/20130918/1b5f5854/attachment-0003.html 


More information about the gradsusr mailing list