Skip to content

Commit

Permalink
Merge branch 'feature_1852_useCase_physics_tendency' of https://githu…
Browse files Browse the repository at this point in the history
…b.com/dtcenter/METplus into feature_1852_useCase_physics_tendency
  • Loading branch information
bikegeek committed Oct 25, 2022
2 parents e698e31 + 4a9209d commit 3f804fb
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# 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
# deep convection, convective gravity wave drag, short wave radiation, 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
Expand Down Expand Up @@ -45,6 +45,24 @@
# the value of INPUT_BASE. See the "Running METplus" section below for more
# information.


##############################################################################
# External Dependencies
# ---------------------
# You will need to use a versio of Python 3.86 that has the following packages
# installed:
#
# * cartopy (0.20.3 only)
# * matplotlib
# * metpy
# * numpy
# * pandas
# * shapely
# * xarray
#



##############################################################################
# METplus Components
# ------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# 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
# deep convection, convective gravity wave drag, short wave radiation, 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
Expand All @@ -40,6 +40,24 @@
#



##############################################################################
# External Dependencies
# ---------------------
# You will need to use a versio of Python 3.86 that has the following packages
# installed:
#
# * cartopy (0.20.3 only)
# * matplotlib
# * metpy
# * numpy
# * pandas
# * shapely
# * xarray
#



##############################################################################
# METplus Components
# ------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# 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
# deep convection, convective gravity wave drag, short wave radiation, 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
Expand Down Expand Up @@ -48,6 +48,25 @@
# | The tarball should be unpacked into the directory that you will set the value of INPUT_BASE. See `Running METplus`_ section for more information.
#



##############################################################################
# External Dependencies
# ---------------------
# You will need to use a versio of Python 3.86 that has the following packages
# installed:
#
# * cartopy (0.20.3 only)
# * matplotlib
# * metpy
# * numpy
# * pandas
# * shapely
# * xarray
#



##############################################################################
# METplus Components
# ------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ USER_SCRIPT_RUNTIME_FREQ = RUN_ONCE
# https://metplus.readthedocs.io/en/latest/Users_Guide/wrappers.html#userscript
###

USER_SCRIPT_COMMAND = {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview/planview_plot.py {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview/physics_tendency_planview.yaml {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/fv3_history.nc {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/grid_spec.nc tmp pbl -p 500 -t 1 -v 20190504T14 -o {OUTPUT_BASE}/plots/short_range-physics_tendency_planview.png --nofineprint
FV3_HISTORY_FILE = {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/fv3_history.nc
GRID_SPEC_FILE = {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/grid_spec.nc
PRESSURE_LEVEL = 500
USER_SCRIPT_COMMAND = {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview/planview_plot.py {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview/physics_tendency_planview.yaml {FV3_HISTORY_FILE} {GRID_SPEC_FILE} tmp pbl -p {PRESSURE_LEVEL} -t 1 -v 20190504T14 -o {OUTPUT_BASE}/plots/short_range-physics_tendency_planview.png --nofineprint

[user_env_vars]

Expand All @@ -48,6 +51,3 @@ LOG_FILE = "planview.log"
LOG_LEVEL = "DEBUG"

YAML_CONFIG_NAME = {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview/physics_tendency_planview.yaml

METPLOTPY_BASE = {METPLUS_BASE}/../METplotpy
PYTHONPATH = {METPLOTPY_BASE}:{METPLOTPY_BASE}/metplotpy:{METPLOTPY_BASE}/metplotpy/contributed:{METPLOTPY_BASE}/metplotpy/contributed/fv3_physics_tend
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ USER_SCRIPT_RUNTIME_FREQ = RUN_ONCE
# https://metplus.readthedocs.io/en/latest/Users_Guide/wrappers.html#userscript
###

USER_SCRIPT_COMMAND = {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection/vertical_cross_section_plot.py {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection/physics_tendency_vertical_cross_section.yaml {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/fv3_history.nc {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/grid_spec.nc tmp -t 2 -v 20190504T14 -s 32 -115 -e 34 -82 -o {OUTPUT_BASE}/plots/short_range-physics_tendency_vertical_cross_section.png --nofineprint
FV3_HISTORY_FILE = {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/fv3_history.nc
GRID_SPEC_FILE = {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/grid_spec.nc
USER_SCRIPT_COMMAND = {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection/vertical_cross_section_plot.py {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection/physics_tendency_vertical_cross_section.yaml {FV3_HISTORY_FILE} {GRID_SPEC_FILE} tmp -t 2 -v 20190504T14 -s 32 -115 -e 34 -82 -o {OUTPUT_BASE}/plots/short_range-physics_tendency_vertical_cross_section.png --nofineprint

[user_env_vars]

Expand All @@ -48,7 +50,3 @@ LOG_FILE = "VerticalCrossSection.log"
LOG_LEVEL = "DEBUG"

YAML_CONFIG_NAME = {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalCrossSection/physics_tendency_vertical_cross_section.yaml

METPLOTPY_BASE = {METPLUS_BASE}/../METplotpy
PYTHONPATH = {METPLOTPY_BASE}:{METPLOTPY_BASE}/metplotpy:{METPLOTPY_BASE}/metplotpy/contributed:{METPLOTPY_BASE}/metplotpy/contributed/fv3_physics_tend

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ USER_SCRIPT_RUNTIME_FREQ = RUN_ONCE
# https://metplus.readthedocs.io/en/latest/Users_Guide/wrappers.html#userscript
###

USER_SCRIPT_COMMAND = {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalProfile/vertical_profile_plot.py {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalProfile/physics_tendency_vertical_profile.yaml {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/fv3_history.nc {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/grid_spec.nc tmp -t 2 -v 20190504T14 -o {OUTPUT_BASE}/plots/short_range-physics_tendency_vertical_profile.png -s {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/shapefiles/MID_CONUS --nofineprint
FV3_HISTORY_FILE = {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/fv3_history.nc
GRID_SPEC_FILE = {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/grid_spec.nc
USER_SCRIPT_COMMAND = {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_Planview


USER_SCRIPT_COMMAND = {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalProfile/vertical_profile_plot.py {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalProfile/physics_tendency_vertical_profile.yaml {FV3_HISTORY_FILE} {GRID_SPEC_FILE} tmp -t 2 -v 20190504T14 -o {OUTPUT_BASE}/plots/short_range-physics_tendency_vertical_profile.png -s {INPUT_BASE}/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency/shapefiles/MID_CONUS --nofineprint


[user_env_vars]
Expand All @@ -49,7 +54,3 @@ LOG_FILE = "VerticalProfile.log"
LOG_LEVEL = "DEBUG"

YAML_CONFIG_NAME = {PARM_BASE}/use_cases/model_applications/short_range/UserScript_fcstFV3_fcstOnly_PhysicsTendency_VerticalProfile/physics_tendency_vertical_profile.yaml

METPLOTPY_BASE = {METPLUS_BASE}/../METplotpy
PYTHONPATH = {METPLOTPY_BASE}:{METPLOTPY_BASE}/metplotpy:{METPLOTPY_BASE}/metplotpy/contributed:{METPLOTPY_BASE}/metplotpy/contributed/fv3_physics_tend

0 comments on commit 3f804fb

Please sign in to comment.