References
- How to run the WRF model using ERA5 (on model levels) as initial and boundary conditions
- Grib to Netcdf conversion
- Download ERA-Interim data
Summarization
- Download
- Preprocess
- Automation
- Geogrid
- Ungrib
- Produce additional intermediate files
- Metgrid
Download
ERA5 data were downloaded as described in How to download ERA5 data via the ECMWF Web API
Here I’m attaching scripts to download surface and model data:
if you want to use analysis and one hour resolution, all you need to change are data
, area
and target
. Otherwise, you should change as needed.
This is a little different from downloading ERA-Interim data. ERA-Interim includes Geopotential and Land-sea mask in invariant field. ERA5 includes them in surface dataset. So, we just need to download surface data and model level data.
Surface data (GetERA5-sfc.py)
|
Model level data (GetERA5-ml.py)
|
Preprocess
Install eccodes (recommended) or grib_api
Install eccodes or grib_api according to ECMWF.
If you choose grib_api, you must install the new version of grib_api. Otherwise, you will get this error when using grib_set (e.g. grib_api Version 1.12.3):
|
Preprocess surface data (optional)
|
Preprocess model level data (necessary)
|
Finally, you will get these files (the structure of filename is [centre]_[dataDate]_[dataType]_[levelType]_[step].grib[edition]
):
|– ecmf_20150531_an_ml_0.grib1
|– ecmf_20150531_an_sfc_0.grib1
|– ecmf_20150601_an_ml_0.grib1
|– ecmf_20150601_an_sfc_0.grib1
Link_grib.csh all these files in your preprocessing working directory.
Automation script (Download + Preprocess)
You can automate the script rather than change elements one by one (as suggested by Conor).
|
Geogrid
run geogrid.exe as usual
Ungrib
run ungrib.exe by using the following Vtable (as suggested by valerio):
|
Produce additional intermediate files
Create the following ecmwf_coeffs table (named ecmwf_coeffs) and run */WPS/util/calc_ecmwf_p.exe:
|
Metgrid
Edit namelist.wps like this:
|
If you just run metgrid.exe, you’ll get these warnings:
|
You can edit METGRID.TBL to set interpolation method of ST100255
SM100255
and LOGSFP
:
|
Run metgrid.exe with the modified METGRID.TBL.ARW table.
Note of mozbc
If you’re using MOZART in WRF-Chem, then you need to change LOGSFP field in met* files to PSFC:
|