ERA5: no num_metgrid_levels in met_em files

Questions/topics related to the first-guess input meteorological data, and Vtables
Post Reply
bartbrashers
Posts: 59
Joined: Wed Aug 08, 2018 2:21 pm

ERA5: no num_metgrid_levels in met_em files

Post by bartbrashers » Wed Mar 11, 2020 1:31 am

I'm downloading ERA5 data following https://dreambooker.site/2019/10/03/Ini ... ure-level/, i.e. 38 vertical levels. Note it does not say I need to pre-process the grib files, as is the case of using the 138 model levels.

I'm using WPS-4.1, and ungrib works fine, and metgrid runs and does not complain (says "Successful completion of metgrid" at the end).

When I try to run obsgrid-3.8, I get a segfault. Using ncdump -h to look at a met_em*.nc file, I see the dimension num_metgrid_levels is missing.

Code: Select all

netcdf met_em.d04.2013-12-19_12\:00\:00 {
dimensions:
        Time = UNLIMITED ; // (1 currently)
        DateStrLen = 19 ;
        west_east = 78 ;
        south_north = 75 ;
        num_st_layers = 4 ;
        num_sm_layers = 4 ;
        south_north_stag = 76 ;
        west_east_stag = 79 ;
        z-dimension0003 = 3 ;
        z-dimension0132 = 132 ;
        z-dimension0012 = 12 ;
        z-dimension0016 = 16 ;
        z-dimension0024 = 24 ;
variables:
        char Times(Time, DateStrLen) ;
        float PRES(Time, south_north, west_east) ;
I must be missing a step, not given in the dreambooker page. Suggestions?

Thanks!

bartbrashers
Posts: 59
Joined: Wed Aug 08, 2018 2:21 pm

Re: ERA5: no num_metgrid_levels in met_em files

Post by bartbrashers » Wed Mar 11, 2020 1:46 am

Nevermind! My Vtable was messed up, I was missing all the level code = 100 entries.

bartbrashers
Posts: 59
Joined: Wed Aug 08, 2018 2:21 pm

Re: ERA5: no num_metgrid_levels in met_em files

Post by bartbrashers » Wed Mar 11, 2020 6:51 pm

Would there be a use-case where metgrid writing only the surface-level data would be useful?

If not, perhaps metgrid should issue a warning that no upper-level data were found. Might be worth a few lines of code..

Bart

kwerner
Posts: 1784
Joined: Wed Feb 14, 2018 9:21 pm

Re: ERA5: no num_metgrid_levels in met_em files

Post by kwerner » Wed Mar 18, 2020 10:20 pm

Bart,
Thank you for the suggestion! Would you mind opening an "issue" about this on our WPS GitHub repository page?
https://github.com/wrf-model/WPS/issues
NCAR/MMM

Post Reply

Return to “Meteorological Input Data”