MET Online Tutorial for METv3.0

PB2NC Tool: Configure

The behavior of PB2NC is controlled by the contents of the configuration file passed to it on the command line. The default PB2NC configuration may be found in the METv3.0/data/config/PB2NCConfig_default file. The configuration used by the test script may be found in the METv3.0/scripts/config/PB2NCConfig_G212 file. Prior to modifying the configuration file, users are advised to make a copy of the default:

    cp data/config/PB2NCConfig_default tutorial/config/PB2NCConfig_tutorial

Open up the tutorial/config/PB2NCConfig_tutorial file for editing with your preferred text editor.

The configurable items for PB2NC are used to filter out the PrepBufr observations that should be retained or derived. You may find a complete description of the configurable items in the MET Users Guide or in the comments of the configuration file itself. Please take some time to review them.

For this tutorial, edit the tutorial/config/PB2NCConfig_tutorial file as follows:

  • Set message_type[] = [ "ADPUPA", "ADPSFC" ]; to retain only those 2 message types.
  • Set beg_ds = -1800; and end_ds = 1800; so that only observations within 30 minutes of the file time will be retained.
  • Set mask_grid = "G212"; to retain only those observations residing within the bounds of NCEP Grid 212 (on which the forecast data resides).
  • Set obs_grib_code[] = [ "SPFH", "TMP", "UGRD", "VGRD", "WIND", "RH" ]; to retain observations for specific humidity, temperature, the u-component of wind, and the v-component of wind and to derive observation values for wind speed and relative humidity. A list of valid GRIB codes, their units, and the corresponding abbreviations may be found here.

Save and close this file.