Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Metgrid ERROR: Error in ext_pkg_write_field

Alex33

New member
Hi!

I am trying to run the WRF with the free data from the ECMWF. So far I have successfully run ungrib and calc_ecmwf and the FILE and PRES files are generated, which I use in namelist.wps to run metgrid but it throws me this error without generating any met_em file.

2022-12-20 16:58:15.167 --- INFORM: PRES at level 200100.000000 already exists; leaving it alone.
2022-12-20 16:58:15.220 --- Initializing output module.
2022-12-20 16:58:15.226 --- ERROR: Error in ext_pkg_write_field

Reading a bit I suspect that the SOILHG or SOILGEO variables are not in the free ECMWF data and they are needed to generate the correct fields and even the soil temperature and soil moisture variables are not correct since the following appears when running the metgrid

2022-12-20 16:58:15.150 --- INFORM: Going to create the field ST
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST000010 at level 200100.000000 to fill level 10.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST010040 at level 200100.000000 to fill level 40.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST040100 at level 200100.000000 to fill level 100.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST100200 at level 200100.000000 to fill level 200.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST000010 at level 200100.000000 to fill level 10.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST010035 at level 200100.000000 to fill level 35.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST035100 at level 200100.000000 to fill level 100.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST100300 at level 200100.000000 to fill level 300.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST000010 at level 200100.000000 to fill level 10.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST010200 at level 200100.000000 to fill level 200.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST007028 at level 200100.000000 to fill level 28.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST028100 at level 200100.000000 to fill level 100.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find ST100289 at level 200100.000000 to fill level 289.000000 of ST.
2022-12-20 16:58:15.150 --- INFORM: Going to create the field SM
2022-12-20 16:58:15.150 --- INFORM: Couldn't find SM000010 at level 200100.000000 to fill level 10.000000 of SM.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find SM010040 at level 200100.000000 to fill level 40.000000 of SM.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find SM040100 at level 200100.000000 to fill level 100.000000 of SM.
2022-12-20 16:58:15.150 --- INFORM: Couldn't find SM100200 at level 200100.000000 to fill level 200.000000 of SM.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SM000010 at level 200100.000000 to fill level 10.000000 of SM.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SM010035 at level 200100.000000 to fill level 35.000000 of SM.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SM035100 at level 200100.000000 to fill level 100.000000 of SM.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SM100300 at level 200100.000000 to fill level 300.000000 of SM.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SM000010 at level 200100.000000 to fill level 10.000000 of SM.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SM010200 at level 200100.000000 to fill level 200.000000 of SM.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SM007028 at level 200100.000000 to fill level 28.000000 of SM.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SM028100 at level 200100.000000 to fill level 100.000000 of SM.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SM100289 at level 200100.000000 to fill level 289.000000 of SM.
2022-12-20 16:58:15.151 --- INFORM: Going to create the field SW
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SW000010 at level 200100.000000 to fill level 1.000000 of SW.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SW010040 at level 200100.000000 to fill level 2.000000 of SW.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SW040100 at level 200100.000000 to fill level 3.000000 of SW.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SW100200 at level 200100.000000 to fill level 4.000000 of SW.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SW000010 at level 200100.000000 to fill level 1.000000 of SW.
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SW010200 at level 200100.000000 to fill level 2.000000 of SW.
2022-12-20 16:58:15.151 --- INFORM: Going to create the field SOIL_LAYERS
2022-12-20 16:58:15.151 --- INFORM: Going to create the field SOILM
2022-12-20 16:58:15.151 --- INFORM: Couldn't find SOILM000 at level 200100.000000 to fill level 0.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILM005 at level 200100.000000 to fill level 5.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILM020 at level 200100.000000 to fill level 20.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILM040 at level 200100.000000 to fill level 40.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILM160 at level 200100.000000 to fill level 160.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILM300 at level 200100.000000 to fill level 300.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILM001 at level 200100.000000 to fill level 1.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILM004 at level 200100.000000 to fill level 4.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILM010 at level 200100.000000 to fill level 10.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILM030 at level 200100.000000 to fill level 30.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILM060 at level 200100.000000 to fill level 60.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILM100 at level 200100.000000 to fill level 100.000000 of SOILM.
2022-12-20 16:58:15.152 --- INFORM: Going to create the field SOILT
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT000 at level 200100.000000 to fill level 0.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT005 at level 200100.000000 to fill level 5.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT020 at level 200100.000000 to fill level 20.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT040 at level 200100.000000 to fill level 40.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT160 at level 200100.000000 to fill level 160.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT300 at level 200100.000000 to fill level 300.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT050 at level 200100.000000 to fill level 49.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT050 at level 200100.000000 to fill level 51.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT001 at level 200100.000000 to fill level 1.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT004 at level 200100.000000 to fill level 4.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT010 at level 200100.000000 to fill level 10.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT030 at level 200100.000000 to fill level 30.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT060 at level 200100.000000 to fill level 60.000000 of SOILT.
2022-12-20 16:58:15.152 --- INFORM: Couldn't find SOILT100 at level 200100.000000 to fill level 100.000000 of SOILT.


So I was planning to get the missing variables from the GFS files and generate a hybrid dataset. I was wondering what is the name of the variables that give rise to SOILHG or SOILGEO and soil temperature and humidity?

Regards

Alejandro
 
Hi,
Do you have surface data included in your dataset? If so, the "INFORM" messages may not be a problem and are just stating it didn't find the values for those particular levels (it's more of an "if" loop print), which is okay if you do have the values for other levels. Typically the error "Error in ext_pkg_write_field" means surface data is missing. Check that all your 3D meteorological fields include surface level data. Since you used the calc_ecmwf utility, another issue could be that in your ecmwf_coeffs file, you may be missing level 0 data, and a line may need to be added to the text file in order to make metgrid run correctly after running calc_ecmwf.
 
Top