The First Blog – Getting WRF to work with ERA-Interim data and some other notes.

I actually started this blog as part of another class, but lets pretend that never happened and mark this as the official start.

I’m slowly going to start putting myself out there via this blog, I’m kind of a privacy freak but I also realize that I have saved a lot of time through helpful blogs by people who were willing to share, I’m also trying not to be a hypocrite – I preach open-source but I keep myself closed.

So to start off, I’m currently finishing my masters and I’m in the process of running WRF. It’s not been without challenges though, when running WRF locally compiling can be a major time consumer, you have to know some GNU/Linux basics, which is actually pretty cool. Okay, I’m all over the place, but let me write about my current problem and as the blog evolves hopefully I can get more ordered.

I’m currently running WRF on a convective scale over the South-Africa Highveld, the area is also home to Jo’burg and Pretoria, two of South-Africa major cities, I’m doing this to try to understand hailstorms better. WRF has various input datasets that can be used to initialize the model, I’m specifically using ERA-Interim data, but the ERA data requires some extra steps, I’m not going to try and give an in-depth explanation of all the steps, but instead I’m just doing them here in the order that was successful eventually. I also assume that you’ve already complied WRF successfully and was to lazy to RTFM (like me) and used Google (like me).

Last thing, I use vim, but replace that with whatever you want, on a remote machine nano and vi are good alternatives, Emacs is pretty cool (I’m super slowly learning that) but I don’t know about its availability on all remote computers.

$ ./geogrid.exe
$ ln -sf ungrib/Variable_Tables/ Vtable
$ ./link_grib.csh ~/* ~/*
$ ./ungrib.exe

Create ecmwf_coeffs file:
$ touch ecmwf_coeffs #NOTE: Google for the ecmwf_coeffs contents, its just a table.
$ ./util/calc_ecmwf_p.exe
Look for PRES:2013-11-*

Run metgrid:
Edit namelist.wps:
  fg_name = ‘FILE’ ‘PRES’
$ ./metgrid.exe
Look for met_em.d0*

$ cd WRFV7/test/em_real/
$ ln -sf ../../../WPS3.7/met_em.d0* .
$ ./real.exe
Look for wrfbdy_d01, wrfinput_do1, wrfinput_d02, …
$ ./wrf.exe
Look for wrfout_do1_2013* until complete for the run time series

  • Again, Google around for ecmwf_coeffs table
  • I’m assuming you check, double-check and triple check your namelist.wps and namelist.input. If using more than two domains, check fourth time, its easy to miss something when looking at to long.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s