.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "generated/model_applications/short_range/GenEnsProd_fcstHRRR_fcstOnly_SurrogateSevere.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_generated_model_applications_short_range_GenEnsProd_fcstHRRR_fcstOnly_SurrogateSevere.py: Surrogate Severe Calculation: PCPCombine, GenEnsProd, and RegridDataPlane ========================================================================= model_applications/short_range/GenEnsProd_fcstHRRR_fcstOnly_SurrogateSevere.conf .. GENERATED FROM PYTHON SOURCE LINES 9-13 .. contents:: :depth: 1 :local: :backlinks: none .. GENERATED FROM PYTHON SOURCE LINES 15-30 Scientific Objective -------------------- Run PCPCombine, GenEnsProd, and RegridDataPlane tools to create surrogate severe probability forecasts (SSPFs) for a given date. SSPFs are a severe weather forecasting tool and is a technique used by the Storm Prediction Center (SPC) as well as others. SSPFs are based on updraft helicity (UH; :math:`\text{UH} = \int_{z_0}^{z_t} ( \omega * \zeta ) dz`) since certain thresholds of UH have been shown as good proxies for severe weather. SSPFs can be thought of as the perfect model forecast. They are derived as follows: 1. Regrid the maximum UH value over the 2-5km layer at each grid point to the NCEP 211 grid (dx = ~80km). 2. Create a binary mask of points that meet a given threshold of UH. 3. Convert the binary mask into a probability field by applying a Gaussian filter. For more information, please reference Sobash et al. 2011 (https://journals.ametsoc.org/doi/full/10.1175/WAF-D-10-05046.1). .. GENERATED FROM PYTHON SOURCE LINES 32-36 Version Added ------------- METplus version 3.1 .. GENERATED FROM PYTHON SOURCE LINES 38-55 Datasets -------- **Forecast:** NOAA High Resolution Rapid Refresh (HRRR) **Observation:** None **Climatology:** None **Location:** All of the input data required for this use case can be found in a sample data tarball. Each use case category will have one or more sample data tarballs. It is only necessary to download the tarball with the use case’s dataset and not the entire collection of sample data. Click here to access the METplus releases page and download sample data for the appropriate release: https://github.com/dtcenter/METplus/releases This tarball should be unpacked into the directory that you will set the value of INPUT_BASE. See :ref:`running-metplus` section for more information. .. GENERATED FROM PYTHON SOURCE LINES 57-61 METplus Components ------------------ This use case runs the PCPCombine, GenEnsProd, and RegridDataPlane MET tools. .. GENERATED FROM PYTHON SOURCE LINES 63-77 METplus Workflow ---------------- **Beginning time (INIT_BEG):** 2020020500 **End time (INIT_END):** 2020020500 **Increment between beginning and end times (INIT_INCREMENT):** 86400 **Sequence of forecast leads to process (LEAD_SEQ):** 36 This workflow loops over the data by process, meaning that each MET tool will run over all times before moving onto the tool. PCPCombine is called first, followed by GenEnsProd, and then, finally, RegridDataPlane. Data for two dates is available, either 20200205 or 20190518. .. GENERATED FROM PYTHON SOURCE LINES 79-88 METplus Configuration --------------------- METplus first loads all of the configuration files found in parm/metplus_config, then it loads any configuration files passed to METplus via the command line, i.e. parm/use_cases/model_applications/short_range/GenEnsProd_fcstHRRR_fcstOnly_SurrogateSevere.conf .. highlight:: bash .. literalinclude:: ../../../../parm/use_cases/model_applications/short_range/GenEnsProd_fcstHRRR_fcstOnly_SurrogateSevere.conf .. GENERATED FROM PYTHON SOURCE LINES 90-104 MET Configuration ----------------- METplus sets environment variables based on user settings in the METplus configuration file. See :ref:`How METplus controls MET config file settings` for more details. **YOU SHOULD NOT SET ANY OF THESE ENVIRONMENT VARIABLES YOURSELF! THEY WILL BE OVERWRITTEN BY METPLUS WHEN IT CALLS THE MET TOOLS!** If there is a setting in the MET configuration file that is currently not supported by METplus you'd like to control, please refer to: :ref:`Overriding Unsupported MET config file settings` .. dropdown:: GenEnsProdConfig_wrapped .. literalinclude:: ../../../../parm/met_config/GenEnsProdConfig_wrapped .. GENERATED FROM PYTHON SOURCE LINES 106-110 Python Embedding ---------------- This use case does not use Python embedding. .. GENERATED FROM PYTHON SOURCE LINES 112-116 User Scripting -------------- User Scripting is not used in this use case. .. GENERATED FROM PYTHON SOURCE LINES 118-127 Running METplus --------------- Pass the use case configuration file to the run_metplus.py script along with any user-specific system configuration files if desired:: run_metplus.py /path/to/METplus/parm/use_cases/model_applications/short_range/GenEnsProd_fcstHRRR_fcstOnly_SurrogateSevere.conf See :ref:`running-metplus` for more information. .. GENERATED FROM PYTHON SOURCE LINES 129-131 Expected Output --------------- .. GENERATED FROM PYTHON SOURCE LINES 131-153 .. code-block:: Python # A successful run of this use case will output the following to the screen and logfile:: # # INFO: METplus has successfully finished runing. # # A successful run will have the following output files in the location defined by {OUTPUT_BASE}, which # is located in the metplus_system.conf configuration file located in /path/to/METplus/parm/metplus_config. # This list of files should be found for every time run through METplus. Using the output for 20190518 as an example. # # **PCPCombine output**: # # * 20190518/hrrr_ncep_2019051800f036.nc # # **GenEnsProd output**: # # * gen_ens_prod_20190519_120000V_ens.nc # # **RegridDataPlane output**: # # * surrogate_severe_20190518_036V_regrid.nc # .. GENERATED FROM PYTHON SOURCE LINES 154-167 Keywords -------- .. note:: * PCPCombineUseCase * GenEnsProdUseCase * RegridDataPlaneUseCase Navigate to the :ref:`quick-search` page to discover other similar use cases. .. GENERATED FROM PYTHON SOURCE LINES 167-169 .. code-block:: Python # .. _sphx_glr_download_generated_model_applications_short_range_GenEnsProd_fcstHRRR_fcstOnly_SurrogateSevere.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: GenEnsProd_fcstHRRR_fcstOnly_SurrogateSevere.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: GenEnsProd_fcstHRRR_fcstOnly_SurrogateSevere.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: GenEnsProd_fcstHRRR_fcstOnly_SurrogateSevere.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_