-
Notifications
You must be signed in to change notification settings - Fork 38
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 2628 documentation updates #2817
base: develop
Are you sure you want to change the base?
Conversation
# and then runs another UserScript, bias_plot_driver.py, to create the bias plots. | ||
# This use case calls UserScript first, Series-Analysis, and then UserScript | ||
# a second time. METcalcpy, METplotpy, and METdataio are needed for this use case to run. | ||
# The metcalcpy scripts accessed include the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# The metcalcpy scripts accessed include the following: | |
# The METcalcpy scripts accessed include the following: |
# then it loads any configuration files passed to METplus via the command line | ||
# with the -c option, i.e. -c parm/use_cases/model_applications/s2s_stratosphere/UserScript_fcstGFS_obsERA_StratosphereBias.conf | ||
# then it loads any configuration files passed to METplus via the command line, | ||
# i.e. parm/use_cases/model_applications/s2s_stratosphere/UserScript_fcstGFS_obsERA_StratosphereBias.conf. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# i.e. parm/use_cases/model_applications/s2s_stratosphere/UserScript_fcstGFS_obsERA_StratosphereBias.conf. | |
# i.e. parm/use_cases/model_applications/s2s_stratosphere/UserScript_fcstGFS_obsERA_StratosphereBias.conf |
# This use case uses a Python embedding script to read in the zonal mean data to Series-Analysis | ||
# This use case uses a Python embedding script to read in the semi-structured zonal mean data to Series-Analysis. Inputs to | ||
# this script include the filename to be read in, variable name, and the axis over which the mean is taken. The script | ||
# returns a numpy array containing the zonal mean data (semi structured grid). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# returns a numpy array containing the zonal mean data (semi structured grid). | |
# returns a numpy array containing the zonal mean data (semi-structured grid). |
"semi-structured" was previously hyphenated. Add a hyphen for consistency.
# METcalcpy. It writes the zonal mean data to output netCDF files. | ||
# | ||
# The bias plot driver reads output netCDF files from Series-Analysis and creates plots of the bias over | ||
# latitude and pressure level. Inputs to both of the python scripts can be found in the [user_env_vars] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# latitude and pressure level. Inputs to both of the python scripts can be found in the [user_env_vars] | |
# latitude and pressure level. Inputs to both of the Python scripts can be found in the [user_env_vars] |
@@ -1,54 +1,94 @@ | |||
""" | |||
Bias Plot on Polar Cap Temperature and Polar Vortex U: UserScript, Stat-Analysis | |||
================================================================================ | |||
UserScript and StatAnalysis: Compute Polar Cap Temperature and Polar Vortex U and create Plots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UserScript and StatAnalysis: Compute Polar Cap Temperature and Polar Vortex U and create Plots | |
UserScript and StatAnalysis: Compute Polar Cap Temperature and Polar Vortex U and Create Plots |
Bias Plot on Polar Cap Temperature and Polar Vortex U: UserScript, Stat-Analysis | ||
================================================================================ | ||
UserScript and StatAnalysis: Compute Polar Cap Temperature and Polar Vortex U and create Plots | ||
============================================================================================== | ||
|
||
model_applications/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
model_applications/ | |
model_applications/s2s_stratosphere/UserScript_fcstGFS_obsERA_StratospherePolar.py |
The template has the full path on one line.
Bias Plot on Polar Cap Temperature and Polar Vortex U: UserScript, Stat-Analysis | ||
================================================================================ | ||
UserScript and StatAnalysis: Compute Polar Cap Temperature and Polar Vortex U and create Plots | ||
============================================================================================== | ||
|
||
model_applications/ | ||
s2s_stratosphere/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s2s_stratosphere/ |
Bias Plot on Polar Cap Temperature and Polar Vortex U: UserScript, Stat-Analysis | ||
================================================================================ | ||
UserScript and StatAnalysis: Compute Polar Cap Temperature and Polar Vortex U and create Plots | ||
============================================================================================== | ||
|
||
model_applications/ | ||
s2s_stratosphere/ | ||
UserScript_fcstGFS_obsERA_StratospherePolar.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UserScript_fcstGFS_obsERA_StratospherePolar.py |
############################################################################## | ||
# Scientific Objective | ||
# -------------------- | ||
# | ||
# Many common modes of variability in the troposphere have stratospheric teloconnection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Many common modes of variability in the troposphere have stratospheric teloconnection | |
# Many common modes of variability in the troposphere have stratospheric teleconnection |
# bias_rmse_plot_driver.py, to create the plots. | ||
# This use case runs UserScript twice and Stat-Analysis once. The UserScripts compute | ||
# polar cap temperature and polar vortex wind and create plots. METcalcpy, METplotpy, | ||
# and METdataio are needed for this use case. The metcalcpy scripts accessed include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# and METdataio are needed for this use case. The metcalcpy scripts accessed include | |
# and METdataio are needed for this use case. The METcalcpy scripts accessed include |
# | ||
# .. literalinclude:: ../../../../parm/met_config/STATAnalysisConfig_wrapped | ||
|
||
############################################################################## | ||
# Python Embedding | ||
# ---------------- | ||
# | ||
# This use case does not use python embedding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# This use case does not use python embedding | |
# This use case does not use python embedding. |
# | ||
# run_metplus.py -c /path/to/METplus/parm/use_cases/model_applications/s2s_stratosphere/UserScript_fcstGFS_obsERA_StratospherePolar.conf -c /path/to/user_system.conf | ||
# There are two python scripts in the is use case. The first, polar_t_u_driver.py reads in netCDF files for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# There are two python scripts in the is use case. The first, polar_t_u_driver.py reads in netCDF files for the | |
# There are two Python scripts in the is use case. The first, polar_t_u_driver.py reads in netCDF files for the |
# | ||
# 2) Modifying the configurations in parm/metplus_config, then passing in UserScript_fcstGFS_obsERA_StratospherePolar.conf: | ||
# The second python script, bias_rmse_plot_driver reads in the output of Stat-Analysis and creates plots of bias |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# The second python script, bias_rmse_plot_driver reads in the output of Stat-Analysis and creates plots of bias | |
# The second python script, bias_rmse_plot_driver.py reads in the output of Stat-Analysis and creates plots of bias |
@@ -1,13 +1,19 @@ | |||
""" | |||
QBO Phase plots and QBO Index: UserScript, Stat-Analysis | |||
================================================================================ | |||
UserScript and StatAnalysis: Compute QBO Phase plots and QBO Index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UserScript and StatAnalysis: Compute QBO Phase plots and QBO Index | |
UserScript and StatAnalysis: Compute QBO Phase Plots and QBO Index |
QBO Phase plots and QBO Index: UserScript, Stat-Analysis | ||
================================================================================ | ||
UserScript and StatAnalysis: Compute QBO Phase plots and QBO Index | ||
================================================================== | ||
|
||
model_applications/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
model_applications/ | |
model_applications/s2s_stratosphere/UserScript_fcstGFS_obsERA_StratosphereQBO.py |
The template has the full path on one line.
QBO Phase plots and QBO Index: UserScript, Stat-Analysis | ||
================================================================================ | ||
UserScript and StatAnalysis: Compute QBO Phase plots and QBO Index | ||
================================================================== | ||
|
||
model_applications/ | ||
s2s_stratosphere/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s2s_stratosphere/ |
QBO Phase plots and QBO Index: UserScript, Stat-Analysis | ||
================================================================================ | ||
UserScript and StatAnalysis: Compute QBO Phase plots and QBO Index | ||
================================================================== | ||
|
||
model_applications/ | ||
s2s_stratosphere/ | ||
UserScript_fcstGFS_obsERA_StratosphereQBO.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UserScript_fcstGFS_obsERA_StratosphereQBO.py |
# in METcalcpy, METplotpy, and METdataio. For it to run, the following versions of those | ||
# repositories are needed, METcalcpy 3.0.0, METplotpy 3.0.0, and METdataio 2.1. | ||
# This use case calls UserScript once and StatAnalysis once. Additionally, METcalcpy, | ||
# METplotpy, and METdataio are required to run. The metcalcpy scripts accessed include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# METplotpy, and METdataio are required to run. The metcalcpy scripts accessed include | |
# METplotpy, and METdataio are required to run. The METcalcpy scripts accessed include |
# User Scripting | ||
# -------------- | ||
# | ||
# This use case runs the stratosphere_qbo_driver.py python script, which first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# This use case runs the stratosphere_qbo_driver.py python script, which first | |
# This use case runs the stratosphere_qbo_driver.py Python script, which first |
# computes zonal and meridional means using directional_means.py in METcalcpy on U from | ||
# -10 S to 10N latitude. Then, an EOF analysis is performed on this zonal and meridional | ||
# mean data, and two phase diagrams of QBO are created using the plot_qbo_phase_circuits and | ||
# plot_qbo_phase_space functions from stratosphere_plots.py in METplotpy. Additionally the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# plot_qbo_phase_space functions from stratosphere_plots.py in METplotpy. Additionally the | |
# plot_qbo_phase_space functions from stratosphere_plots.py in METplotpy. Additionally, the |
# plot_qbo_phase_space functions from stratosphere_plots.py in METplotpy. Additionally the | ||
# zonal and meridional mean at 30 and 50mb are output as time series in MET's matched pair | ||
# (MPR) format using write_mpr.py in METcalcpy. They are also plotted as timeseries using the | ||
# plot_u_timeseries function from stratosphere_plots.py in METplotpy. Finally StatAnalysis is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# plot_u_timeseries function from stratosphere_plots.py in METplotpy. Finally StatAnalysis is | |
# plot_u_timeseries function from stratosphere_plots.py in METplotpy. Finally, StatAnalysis is |
@@ -127,22 +176,25 @@ | |||
# | |||
# INFO: METplus has successfully finished running. | |||
# | |||
# There should be 4 graphics output to the plot directory in the location set as OUTPUT_DIR | |||
# in the [user_env_vars] section of the configuration file: | |||
# # Refer to the value set for **OUTPUT_BASE** to find where the output data was generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# # Refer to the value set for **OUTPUT_BASE** to find where the output data was generated. | |
# Refer to the value set for **OUTPUT_BASE** to find where the output data was generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HI @CPKalb. Thank you for all of your work on these. I think the content looks detailed and fantastic! I really appreciate all of your effort. I made some minor grammatical/spelling suggestions. Let me know once those are in order, and I'll re-review and approve.
HI @CPKalb. I see that at least one of the tests is failing (9 in progress checks at this time):
Does anything need to be done to resolve this error? I see it's due to the renaming, but I am not sure exactly how this testing works and if files should be updated somewhere. I am hoping you'll know. |
Weird.... I don't think I changed the name of these in this branch since it should have just been documentation updates. However, the new names are the correct ones. So, maybe this update was missed somewhere along the way. I know there is a way to update the truth data but I can't remember how to do it. @georgemccabe, how do we update truth data? Tina |
@CPKalb Hopefully this is the section of the Contributor's Guide that you need for updating truth data: https://metplus.readthedocs.io/en/develop/Contributors_Guide/continuous_integration.html#update-truth-data-update-truth-yml |
@CPKalb, it looks like the |
@georgemccabe, thanks. I must be crazy. I'm guessing I saw it was incorrectly named and changed it and then forgot I did that.. I'll follow those instructions after the pr to update the truth. |
Pull Request Testing
Describe testing already performed for these changes:
Tested that the documentation builds successfully and also read the documentation to check that they
Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
Read the documentation for the use cases that were updated and check that they use the new format and also check to see if there are typos or text that does not make sense. The use cases that were updated are:
s2s_mid_lat:
UserScript_fcstGFS_obsERA_Blocking
UserScript_obsERA_obsOnly_Blocking
UserScript_fcstGFS_obsERA_WeatherRegime
UserScript_obsERA_obsOnly_WeatherRegime
s2s_mjo:
UserScript_fcstGFS_obsERA_OMI
UserScript_obsERA_obsOnly_OMI
UserScript_obsERA_obsOnly_RMM
UserScript_obsERA_obsOnly_PhaseDiagram
s2s_stratosphere:
UserScript_fcstGFS_obsERA_StratosphereBias
UserScript_fcstGFS_obsERA_StratospherePolar
UserScript_fcstGFS_obsERA_StratosphereQBO
Link to the updated documentation: https://metplus.readthedocs.io/en/feature_2628_documentation_updates/generated/model_applications/index.html#subseasonal-to-seasonal-mid-latitude
Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes or No]
Yes
Do these changes include sufficient testing updates? [Yes or No]
??
Will this PR result in changes to the test suite? [Yes or No]
If yes, describe the new output and/or changes to the existing output:
No
Do these changes introduce new SonarQube findings? [Yes or No]
If yes, please describe:
No
Please complete this pull request review by [Fill in date].
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s) and Development issue
Select: Milestone as the version that will include these changes
Select: Coordinated METplus-X.Y Support project for bugfix releases or METplus-Wrappers-X.Y.Z Development project for official releases