METplus Practical Session Guide (Feb 2019) | METplus Setup > METplus: CUSTOM Configuration File Settings

Create a METplus custom conf file

In this section you will create a custom configuration file that you will use in each call to METplus.

The paths in this practical assume: You have installed METPlus under your $HOME directory and You are using the shared installation of MET. If not, than you need to adjust your paths accordingly.

Perform the following commands ...

Change to your ${HOME}/METplus/parm directory and copy your custom conf file.

cd ${HOME}/METplus/parm
cp /classroom/wrfhelp/METplus/mycustom.conf ${HOME}/METplus/parm/

NOTE: By placing your custom configuration file under the parm directory, you do not have to specify the path to mycustom.conf in the command when refering to it. The commands in this tutorial are setup that way, so make sure to indeed create this file under the METplus/parm directory.

 

NOTE: A METplus conf file is not a shell script.
You CAN NOT refer to environment variables as you would in a shell script, or as in the command above ie. ${HOME}.
Instead, in a conf file, you must define as {ENV[HOME]}

Reminder: Make certain to maintain the KEY = VALUE pairs under their respective current [sections] in the conf file.

Below is the exact content of your mycustom.conf file you just copied to your parm directory. It is instructive to REVIEW the settings to understand what changes were REQUIRED in order to run METplus with the default example use cases from a clean download of the software.

Also Note: [config] is not required if you aren't setting any values in this file for that section, but you can add it in case you want to add options in that section later - which you will be doing.

[dir]
# directory to write output files and logs
OUTPUT_BASE = {ENV[HOME]}/metplus_tutorial/output

# directory containing input data
INPUT_BASE = /classroom/wrfhelp/METplus_Data

# location of MET installation
MET_INSTALL_DIR = /classroom/wrfhelp/MET/8.0

# directory to write temp files
TMP_DIR = {OUTPUT_BASE}/tmp

[config]

[exe]
# Non-MET executables
WGRIB2 = /usr/local/wgrib2/bin/wgrib2
CUT_EXE = /usr/bin/cut
TR_EXE = /usr/bin/tr
RM_EXE = /usr/bin/rm
NCAP2_EXE = /usr/local/nco-4.6.6-gcc/bin/ncap2
CONVERT_EXE = /usr/bin/convert
NCDUMP_EXE = /classroom/wrfhelp/MET/8.0/external_libs/bin/ncdump
EGREP_EXE = /usr/bin/egrep