[Met_help] [rt.rap.ucar.edu #71271] History for ECMWF-grib-filein MET

John Halley Gotway via RT met_help at ucar.edu
Thu Apr 2 15:08:08 MDT 2015


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Good morning,

We have successfully used GRID-STAT using GRIB files from local model. I
tried to use the GRIB files from  ECMWF model, 2m temperatures in the same
way but the name parameter and level do not match.

here is wgrib output.

wgrib -V 2t_0.grb

rec 1:0:date 2015033000 2T kpds5=167 kpds6=1 kpds7=0 levels=(0,0) grid=255
sfc anl:
  2T=2 metre temperature [K]
  timerange 0 P1 0 P2 0 TimeU 1  nx 20 ny 12 GDS grid 0 num_in_ave 0
missing 0
  center 98 subcenter 0 process 144 Table 128 scan: WE:NS winds(N/S)
  latlon: lat  48.500000 to 43.000000 by 0.500000  nxny 240
          long 20.000000 to 29.500000 by 0.500000, (20 x 12) scan 0 mode
128 bdsgrid 1
  min/max data 270.694 283.351  num bits 12  BDS_Ref 270.694  DecScale 0
BinScale -8

I tried many combinations but without success. Thre  is there any tool /
command that can find the parameter name and the corresponding level the
GRIB file compatible with METV GRIB tables  ? I use several European
models, local GRIB tables GRIB tables  and I spend   more time to find the
right leveland parameter name.
In the attached file we have a small grib file
Thank you,

Otilia Diaconu

National Meteorological Administration


----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: ECMWF-grib-filein MET
From: John Halley Gotway
Time: Wed Apr 01 11:47:46 2015

Otilia,

The GRIB1 tables used by MET are stored in this file:
   met-5.0/data/table_files/nceptab_flat.txt

The GRIB2 tables are here:
   met-5.0/data/table_files/grib2_vars_flat.txt

When you run "make install" those files get copied over into this
directory:
   {prefix}/share/met/table_files

Where {prefix} is the installation directory.  At run time, the MET
tools
read those files from the installed "share" directory.

Using wgrib to look at the file you sent, I see that it encodes
temperature
as GRIB code 167 using parameter table version number 128.

wgrib 2t_0.grb -PDS10
1:0:d=15033000:2T:kpds5=167:kpds6=1:kpds7=0:TR=0:P1=0:P2=0:TimeU=1:sfc:anl:NAve=0:PDS10=
0 0 28 128 98 144 255 128 167 1 0 0 15 3 30 0 0 1 0 0 0 0 0 0 21 0 0 0

So here's what I recommend you do...
(1) Edit the file "nceptab_flat.txt".
   Find the line beginning with "167 128" and edit it as follows:
      167 128 "2T" "2 metre temperature" "K"

(2) Copy that file into the "share/met/table_files" directory...
either
manually or by running "make install".

(3) Try running the following command to make sure it works:
     plot_data_plane 2t_0.grb 2t_0.ps 'name="2T"; level="Z0";
GRIB1_ptv=128;'

The GRIB1_ptv instructs MET to use parameter table version number 128,
instead of the default value of 2.  The result of the job will be a
postscript plot of that data.  You can use the same settings in your
Grid-Stat config file.

Hopefully that'll resolve your current issue, but in the long run,
it's
clear that we should enhance MET to do a better job of supporting the
ECMWF
GRIB tables automatically.

Thanks,
John Halley Gotway
met_help at ucar.edu



On Tue, Mar 31, 2015 at 10:58 PM, Otilia Diaconu via RT
<met_help at ucar.edu>
wrote:

>
> Tue Mar 31 22:58:43 2015: Request 71271 was acted upon.
> Transaction: Ticket created by otilia.diaconu at gmail.com
>        Queue: met_help
>      Subject: ECMWF-grib-filein MET
>        Owner: Nobody
>   Requestors: otilia.diaconu at gmail.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=71271 >
>
>
> Good morning,
>
> We have successfully used GRID-STAT using GRIB files from local
model. I
> tried to use the GRIB files from  ECMWF model, 2m temperatures in
the same
> way but the name parameter and level do not match.
>
> here is wgrib output.
>
> wgrib -V 2t_0.grb
>
> rec 1:0:date 2015033000 2T kpds5=167 kpds6=1 kpds7=0 levels=(0,0)
grid=255
> sfc anl:
>   2T=2 metre temperature [K]
>   timerange 0 P1 0 P2 0 TimeU 1  nx 20 ny 12 GDS grid 0 num_in_ave 0
> missing 0
>   center 98 subcenter 0 process 144 Table 128 scan: WE:NS winds(N/S)
>   latlon: lat  48.500000 to 43.000000 by 0.500000  nxny 240
>           long 20.000000 to 29.500000 by 0.500000, (20 x 12) scan 0
mode
> 128 bdsgrid 1
>   min/max data 270.694 283.351  num bits 12  BDS_Ref 270.694
DecScale 0
> BinScale -8
>
> I tried many combinations but without success. Thre  is there any
tool /
> command that can find the parameter name and the corresponding level
the
> GRIB file compatible with METV GRIB tables  ? I use several European
> models, local GRIB tables GRIB tables  and I spend   more time to
find the
> right leveland parameter name.
> In the attached file we have a small grib file
> Thank you,
>
> Otilia Diaconu
>
> National Meteorological Administration
>
>

------------------------------------------------
Subject: ECMWF-grib-filein MET
From: Otilia Diaconu
Time: Wed Apr 01 21:47:14 2015

Bonjour,
Thank you very much,
After very precise indications, I edited GRIB table with parameteres
from
ECMWF GRIB tabe 128,  I introduced table in the configuration file
statement GRIB1_ptv = 128.. and everything goes well.
Job done,
Best regards
Otilia Diaconu

On Wed, Apr 1, 2015 at 8:47 PM, John Halley Gotway via RT
<met_help at ucar.edu
> wrote:

> Otilia,
>
> The GRIB1 tables used by MET are stored in this file:
>    met-5.0/data/table_files/nceptab_flat.txt
>
> The GRIB2 tables are here:
>    met-5.0/data/table_files/grib2_vars_flat.txt
>
> When you run "make install" those files get copied over into this
> directory:
>    {prefix}/share/met/table_files
>
> Where {prefix} is the installation directory.  At run time, the MET
tools
> read those files from the installed "share" directory.
>
> Using wgrib to look at the file you sent, I see that it encodes
temperature
> as GRIB code 167 using parameter table version number 128.
>
> wgrib 2t_0.grb -PDS10
>
>
1:0:d=15033000:2T:kpds5=167:kpds6=1:kpds7=0:TR=0:P1=0:P2=0:TimeU=1:sfc:anl:NAve=0:PDS10=
> 0 0 28 128 98 144 255 128 167 1 0 0 15 3 30 0 0 1 0 0 0 0 0 0 21 0 0
0
>
> So here's what I recommend you do...
> (1) Edit the file "nceptab_flat.txt".
>    Find the line beginning with "167 128" and edit it as follows:
>       167 128 "2T" "2 metre temperature" "K"
>
> (2) Copy that file into the "share/met/table_files" directory...
either
> manually or by running "make install".
>
> (3) Try running the following command to make sure it works:
>      plot_data_plane 2t_0.grb 2t_0.ps 'name="2T"; level="Z0";
> GRIB1_ptv=128;'
>
> The GRIB1_ptv instructs MET to use parameter table version number
128,
> instead of the default value of 2.  The result of the job will be a
> postscript plot of that data.  You can use the same settings in your
> Grid-Stat config file.
>
> Hopefully that'll resolve your current issue, but in the long run,
it's
> clear that we should enhance MET to do a better job of supporting
the ECMWF
> GRIB tables automatically.
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
>
>
> On Tue, Mar 31, 2015 at 10:58 PM, Otilia Diaconu via RT
<met_help at ucar.edu
> >
> wrote:
>
> >
> > Tue Mar 31 22:58:43 2015: Request 71271 was acted upon.
> > Transaction: Ticket created by otilia.diaconu at gmail.com
> >        Queue: met_help
> >      Subject: ECMWF-grib-filein MET
> >        Owner: Nobody
> >   Requestors: otilia.diaconu at gmail.com
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=71271 >
> >
> >
> > Good morning,
> >
> > We have successfully used GRID-STAT using GRIB files from local
model. I
> > tried to use the GRIB files from  ECMWF model, 2m temperatures in
the
> same
> > way but the name parameter and level do not match.
> >
> > here is wgrib output.
> >
> > wgrib -V 2t_0.grb
> >
> > rec 1:0:date 2015033000 2T kpds5=167 kpds6=1 kpds7=0 levels=(0,0)
> grid=255
> > sfc anl:
> >   2T=2 metre temperature [K]
> >   timerange 0 P1 0 P2 0 TimeU 1  nx 20 ny 12 GDS grid 0 num_in_ave
0
> > missing 0
> >   center 98 subcenter 0 process 144 Table 128 scan: WE:NS
winds(N/S)
> >   latlon: lat  48.500000 to 43.000000 by 0.500000  nxny 240
> >           long 20.000000 to 29.500000 by 0.500000, (20 x 12) scan
0 mode
> > 128 bdsgrid 1
> >   min/max data 270.694 283.351  num bits 12  BDS_Ref 270.694
DecScale 0
> > BinScale -8
> >
> > I tried many combinations but without success. Thre  is there any
tool /
> > command that can find the parameter name and the corresponding
level the
> > GRIB file compatible with METV GRIB tables  ? I use several
European
> > models, local GRIB tables GRIB tables  and I spend   more time to
find
> the
> > right leveland parameter name.
> > In the attached file we have a small grib file
> > Thank you,
> >
> > Otilia Diaconu
> >
> > National Meteorological Administration
> >
> >
>
>

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


More information about the Met_help mailing list