Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 1852 use case physics tendency #1881

Merged
merged 51 commits into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
b189db7
Issue #1852 initial work for the Planview plot
bikegeek Oct 12, 2022
1dbf30f
Issue #1852 planview plot for physics tendency
bikegeek Oct 15, 2022
72d8cf9
Merge branch 'develop' of https://github.com/dtcenter/METplus into fe…
bikegeek Oct 15, 2022
f2775ec
issue #1852 cleared away unused/unneccessary code
bikegeek Oct 15, 2022
3dc5e46
Issue #1852 update script command
bikegeek Oct 16, 2022
596c24e
Issue #1852 first draft, doesn't have correct content
bikegeek Oct 16, 2022
295c2f7
Merge branch 'feature_1852_useCase_physics_tendency' of https://githu…
bikegeek Oct 16, 2022
0d390cc
Issue #1852 updated name of output plot to include short_range in name
bikegeek Oct 16, 2022
f9a5da8
Issue #1852 renamed to include fcstOnly label
bikegeek Oct 16, 2022
640b46a
Issue #1852 initial commit
bikegeek Oct 16, 2022
70285cc
Issue #1852
bikegeek Oct 16, 2022
c00ebff
Issue #1852
bikegeek Oct 16, 2022
adcfaf8
Issue #1852 initial commit
bikegeek Oct 16, 2022
abd54cc
issue #1852 vertical cross section
bikegeek Oct 16, 2022
f6ffda0
Issue 1852 clean up unused lines
bikegeek Oct 16, 2022
8cd8a3e
Issue #1852 initial commit
bikegeek Oct 16, 2022
e5fd977
Issue #1852
bikegeek Oct 16, 2022
89c6b38
Issue #1852 updates
bikegeek Oct 16, 2022
ad9baf7
Issue #1852 fixed documentation warnings, but some problems remain
bikegeek Oct 17, 2022
3388164
fixing line length for chapter and section headers and one letter cap…
lisagoodrich Oct 18, 2022
69c8b21
cleaning up line spacing and trying to fix a critical error.
lisagoodrich Oct 18, 2022
fb9bcf1
trying to fix critical error again
lisagoodrich Oct 18, 2022
172e4a2
Issue #1852 more description for data and dependency on METplotpy wit…
bikegeek Oct 19, 2022
92511bf
Issue #1852 update location of input data to single directory
bikegeek Oct 19, 2022
69b1dec
Removing duplicate files with a misformatted name that are not needed
Oct 19, 2022
30fa93a
Merge branch 'feature_1852_useCase_physics_tendency' of github.com:dt…
Oct 19, 2022
e7873c1
Per #1852, making changes to formatting to eliminate errors
Oct 19, 2022
6cdafaf
Issue #1852 remove redundant yaml config file
bikegeek Oct 19, 2022
ae60d85
Merge branch 'feature_1852_useCase_physics_tendency' of https://githu…
bikegeek Oct 19, 2022
a753c0b
Issue #1852 update PYTHONPATH information
bikegeek Oct 19, 2022
7b37d83
Merge branch 'feature_1852_useCase_physics_tendency' of https://githu…
bikegeek Oct 19, 2022
a5a2da3
Issue #1852 fixed conflicts
bikegeek Oct 19, 2022
5039f61
Issue #1852 update path to shapefile
bikegeek Oct 19, 2022
a1e6156
Issue #1852 fixed copy and paste error
bikegeek Oct 19, 2022
f10771f
Merge branch 'feature_1852_useCase_physics_tendency' of https://githu…
bikegeek Oct 19, 2022
336d155
Issue #1852 add three use case entries: Planview, VerticalProfile, an…
bikegeek Oct 19, 2022
f39d78b
Issue #1852 add latest short range tests to top, move down list when …
bikegeek Oct 19, 2022
b891bfc
Update use_case_groups.json
bikegeek Oct 20, 2022
d5c5f17
Issue #1852 clean up conf files by providing variables for the input …
bikegeek Oct 20, 2022
d6f5288
Issue #1852 Indicate external Python packages
bikegeek Oct 20, 2022
bf56c36
Issue #1852 added external dependency section
bikegeek Oct 20, 2022
bfd60d5
Merge branch 'develop' into feature_1852_useCase_physics_tendency
georgemccabe Oct 20, 2022
17d6aaa
removed env vars that don't need to be set -- METPLOTPY_BASE is set b…
georgemccabe Oct 20, 2022
23a3d38
Update UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview.py
hankenstein2 Oct 24, 2022
3bb80c4
Update UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSecti…
hankenstein2 Oct 24, 2022
4a9209d
Update UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalProfile.py
hankenstein2 Oct 24, 2022
e698e31
Merge branch 'develop' of https://github.com/dtcenter/METplus into fe…
bikegeek Oct 25, 2022
3f804fb
Merge branch 'feature_1852_useCase_physics_tendency' of https://githu…
bikegeek Oct 25, 2022
629bb25
Issue #1852 remove extraneous entry for USER_SCRIPT_COMMAND, a hold-o…
bikegeek Oct 25, 2022
2e3ab59
Update UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalProfile.conf
bikegeek Oct 25, 2022
1365e87
update html file from Planview to VerticalProfile
bikegeek Oct 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/parm/use_case_groups.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{
{
"category": "met_tool_wrapper",
"index_list": "0-29,59-61",
"run": false
Expand Down Expand Up @@ -49,6 +49,11 @@
"index_list": "9",
"run": false
},
{
"category": "short_range",
"index_list": "10-12",
"run": false
},
{
"category": "data_assimilation",
"index_list": "0",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
"""
UserScript: Physics Tendency Planview Plot
==========================================

model_applications/
short_range/
UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview.conf

"""

##############################################################################
# Scientific Objective
# --------------------
#
# To plot tendencies of temperature, moisture, and wind components averaged over
# a time window and spatial domain. Tendencies are partitioned into physics
# parameterizations and dynamics. Physics parameterizations include schemes like
# deep convection, convective gravity wave drag, short wave radiatioin, plantetary
# boundary layer, microphysics, and others. Non-physics tendencies (or dynamics)
# are due to horizontal and vertical motion. The residual (which should be zero)
# is the difference between the actual change in the state variable over the
# requested time window and the expected change due to physics parameterizations
# and dynamics tendencies. One can plot a single tendency component at multiple
# pressure levels or plot all tendency components at a single pressure level.
# This use case illustrates how to generate plan views (horizontal cross
# sections). The METplotpy source code is needed to generate the plot.
# Clone the METplotpy repository (https://github.com/dtcenter/METplotpy) under the same base
# directory as the METPLUS_BASE directory so that the METplus and
# METplotpy directories are under the same base directory (i.e. if the METPLUS_BASE directory is
# /home/username/working/METplus, then clone the METplotpy source
# code into the /home/username/working directory).

##############################################################################
# Datasets
# --------
#
# * Forecast dataset: FV3 3-D history file with physics and dynamics tendencies
# * Grid specification: FV3 2-D grid specification file with latitude and longitude of each grid point
#
# **Location:** All of the input data required for this use case can be
# found in the met_test sample data tarball. Click here to the METplus
# releases page and download sample data for the appropriate release:
# https://github.com/dtcenter/METplus/releases
# The tarball should be unpacked into the directory that you will set
# the value of INPUT_BASE. See the "Running METplus" section below for more
# information.

##############################################################################
# METplus Components
# ------------------
#
# This use case runs the METplotpy planview_fv3.py script to generate the
# plan views.

##############################################################################
# METplus Workflow
# ----------------
#
# This use case does not loop but plots physics tendency data that has been
# subsetted to one date: 2019-05-04.

###################################################################################################
# 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/UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview.conf
#
# .. highlight:: bash
# .. literalinclude:: ../../../../parm/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview.conf

##############################################################################
# MET Configuration
# -----------------
#
# No MET tools are used in this use case.
#
# METplus sets environment variables based on user settings in the METplus
# configuration file.
# See :ref:`How METplus controls MET config file settings<metplus-control-met>`
# for more details.


##############################################################################
# Running METplus
# ---------------
#
# This use case can be run in the following way:
#
# 1) Passing in UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview.conf
# then a user-specific system configuration file::
#
# run_metplus.py /path/to/METplus/parm/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview.conf /path/to/user_system.conf
#
# 2) Modifying the configurations in parm/metplus_config, then passing in
# UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview.conf::
#
# run_metplus.py /path/to/METplus/parm/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview.conf
#
# The former method is recommended. Whether you add them to a user-specific
# configuration file or modify the metplus_config files, the following
# variables must be set correctly:
#
# * **INPUT_BASE** - Path to directory where sample data tarballs are
# unpacked (See Datasets section to obtain tarballs). This is not required
# to run METplus, but it is required to run the examples in parm/use_cases
# * **OUTPUT_BASE** - Path where METplus output will be written. This must
# be in a location where you have write permissions
# * **MET_INSTALL_DIR** - Path to location where MET is installed locally
#
# Example User Configuration File::
#
# [dir]
# INPUT_BASE = /path/to/sample/input/data
# OUTPUT_BASE = /path/to/output/dir
# MET_INSTALL_DIR = /path/to/met-X.Y
#
# **NOTE:** All of these items must be found under the [dir] section.

##############################################################################
# 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.
# The following file will be created:
#
# physics_tendency_planview.png

##############################################################################
# Keywords
# --------
#
#
# .. note::
#
# * MediumRangeAppUseCase
# * PhysicsTendency
# * ValidationUseCase
# * ShortRangeAppUseCase
#
# Navigate to the :ref:`quick-search` page to discover other similar
# use cases.
#
#
#
# sphinx_gallery_thumbnail_path = '_static/short_range-UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview.png'
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
"""
UserScript: Physics Tendency Vertical Cross Section plot
=========================================================================

model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection.conf

"""

##############################################################################
# Scientific Objective
# --------------------
#
# To plot tendencies of temperature, moisture, and wind components averaged over
# a time window and spatial domain. Tendencies are partitioned into physics
# parameterizations and dynamics. Physics parameterizations include schemes like
# deep convection, convective gravity wave drag, short wave radiatioin, plantetary
# boundary layer, microphysics, and others. Non-physics tendencies (or dynamics)
# are due to horizontal and vertical motion. The residual (which should be zero)
# is the difference between the actual change in the state variable over the requested
# time window and the expected change due to physics parameterizations and dynamics
# tendencies. One can plot a single tendency component at multiple pressure levels or
# plot all tendency components at a single pressure level. This use case illustrates
# how to generate the vertical cross section plot. The METplotpy source code is needed to generate the plot.
# Clone the METplotpy repository (https://github.com/dtcenter/METplotpy) under the same base
# directory as the METPLUS_BASE directory so that the METplus and
# METplotpy directories are under the same base directory (i.e. if the METPLUS_BASE directory is
# /home/username/working/METplus, then clone the METplotpy source
# code into the /home/username/working directory).


##############################################################################
# Datasets
# --------
#
# | Forecast dataset: FV3 3-D history file with physics and dynamics tendencies
# | Grid specification: FV3 2-D grid specification file with latitude and longitude of each grid point
#
# | **Location:** All of the input data required for this use case can be found in the met_test sample data tarball. Click here to the METplus releases page and download sample data for the appropriate release: https://github.com/dtcenter/METplus/releases
# | The tarball should be unpacked into the directory that you will set the value of INPUT_BASE. See `Running METplus`_ section for more information.
#


##############################################################################
# METplus Components
# ------------------
#
# This use case runs the METplotpy cross_section_vert.py script to generate the plan views.
#

##############################################################################
# METplus Workflow
# ----------------
#
# This use case does not loop but plots physics tendency data that has been
# subsetted to one date: 2019-05-04.
#


##############################################################################
# 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/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection.conf
#
# .. highlight:: bash
# .. literalinclude:: ../../../../parm/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection.conf
#

##############################################################################
# MET Configuration
# ---------------------
#
# No MET tools are used in this use case.
#
# METplus sets environment variables based on user settings in the METplus configuration file.
# See :ref:`How METplus controls MET config file settings<metplus-control-met>` for more details.
#
# .. note:: See the :ref:`MODE MET Configuration<mode-met-conf>` section of the User's Guide for more information on the environment variables used in the file below:
#

##############################################################################
# Running METplus
# ---------------
#
# This use case can be run in the following way:
#
# 1) Passing in UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection.conf then a user-specific system configuration file::
#
# run_metplus.py /path/to/METplus/parm/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection.conf /path/to/user_system.conf
#
# 2) Modifying the configurations in parm/metplus_config, then passing in UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection.conf::
#
# run_metplus.py /path/to/METplus/parm/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection.conf
#
# The former method is recommended. Whether you add them to a user-specific configuration file or modify the metplus_config files, the following variables must be set correctly:
#
# * **INPUT_BASE** - Path to directory where sample data tarballs are unpacked (See Datasets section to obtain tarballs). This is not required to run METplus, but it is required to run the examples in parm/use_cases
# * **OUTPUT_BASE** - Path where METplus output will be written. This must be in a location where you have write permissions
# * **MET_INSTALL_DIR** - Path to location where MET is installed locally
#
# Example User Configuration File::
#
# [dir]
# INPUT_BASE = /path/to/sample/input/data
# OUTPUT_BASE = /path/to/output/dir
# MET_INSTALL_DIR = /path/to/met-X.Y
#
# **NOTE:** All of these items must be found under the [dir] section.
#

##############################################################################
# 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.
# The following file will be created:
#
# short_range-physics_tendency_vertical_cross_section.png
#
#


##############################################################################
# Keywords
# --------
#
#
# .. note::
#
# * MediumRangeAppUseCase
# * PhysicsTendency
# * ValidationUseCase
# * ShortRangeAppUseCase
#
# Navigate to the :ref:`quick-search` page to discover other similar use cases.
#
#
#
# sphinx_gallery_thumbnail_path = '_static/short_range-UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection.png'
#
Loading