WRF:NUM_METGRID_SOIL_LEVELS = 0 (from met_em files).

xpji

New member
hi,all
when i run real.exe, i got an error like:
d01 2020-09-01_00:00:00 ---- ERROR: Mismatch between namelist and input file dimensions
NOTE: 1 namelist vs input data inconsistencies found.

or like:
----------------- ERROR -------------------
namelist : num_metgrid_soil_levels = 4
input files : NUM_METGRID_SOIL_LEVELS = 0 (from met_em files).
d01 2020-09-01_00:00:00 ---- ERROR: Mismatch between namelist and global attribute NUM_METGRID_SOIL_LEVELS
NOTE: 1 namelist vs input data inconsistencies found.

After some checking, I realized that it was caused by the inconsistency with namelist.input due to NUM_METGRID_SOIL_LEVELS = 0 in my met file.
But this met file is generated by the FILE:xxx file I wrote via py, after metgrid.exe, and I really don't add the variables ST and SM in the FILE:xxx file.
If I change NUM_METGRID_SOIL_LEVELS = 0 in namelist.input, I can run it next but it reports other errors.


So, should I add them manually in the make FILE file? and what should i add?
 
Hi,
When you obtain input data, you should make sure the data contain all the required input variables, which includes the soil moisture and soil temperature data. When you have that data, you should then be able to include those data in the intermediate files (i.e., FILE:*), and then they will be included in the met_em* files. You cannot simply set num_metgrid_levels = 0 in namelist.input because the model needs those variables to be able to run.
 
Vtable is Vtable.ECMWF, but the input data is completely created by me through the python code, rather than downloaded from reanalysis data, such as (ERA5).
 
Hi,
When you obtain input data, you should make sure the data contain all the required input variables, which includes the soil moisture and soil temperature data. When you have that data, you should then be able to include those data in the intermediate files (i.e., FILE:*), and then they will be included in the met_em* files. You cannot simply set num_metgrid_levels = 0 in namelist.input because the model needs those variables to be able to run.
Thanks.
I understand what you mean. But I want to say that the environment variables in these necessary data were created by myself, and then I used the pywinter package in Python to create a FILE intermediate format file. Instead of downloading the reanalysis data run geogrid.exe to obtain a FILE format file.
So what should I add to this soil data?
 
Hi,
I solved the problem!
I manually downloaded the Soil temperature and Soil moisture data of ERA5, and then manually added it to my FILE file.
When I run real.exe again, the above error will not appear.
thanks all
 
That's great news! I'm glad to hear you were able to resolve it, and thank you for sharing the resolution.
 
That's great news! I'm glad to hear you were able to resolve it, and thank you for sharing the resolution.
Hi,I use grapes data 。with some errors:
:NUM_METGRID_SOIL_LEVELS = 0 ;
:FLAG_SOILM005 = 1 ;
:FLAG_SOILM020 = 1 ;
:FLAG_SOILM040 = 1 ;
:FLAG_SOILM100 = 1 ;
:FLAG_SOILHGT = 1 ;
I using the Vtable files

What can I do making wrf to use?
 
Hi,I use grapes data 。with some errors:
:NUM_METGRID_SOIL_LEVELS = 0 ;
:FLAG_SOILM005 = 1 ;
:FLAG_SOILM020 = 1 ;
:FLAG_SOILM040 = 1 ;
:FLAG_SOILM100 = 1 ;
:FLAG_SOILHGT = 1 ;
I using the Vtable files

What can I do making wrf to use?
Since your question is not directly related to the original topic in this thread, please start a new thread about your issue, with some additional explanation and attach files that may be helpful to us. Thanks!
 
Since your question is not directly related to the original topic in this thread, please start a new thread about your issue, with some additional explanation and attach files that may be helpful to us. Thanks!
ok,
GRIB1| Level| From | To | metgrid | metgrid | metgrid |GRIB2|GRIB2|GRIB2|GRIB2|
Param| Type |Level1|Level2| Name | Units | Description |Discp|Catgy|Param|Level|
-----+------+------+------+----------+---------+-----------------------------------------+-----------------------+
11 | 100 | * | | TT | K | Temperature | 0 | 0 | 0 | 100 |
33 | 100 | * | | UU | m s-1 | U | 0 | 2 | 2 | 100 |
34 | 100 | * | | VV | m s-1 | V | 0 | 2 | 3 | 100 |
52 | 100 | * | | RH | % | Relative Humidity | 0 | 1 | 1 | 100 |
7 | 100 | * | | HGT | m | Height | 0 | 3 | 5 | 100 |
11 | 105 | 2 | | TT | K | Temperature at 2 m | 0 | 0 | 0 | 103 |
52 | 105 | 2 | | RH | % | Relative Humidity at 2 m | 0 | 1 | 1 | 103 |
33 | 105 | 10 | | UU | m s-1 | U at 10 m | 0 | 2 | 2 | 103 |
34 | 105 | 10 | | VV | m s-1 | V at 10 m | 0 | 2 | 3 | 103 |
1 | 1 | 0 | | PSFC | Pa | Surface Pressure | 0 | 3 | 0 | 1 |
130 | 102 | 0 | | PMSL | Pa | Sea-level Pressure | 0 | 3 | 192 | 101 |
11 | 112 | 0 | 10 | ST000010 | K | T 10-30 cm below ground layer (GRAPES) | 0 | 0 | 0 | 106 |
11 | 112 | 10 | 30 | ST010040 | K | T 10-30 cm below ground layer (GRAPES) | 0 | 0 | 0 | 106 |
11 | 112 | 30 | 60 | ST040100 | K | T 30-60 cm below ground layer (GRAPES) | 0 | 0 | 0 | 106 |
11 | 112 | 60 | 100 | ST100200 | K | T 60-100 cm below ground layer (GRAPES) | 0 | 0 | 0 | 106 |
192 | 112 | 0 | 10 | SM000010 | fraction| Soil Moist 0-10 cm (GRAPES) | 0 | 1 | 0 | 106 |
192 | 112 | 10 | 30 | SM010040 | fraction| Soil Moist 10-30 cm (GRAPES) | 0 | 1 | 0 | 106 |
192 | 112 | 30 | 60 | SM040100 | fraction| Soil Moist 30-60 cm (GRAPES) | 0 | 1 | 0 | 106 |
192 | 112 | 60 | 100 | SM100200 | fraction| Soil Moist 60-100 cm (GRAPES) | 0 | 1 | 0 | 106 |
81 | 1 | 0 | | LANDSEA | proprtn | Land/Sea flag (1=land, 0 or 2=sea) | 2 | 0 | 0 | 1 |
81 | 1 | 0 | | LANDN | proprtn | | 2 | 0 | 218 | 1 |
7 | 1 | 0 | | SOILHGT | m | Terrain field of source analysis | 0 | 3 | 5 | 1 |
11 | 1 | 0 | | SKINTEMP | K | Skin temperature | 0 | 0 | 0 | 1 |
65 | 1 | 0 | | SNOW | kg m-2 | Water equivalent snow depth | 0 | 1 | 13 | 1 |
| 1 | 0 | | SNOWH | m | Physical Snow Depth | 0 | 1 | | 1 |
33 | 6 | 0 | | UMAXW | m s-1 | U at max wind | 0 | 2 | 2 | 6 |
34 | 6 | 0 | | VMAXW | m s-1 | V at max wind | 0 | 2 | 3 | 6 |
2 | 6 | 0 | | PMAXW | Pa | Pressure of max wind level | 0 | 3 | 0 | 6 |
| 6 | 0 | | PMAXWNN | Pa | PMAXW, used for nearest neighbor interp | 0 | 3 | 0 | 6 |
2 | 6 | 0 | | TMAXW | K | Temperature at max wind level | 0 | 0 | 0 | 6 |
7 | 6 | 0 | | HGTMAXW | m | Height of max wind level | 0 | 3 | 5 | 6 |
33 | 7 | 0 | | UTROP | m s-1 | U at tropopause | 0 | 2 | 2 | 7 |
34 | 7 | 0 | | VTROP | m s-1 | V at tropopause | 0 | 2 | 3 | 7 |
2 | 7 | 0 | | PTROP | Pa | Pressure of tropopause | 0 | 3 | 0 | 7 |
| 7 | 0 | | PTROPNN | Pa | PTROP, used for nearest neighbor interp | 0 | 3 | 0 | 7 |
2 | 7 | 0 | | TTROP | K | Temperature at tropopause | 0 | 0 | 0 | 7 |
7 | 7 | 0 | | HGTTROP | m | Height of tropopause | 0 | 3 | 5 | 7 |
-----+------+------+------+----------+---------+-----------------------------------------+-----------------------+
#
# Vtable for GFS pressure-level data from the ncep server.
# This version includes fields from the Tropopause and Max Wind levels used by WRF V3.6.1 and later.
# NCEP has used multiple definitions of the soil temperature in their output and the Vtable attempts
# to account for these possibilities. (Definition changed 14 Jan 2015).
#
# ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.ccyymmddhh/ (note hh at end)
#
# approx. grid hours domain dx notes
# file size no.
#
# gfs.t12z.pgrb2.0p25 220000 Kb 193 3-h to 240-h global 0.25 deg (26 p-levels plus sfc and trop, 1000 to 10 mb).
# gfs.t12z.pgrb2.0p50 68000 Kb 4 3-h to 240-h global 0.5 deg (26 p-levels plus sfc and trop, 1000 to 10 mb).
#
# Prior to 12z 14 January 2015:
#
# gfs.t12z.pgrb2f00 56000 Kb 4 3-h to 192-h global 0.5 deg (26 p-levels plus sfc and trop, 1000 to 10 mb).
# gfs.t12z.pgrbf00.grib2 18000 Kb 3 3-h to 384-h global 1.0 deg (26 p-levels plus sfc and trop, 1000 to 10 mb).
#
#
# As of mid-2017 the GFS provides two land mask fields in the pressure-level output. WPS uses LANDN if available
# and renames it LANDSEA.
#
# As of WPS V4.1 (April 2019) the default PMSL is changed to MSLET. MSLET is an unsmoothed sea level pressure.
# NCEP included MSLET in their GFS files beginning 12z on 10 May 2011 and in their GDAS files at 12z 14 January 2015.
# The smoother PRMSL is in all GFS/GDAS pressure files.
# For GFS files prior to those dates use PRMSL as shown in the following line:
# 2 | 102 | 0 | | PMSL | Pa | Sea-level Pressure | 0 | 3 | 1 | 101 |
#
#
# Abbreviated history of GFS changes (all starting at 12 UTC)
#
# Sometime 2019 - Update to FV3 (requires WPS V4.0 or later)
# 19 July 2017 - Change to land mask and other terrestrial variables (requires WPS V3.9.1.1)
# - Change missing value, removal of grid 211 (80km conus). Flag value of .468 in soil moisture.
# 11 May 2016 - Assimilate AMSU-A radiances, AVHRR winds, CRTMv2.2.1, 4d hybrid das.
# - Add 5 stratospheric levels to ouput. UPP V7.0. Land surface and GWD upates.
# 14 January 2015 - Add MSLET to GDAS. Change from T574 (27km) to T1534 (13km). Fcst length to 240 h.
# - semi-lagrangian, uses rtgsst, Z0 dependent on vegetation type, CRTMv2.1.3, 0.25 deg output
# 10 May 2011 - Add MSLET to output. New thermal roughness length. Elevation of buoys to 10m.
# - Improved GSI, update CRTM. Recomputed BE.
# 27 July 2010 - T382 (35km) to T574 (27km). new pbl, gravity wave drag, updated deep convective scheme
# 13 May 2008 - RRTM radiation, aerosol, cloud overlap, windsat sfc winds, flow dependent bev.
# 25 September 2007 - Implement UPP.
# 31 May 2005 - T254L64 to T382L64. Change in soil output to 3 levels.
# 29 October 2002 - Change from T170L42 to T254L64. Model top changed from 2 hPA to .2 hPa


Why soil moisture cannot be recognized but soil temperature can? USing Z_NAFP_C_BABJ_20260104060000_P_NWPC-GRAPES-TYM-ACWP-00600.grib2
I have already solved the previous problem.

thank you
 
Back
Top