Error in user config documentation? #1074
-
In the documentation here: https://metplus.readthedocs.io/en/main_v4.0/Users_Guide/systemconfiguration.html#user-configuration-file it indicated that a user configuration file can consist of as little as OUTPUT_BASE. However, I am finding that there are a number of entries that must be included, even if they are present in default.conf. For example, removing LOG_DIR from my user_system file results in: (base) login4.stampede2(1057)$ ./run_metplus.py -c /work/02441/bcash/stampede2/metplus/METplus-4.0.0/parm/use_cases/met_tool_wrapper/Example/Example.conf -c /work/02441/bcash/stampede2/metplus/METplus-4.0.0/parm/metplus_config/stampede2.conf And there are other entries that will also cause an error if they are not duplicated in my stampede2.conf. Is this an error in the documentation or have I misunderstood it? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @benjamin-cash, based on the screen output it appears that you may have removed the defaults.conf file from your METplus installation directory. This file should be present in the /work/02441/bcash/stampede2/metplus/METplus-4.0.0/parm/metplus_config directory. A log message will mention that this file was read. Did you rename defaults.conf to stampede2.conf? You will need to obtain the defaults.conf file again without any values removed. You can change the values for MET_INSTALL_DIR (where MET is installed) and INPUT_BASE (location of sample input data) to the appropriate locations in defaults.conf directly if you'd like. Your stampede2.conf file should exist outside of the METplus installation directory and will need to include at least OUTPUT_BASE. |
Beta Was this translation helpful? Give feedback.
-
Hmm, that is odd. I would expect there to be a log line before reading Example.conf that looks something like this:
I would also expect an error to occur if the file was found but couldn't be parsed properly. Could you share your defaults.conf file so I can see what has been changed? |
Beta Was this translation helpful? Give feedback.
-
Here you go: [config] ############################################################################### METplus ConfigurationSee the METplus User's Guide System Configuration sectionfor more information about each of these variables.############################################################################### ############################################################################### MET Installation Location* Set MET_INSTALL_DIR to the path where MET is installed* Change MET_BIN_DIR to {MET_INSTALL_DIR}/exec if necessary############################################################################### MET_INSTALL_DIR = /path/to MET_BIN_DIR = {MET_INSTALL_DIR}/bin ############################################################################### Input/Output Information* Set INPUT_BASE to the directory that contains sample input data* Set OUTPUT_BASE to the directory to write output files* Change other variables to write certain files outside of OUTPUT_BASE* Rename metplus_final.conf config file if desired############################################################################### INPUT_BASE = /path/to OUTPUT_BASE = /path/to METPLUS_CONF = {OUTPUT_BASE}/metplus_final.conf TMP_DIR = {OUTPUT_BASE}/tmp ############################################################################### Non-MET Executables* Set CONVERT to the full path of the ImageMagick utility if it is notin the user's path* Set GEMPAKTOCF_JAR to the full path of the jar file if processingGEMPAK data############################################################################### CONVERT = convert GEMPAKTOCF_JAR = GempakToCF.jar ############################################################################### Runtime Configuration############################################################################### LOOP_ORDER = processes PROCESS_LIST = Usage ############################################################################### Log File Information (Where to write logs files)############################################################################### LOG_METPLUS = {LOG_DIR}/metplus.log.{LOG_TIMESTAMP_TEMPLATE} LOG_DIR = {OUTPUT_BASE}/logs LOG_TIMESTAMP_TEMPLATE = %Y%m%d%H%M%S LOG_TIMESTAMP_USE_DATATIME = no LOG_MET_OUTPUT_TO_METPLUS = yes ############################################################################### Log Level Information (How much information to log)############################################################################### LOG_LEVEL = INFO LOG_MET_VERBOSITY = 2 ############################################################################### Log Formatting Information (How to format lines in log files)############################################################################### LOG_LINE_FORMAT = %(asctime)s.%(msecs)03d %(name)s (%(filename)s:%(lineno)d) %(levelname)s: %(message)s LOG_LINE_DATE_FORMAT = %m/%d %H:%M:%S |
Beta Was this translation helpful? Give feedback.
Here you go:
[config]
###############################################################################
METplus Configuration
See the METplus User's Guide System Configuration section
for more information about each of these variables.
###############################################################################
###############################################################################
MET Installation Location
* Set MET_INSTALL_DIR to the path where MET is installed
* Change MET_BIN_DIR to {MET_INSTALL_DIR}/exec if necessary
###############################################################################
MET_INSTALL_DIR = /path/to
MET_BIN_DIR = {MET_INSTALL_DIR}/bin
#################…