-
Notifications
You must be signed in to change notification settings - Fork 24
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 #2285 read_point_data #2509
Conversation
…uted by importing
…line only and no config file is involved.
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 have tested these changes on Seneca. I performed the following tests:
plot_point_obs
with Python embedding withconvert=True
insideread_ascii_point.py
plot_point_obs
with Python embedding withconvert=False
insideread_ascii_point.py
- Tests 1&2, but with
MET_PYTHON_EXE
set to force reading/writing temporary files plot_data_plane
with compile time Pythonplot_data_plane
withMET_PYTHON_EXE
set to force reading/writing temporary filesstat_analysis
for the MPR Python Embedding
All of the above tests were successful on Seneca in my testing area.
I did not do an extensive review of the C++, @JohnHalleyGotway may be a better reviewer for those changes than myself.
I also included a complete overhaul of Appendix F, and linked two additional issues that this PR will close with those changes.
I approve of these changes. Thanks @hsoh-u!
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.
@DanielAdriaansen, I reviewed the documentation and added a few suggested changes. Please let me know if you have any questions. A huge thank you to you for all of your time and effort that you put into improving this documentation for users (and for our team). I have a feeling it will be very useful. Also, thank you for your attention to detail in staying consistent formatting with the existing documentation. It is much appreciated!
Co-authored-by: jprestop <jpresto@ucar.edu>
Co-authored-by: jprestop <jpresto@ucar.edu>
Great, thank YOU for taking the time to read through it and make suggestions. My hope is that this far surpasses the previous Appendix F and will be useful for all, so glad to hear you think so. Appreciate it @jprestop ! |
…T into feature_2285_read_point_data
Fixes typo in Appendix F.
…T into feature_2285_read_point_data
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.
@hsoh-u and @DanielAdriaansen thanks for all your work on getting these details straight.
Howard, let's proceed with the merge now.
…removes the need for this call -- MET handles it directly, ci-skip-unit-tests
Expected Differences
The python object point_data (11 column data) is supported MET as is. The previous way was converting "point_data" to "met_point_data" from met_point_obs.py by calling "convert_point_data".
The unit test for converting "point_data" to "met_point_data" by python script is changed to not call "convert_point_data".
Some common API with ascci2nc (filtering) is moved to src/libcode/vx_pointdata_python
The python scripts are re-structured and renamed Python Embedding Organizartion:
The python scripts at data/wrappers are moved to scripts/python/pyembed
The python scripts at scripts/utility are moved to scripts/python/utility
The python scripts at scripts/python are moved to scripts/python/met and scripts/python/examples
scripts/python/met_point_obs.py is renamed to scripts/python/met/point.py
scripts/python/met_point_obs_nc.py is merged to scripts/python/met/point.py
scripts/python/met/dataplane.py is added (moved from dataplane related APIs, numpy/xarray)
scripts/python/met/mprbase.py is added (moved from MPR related APIs)
scripts/python/pyembed/python_embedding.py is added (moved common APIs for python embedding)
Do these changes introduce new tools, command line arguments, or configuration file options? [No]
If yes, please describe:
Do these changes modify the structure of existing or add new output data types (e.g. statistic line types or NetCDF variables)? [No]
If yes, please describe:
Pull Request Testing
Unittest and the same outputs
Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes]
The path for the python scripts were updated for the user guide.
I did not check the materials for tutorials.
The existing unittest passes the python object "point_data" instead of "met_python_data" object which is converted from "point_data" object.
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:
Please complete this pull request review by [4/12/2023].
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s)
Select: Organization level software support Project or Repository level development cycle Project
Select: Milestone as the version that will include these changes