METplus Practical Session Guide (Feb 2019) | Session 3: Ensemble and PQPF > Additional Exercises

End of Practical Session 3

Congratulations! You have completed Session 3!

If you have extra time, you may want to try these additional METplus exercises. The answers are found on the next page.

EXERCISE 3.1: accum_3hr - Build a 3 Hour Accumulation Instead of 6

Instructions: Modify the METplus configuration files to build a 3 hour accumulation instead of a 6 hour accumulation from forecast data using pcp_combine in the HREF MEAN vs. MRMS QPE example. Then compare 3 hour accumulations in the forecast and observation data with grid_stat.

Copy your custom configuration file and rename it to mycustom.accum_3hr.conf for this exercise.

cp $HOME/METplus/parm/mycustom.conf $HOME/METplus/parm/mycustom.accum_3hr.conf 

Open hrefmean-vs-mrms-qpe.conf (qpf) to remind yourself how fields are defined in METplus 

less $HOME/METplus/parm/use_cases/qpf/examples/hrefmean-vs-mrms-qpe.conf 

Open mycustom.accum_3hr.conf with an editor and changes values.

HINT: There is a variable in the observation data named 'P03M_NONE' that contains a 3 hour accumulation. 

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/accum_3hr 

Rerun master_metplus passing in your new custom config file for this exercise 

master_metplus.py -c use_cases/qpf/examples/hrefmean-vs-mrms-qpe.conf -c mycustom.accum_3hr.conf 
 

Review the log file. You should see pcp_combine read 3 files and run grid_stat comparing both 3 hour accumulations.

DEBUG 2: Performing addition command for 3 files.
DEBUG 1: Reading input file: /classroom/wrfhelp/METplus_Data/qpf/uswrp/HREFv2_Mean/native/20170621/hrefmean_2017062100f024.nc
DEBUG 1: Reading input file: /classroom/wrfhelp/METplus_Data/qpf/uswrp/HREFv2_Mean/native/20170621/hrefmean_2017062100f023.nc
DEBUG 1: Reading input file: /classroom/wrfhelp/METplus_Data/qpf/uswrp/HREFv2_Mean/native/20170621/hrefmean_2017062100f022.nc
DEBUG 1: Writing output file: /classroom/users/class113/metplus_tutorial/output/exercises/accum_3hr/uswrp/HREFv2_Mean/bucket/20170622/hrefmean_2017062200_A03.nc

...

DEBUG 2: Processing APCP_03(*,*) versus P03M_NONE(0,*,*)...

Go to the next page for the solution to see if you were right!

EXERCISE 3.2: input_1hr - Force pcp_combine to only use 1 hour accumulation files

Instructions: Modify the METplus configuration files to force pcp_combine to use six 1 hour accumulation files instead of one 6 hour accumulation file of observation data in the PHPT vs. StageIV GRIB example.

Recall from the QPF presentation that METplus used a 6 hour observation accumulation file as input to pcp_combine to build a 6 hour accumulation file for the example where forecast lead = 6. From the log output:

DEBUG 2: Performing addition command for 1 files.
DEBUG 1: Reading input file: /classroom/wrfhelp/METplus_Data/qpf/uswrp/StageIV/20160904/ST4.2016090418.06h
DEBUG 1: Writing output file: /classroom/users/class113/metplus_tutorial/output/mtd/uswrp/StageIV_grib/bucket/20160904/ST4.2016090418_A06h

Copy your custom configuration file and rename it to mycustom.input_1hr.conf for this exercise.

cp $HOME/METplus/parm/mycustom.conf $HOME/METplus/parm/mycustom.input_1hr.conf 

Open phpt-vs-s4grib.conf to remind yourself how fields are defined in METplus 

less $HOME/METplus/parm/use_cases/qpf/examples/phpt-vs-s4grib.conf 

Open mycustom.input_1hr.conf with an editor and add the extra information. 

HINT 1: The variables that you need to add must go under the [config] section. 

HINT 2: The FCST_LEVEL and OBS_LEVEL variables set the accumulation interval that is found in grib2 input data for forecast and observation data respectively. 

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/input_1hr 

Rerun master_metplus passing in your new custom config file for this exercise 

master_metplus.py -c use_cases/qpf/examples/phpt-vs-s4grib.conf -c mycustom.input_1hr.conf 

Review the log file to verify that six 1 hour accumulation files were used to generate the file valid at 2016090418. You should see the following in the log file:

DEBUG 2: Performing addition command for 6 files.
DEBUG 1: Reading input file: /classroom/wrfhelp/METplus_Data/qpf/uswrp/StageIV/20160904/ST4.2016090418.01h
DEBUG 1: Reading input file: /classroom/wrfhelp/METplus_Data/qpf/uswrp/StageIV/20160904/ST4.2016090417.01h
DEBUG 1: Reading input file: /classroom/wrfhelp/METplus_Data/qpf/uswrp/StageIV/20160904/ST4.2016090416.01h
DEBUG 1: Reading input file: /classroom/wrfhelp/METplus_Data/qpf/uswrp/StageIV/20160904/ST4.2016090415.01h
DEBUG 1: Reading input file: /classroom/wrfhelp/METplus_Data/qpf/uswrp/StageIV/20160904/ST4.2016090414.01h
DEBUG 1: Reading input file: /classroom/wrfhelp/METplus_Data/qpf/uswrp/StageIV/20160904/ST4.2016090413.01h
DEBUG 1: Writing output file: /classroom/users/class113/metplus_tutorial/output/exercises/input_1hr/uswrp/StageIV_grib/bucket/20160904/ST4.2016090418_A06h 

Go to the next page for the solution to see if you were right!