.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "generated/model_applications/short_range/MODEMultivar_fcstHRRR_obsMRMS_HRRRanl.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_MODEMultivar_fcstHRRR_obsMRMS_HRRRanl.py: MODE: Multivariate ================== model_applications/short_range/MODEMultivar_fcstHRRR_obsMRMS_HRRRanl.conf .. GENERATED FROM PYTHON SOURCE LINES 9-13 .. contents:: :depth: 1 :local: :backlinks: none .. GENERATED FROM PYTHON SOURCE LINES 15-34 Scientific Objective -------------------- This use case demonstrates how to run Multivariate MODE to identify complex objects from two or more fields defined by a logical expression. This use case identifies blizzard-like objects defined by the intersection of : 1) the presence of snow precipitation type, 2) 10-m winds > 20 mph, and 3) visibility < 1/2 mile. The use of multivariate MODE is well-suited to assess the structure and placement of complex high-impact events such as blizzard conditions and heavy snow bands. Output from this use-case consists of the MODE ASCII, NetCDF, and PostScript files for the MODE forecast and observation super objects. In this case, MODE super object intensity statistics were ouput for both 10-m wind and visibility. Using the the MODE_MULTIVAR_INTENSITY_FLAG, the user can control for which variables super object intensity statistics will be output. If all are set to False, then no intensity information will be output and only statistics relative to the super-object geometry will be available. In the case no requested intesities, the parameters MODE_FCST/OBS_MULTIVAR_NAME and/or MODE_FCST/OBS_MULTIVAR_LEVEL may be used as identifiers for the super-object. .. GENERATED FROM PYTHON SOURCE LINES 36-40 Version Added ------------- METplus version 5.1 .. GENERATED FROM PYTHON SOURCE LINES 42-59 Datasets -------- **Forecast:** Subset of NOAA High Resolution Rapid Refresh (HRRR) in grib2 **Observation:** Subset of Multi-Radar Multi-Sensor (MRMS) and HRRR analysis in grib2 **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 61-66 METplus Components ------------------ This use case utilizes the METplus MODE wrapper, ingesting multiple variables to output complex super objects based on a user-defined logical expression. .. GENERATED FROM PYTHON SOURCE LINES 68-86 METplus Workflow ---------------- **Beginning time (INIT_BEG):** 2021020100 **End time (INIT_END):** 2021020100 **Increment between beginning and end times (INIT_INCREMENT):** None **Sequence of forecast leads to process (LEAD_SEQ):** 21 MODE is the only tool called and ingests multiple fields to create a complex super object. This example runs a single forecast hour. | **Initialization:** 2021020100 | **Forecast lead:** 21 .. GENERATED FROM PYTHON SOURCE LINES 88-97 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/MODEMultivar_fcstHRRR_obsMRMS_HRRRanl.conf .. highlight:: bash .. literalinclude:: ../../../../parm/use_cases/model_applications/short_range/MODEMultivar_fcstHRRR_obsMRMS_HRRRanl.conf .. GENERATED FROM PYTHON SOURCE LINES 99-113 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:: MODEConfig_wrapped .. literalinclude:: ../../../../parm/met_config/MODEConfig_wrapped .. GENERATED FROM PYTHON SOURCE LINES 115-119 Python Embedding ---------------- This use case does not use Python embedding. .. GENERATED FROM PYTHON SOURCE LINES 121-125 User Scripting -------------- User Scripting is not used in this use case. .. GENERATED FROM PYTHON SOURCE LINES 127-136 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/MODEMultivar_fcstHRRR_obsMRMS_HRRRanl.conf /path/to/user_system.conf See :ref:`running-metplus` for more information. .. GENERATED FROM PYTHON SOURCE LINES 138-157 Expected Output --------------- A successful run will output the following both to the screen and to the logfile:: INFO: METplus has successfully finished running. Refer to the value set for **OUTPUT_BASE** to find where the output data was generated. Output for this use case will be found in OUTPUT_BASE and will contain the following files in the directory mode/2021020100/f21: * mode_Fcst_VIS_L0_Obs_VIS_L0_HRRR_vs_ANALYSIS_210000L_20210201_210000V_000000A_cts.txt * mode_Fcst_VIS_L0_Obs_VIS_L0_HRRR_vs_ANALYSIS_210000L_20210201_210000V_000000A_obj.nc * mode_Fcst_VIS_L0_Obs_VIS_L0_HRRR_vs_ANALYSIS_210000L_20210201_210000V_000000A_obj.txt * mode_Fcst_VIS_L0_Obs_VIS_L0_HRRR_vs_ANALYSIS_210000L_20210201_210000V_000000A.ps * mode_Fcst_WIND_Z10_Obs_WIND_Z10_HRRR_vs_ANALYSIS_210000L_20210201_210000V_000000A_cts.txt * mode_Fcst_WIND_Z10_Obs_WIND_Z10_HRRR_vs_ANALYSIS_210000L_20210201_210000V_000000A_obj.nc * mode_Fcst_WIND_Z10_Obs_WIND_Z10_HRRR_vs_ANALYSIS_210000L_20210201_210000V_000000A_obj.txt * mode_Fcst_WIND_Z10_Obs_WIND_Z10_HRRR_vs_ANALYSIS_210000L_20210201_210000V_000000A.ps .. GENERATED FROM PYTHON SOURCE LINES 159-176 Keywords -------- .. note:: * MODEToolUseCase * ShortRangeAppUseCase * GRIB2FileUseCase * RegriddingInToolUseCase * NOAAWPCOrgUseCase * NCAROrgUseCase * DiagnosticsUseCase * MvMODEUseCase Navigate to the :ref:`quick-search` page to discover other similar use cases. .. GENERATED FROM PYTHON SOURCE LINES 176-178 .. code-block:: Python # .. _sphx_glr_download_generated_model_applications_short_range_MODEMultivar_fcstHRRR_obsMRMS_HRRRanl.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: MODEMultivar_fcstHRRR_obsMRMS_HRRRanl.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: MODEMultivar_fcstHRRR_obsMRMS_HRRRanl.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: MODEMultivar_fcstHRRR_obsMRMS_HRRRanl.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_