Help with setting up your GEN_BE forecast directories

What is GEN_BE?

GEN_BE is the WRFDA utility for generating background errors. Background error is the one of the several inputs needed for successful data assimilation, as

What is my input data, and how do I format it?

Ultimately, GEN_BE takes WRF forecast files as input. By looking at the differences between two or more WRF output files that are valid at the same time, GEN_BE can develop some statistics on the background error of the model, which is ultimately the combination of the errors in the first guess and in the model itself.

There are two modes by which this could be achieved. The first and most common is the so-called NMC method as described by Parrish and Derber (1992). This method uses a series of forecasts initialized at regular intervals, and compares forecasts which are valid at the same time for different initialization times. For example, NMC 24-12 compares a 12-hour forecast to a 24-hour forecast initialized 12 hours earlier, a NMC 36-24 setup compares a 24-hour forecast to a 36-hour forecast initialized 12 hours earlier, and so on. This is done for many different dates to build up a large sample size for calculating statistics. The second method is by using a pre-existing ensemble to calculate background error statistics. This is typically done for a single time.

In the WRFDA package, there is a script var/scripts/gen_be/gen_be_wrapper.ksh, which is used to run the GEN_BE utility as described in the user's guide. In that script, you are instructed to set a variable "FC_DIR", which is labelled as "where wrf forecasts are". However, there is no instruction on how these forecasts should be provided. Have no fear, we will teach you in the following sections!

Setting up GEN_BE forecasts for the NMC method

Let's say that we use /user/home/genbe/forecasts/ as our FC_DIR. If we are running from START_DATE=2012091200 to END_DATE=2012091900, we will need to have the following subdirectories within that directory:

  $ ls /user/home/genbe/forecasts/
  2012091100 2012091300 2012091500 2012091700 2012091900
  2012091112 2012091312 2012091512 2012091712 2012091912
  2012091200 2012091400 2012091600 2012091800
  2012091212 2012091412 2012091612 2012091812

Within each of those directories should be the WRF output files from a forecast initialized at that time. In other words, each directory should have the output from a different forecast: you can not use one single, long forecast split into different directories. So the directory /user/home/genbe/forecasts/2012091200/ should have the 12-hour and 24-hour forecast files like this:

  $ ls /user/home/genbe/forecasts/2012091200
  wrfout_d01_2012-09-12_12:00:00 wrfout_d01_2012-09-13_00:00:00

and the directory /user/home/genbe/forecasts/2012091212/should have the 12-hour and 24-hour forecast files like this:
  $ ls /user/home/genbe/forecasts/2012091212

  wrfout_d01_2012-09-13_00:00:00 wrfout_d01_2012-09-13_12:00:00

and so on. GEN_BE will be comparing 2012091200/wrfout_d01_2012-09-13_00:00:00 to 2012091212/wrfout_d01_2012-09-13_00:00:00, 2012091212/wrfout_d01_2012-09-13_12:00:00 to 2012091300/wrfout_d01_2012-09-13_12:00:00, 2012091200/wrfout_d01_2012-09-13_00:00:00 to 2012091212/wrfout_d01_2012-09-13_00:00:00, and so on.

The one-week period above is just an example: in general you should use at least ~25 forecast periods for calculating your statistics (two weeks for the 24-12 NMC method, one month for 48-24).

Setting up GEN_BE forecasts for the ensemble method

Tip NOTE: This capability is not tested very often or extensively, so caution is advised.

As before, let's say that we use /user/home/genbe/forecasts/ as our FC_DIR. If our ensemble data is valid for the date 2007091500, we will need to have a subdirectory for each ensemble member within that directory:

  $ ls /glade/p/work/wrfhelp/WRFDA_DATA/fc
  2007091500.e001
  2007091500.e002
  2007091500.e003
  2007091500.e004
  ... etc.

Within each of these subdirectories, there should be a single WRF output file, which should be the ensemble forecast output.

  $ ls /glade/p/work/wrfhelp/WRFDA_DATA/fc/2007091500.e001   wrfout_d01_2007-09-15_00:00:00   $ ls /glade/p/work/wrfhelp/WRFDA_DATA/fc/2007091500.e002   wrfout_d01_2007-09-15_00:00:00   ... etc.

All these files should just have their original names in the WRF date naming scheme.

There are also some settings within the wrapper script that you will need to change from their default values:

  export START_DATE=2007091500 # the start and end date should be the same for ensemble GEN_BE
  export END_DATE=2007091500
  export BE_METHOD=ENS
  export NE=10 # However many ensemble members you have
 
  export FCST_RANGE1=00

The rest of the settings you should be able to leave alone.


Note: This website is currently under construction. If you notice any problems with the website, including but not limited to broken links, formatting errors, or incorrect information, please submit an email to the or wrfhelp@ucar.edu so that we can address the problem. We appreciate your feedback!

   

 

NOTE: These pages makes use of Java Script. Enable Java on your computer to make use of all the functionality.