End of Practical Session 1: Additional Exercises
End of Practical Session 1: Additional Exercises admin Mon, 06/24/2019 - 16:08Congratulations! You have completed Session 1!
If you have extra time, you may want to try these additional MET exercises:
- Run Gen-Vx-Mask to create a mask for Eastern or Western United States using the polyline files in the data/poly directory. Re-run Grid-Stat using the output of Gen-Vx-Mask.
- Run Gen-Vx-Mask to exercise all the other masking types available.
- Reconfigure and re-run Grid-Stat with the fourier dictionary defined and the grad output line type enabled.
If you have extra time, you may want to try these additional METplus exercises. The answers are found on the next page.
EXERCISE 1.1: add_rh - Add another field to grid_stat
Instructions: Modify the METplus configuration files to add relative humidity (RH) at pressure levels 500 and 250 (P500 and P250) to the output.
Copy your custom configuration file and rename it to mycustom.add_rh.conf for this exercise.
Open anom.conf to remind yourself how fields are defined in METplus
Open mycustom.add_rh.conf with an editor and add the extra information.
HINT: The variables that you need to add must go under the [config] section.
You should also change OUTPUT_BASE to a new location so you can keep it separate from the other runs.
OUTPUT_BASE = {ENV[HOME]}/metplus_tutorial/output/exercises/add_rh
Rerun master_metplus passing in your new custom config file for this exercise
EXERCISE 1.2: log_test - Change the Logging Settings
Instructions: Modify the METplus configuration files to change the logging settings to see what is available.
cp $HOME/METplus/parm/mycustom.conf $HOME/METplus/parm/mycustom.log_test.conf
You should change OUTPUT_BASE to a new location so you can keep it separate from the other runs.
OUTPUT_BASE = {ENV[HOME]}/metplus_tutorial/output/exercises/log_test
Separate METplus Logs from MET Logs
[config]
LOG_MET_OUTPUT_TO_METPLUS = no
For this use case, two log files will be created: master_metplus.log.YYYYMMDD and grid_stat.log_YYYYMMDD
Use Time of Data Instead of Current Time
[config]
LOG_TIMESTAMP_USE_DATATIME = yes
For this use case, VALID_BEG = 2017061300, so the log files will have the format: master_metplus.log.20170613 instead of using today's date
Change Format of Time in Logfile Names
[config]
LOG_TIMESTAMP = %Y%m%d%H%M
For this use case, the log files will have the format: master_metplus.log.YYYYMMDDHH
Rerun master_metplus passing in your new custom config file for this exercise
master_metplus.py -c use_cases/grid_to_grid/examples/anom.conf -c mycustom.log_test.conf
ls $HOME/metplus_tutorial/output/exercises/log_test/logs
Look at metplus_config/metplus_logging.conf to see other logging configurations you can change and test them out!
Answers to Exercises from Session 1
Answers to Exercises from Session 1 cindyhg Tue, 06/25/2019 - 11:44Answers to Exercises from Session 1
These are the answers to the exercises from the previous page. Feel free to ask a MET representative if you have any questions!
ANSWER 1.1: add_rh - Add another field to grid_stat
Instructions: Modify the METplus configuration files to add relative humidity (RH) at pressure levels 500 and 250 (P500 and P250) to the output.
FCST_VAR5_NAME = RH
FCST_VAR5_LEVELS = P500, P250