Modifying Timing Control in Example.conf
Modifying Timing Control in Example.confTiming Control in METplus
METplus configuration variables that control timing information are described in the Timing Control section of the System Configuration chapter in the METplus User's Guide. The Example wrapper is a good tool to help understand how these settings control what is run by the METplus wrappers.
- Copy the Example.conf configuration file in your user_config directory, renaming it Example_timing.conf
${METPLUS_TUTORIAL_DIR}/user_config/Example_timing.conf
- Open the new Example_timing.conf file with an editor.
- Make the following changes:
3a. Change VALID_BEG and VALID_END:
VALID_END = 2017020200
to:
VALID_END = 2022011809
3b. Change LEAD_SEQ:
to:
3c. Change EXAMPLE_CUSTOM_LOOP_LIST:
to:
Also note that "ext" stands for extension and "nc" is the typical extension for a netCDF file. The initial example demonstrates how you can have METplus loop over two types of files but the removal of "nc" results in METplus only looking for files that end with "ext".
- Call the run_metplus.py script again, this time passing in the Example_timing.conf configuration file and the tutorial.conf configuration file. You should see logs output to the screen.
${METPLUS_TUTORIAL_DIR}/user_config/Example_timing.conf \
${METPLUS_TUTORIAL_DIR}/tutorial.conf
- Review the screen output and/or log file output.
- Open Example_timing.conf again to increase the frequency of output by making the following changes:
6a. Change VALID_END:
to:
- Call the run_metplus.py script again and see how the output has changed.
${METPLUS_TUTORIAL_DIR}/user_config/Example_timing.conf \
${METPLUS_TUTORIAL_DIR}/tutorial.conf
INFO: Processing forecast lead 3 hours initialized at 2022-01-18 12Z and valid at 2022-01-18 15Z
- Change the timing settings to loop by initialization (or retrospective) time. Open Example_timing.conf again and make the following changes:
8a. Change LOOP_BY:
to:
8b. Change VALID_TIME_FMT to INIT_TIME_FMT:
to:
8c. Change VALID_BEG to INIT_BEG:
to:
8d. Change VALID_END to INIT_END:
to:
8e. Change VALID_INCREMENT to INIT_INCREMENT:
to:
- Call the run_metplus.py script once again and see how the output has changed.
${METPLUS_TUTORIAL_DIR}/user_config/Example_timing.conf \
${METPLUS_TUTORIAL_DIR}/tutorial.conf
INFO: Processing forecast lead 3 hours initialized at 2022-01-18 15Z and valid at 2022-01-18 18Z
- Change the value for LOOP_BY from INIT to its nickname RETRO. Open Example_timing.conf again and make the following changes:
10a. Change LOOP_BY:
to:
- Call the run_metplus.py script another time.
${METPLUS_TUTORIAL_DIR}/user_config/Example_timing.conf \
${METPLUS_TUTORIAL_DIR}/tutorial.conf