Skip to content

Conversation

georgemccabe
Copy link
Collaborator

@georgemccabe georgemccabe commented Jun 30, 2025

This use case was added for v6.1, so this is adding it to develop to make it available in v6.2. A limitation in METdataio's reformatter that didn't support using environment variables in the config file required a workaround for the use case in v6.1 to use cd and write to relative paths. An update to METdataio in develop allows for the use case to be updated to remove the cd commands and reference environment variables to find input files and write output files. The output should remain the same after these changes.

Pull Request Testing

  • Describe testing already performed for these changes:

Ensured that the output does not change with the modifications to the use case to use environment variables in the reformatter config file.

  • Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:

Ensure all automated tests pass. Content in use case docs have already been reviewed.

  • Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes]

  • Do these changes include sufficient testing updates? [Yes]

  • Will this PR result in changes to the test suite? [No]

    If yes, describe the new output and/or changes to the existing output:

  • Do these changes introduce new SonarQube findings? [No]

    If yes, please describe:

  • Please complete this pull request review by 7/1/2025.

Pull Request Checklist

See the METplus Workflow for details.

  • Add any new Python packages to the METplus Components Python Requirements table.
  • For any new datasets, an entry to the METplus Verification Datasets Guide.
  • Review the source issue metadata (required labels, projects, and milestone).
  • Complete the PR definition above.
  • Ensure the PR title matches the feature or bugfix branch name.
  • Define the PR metadata, as permissions allow.
    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
  • After submitting the PR, select the ⚙️ icon in the Development section of the right hand sidebar. Search for the issue that this PR will close and select it, if it is not already selected.
  • After the PR is approved, merge your changes. If permissions do not allow this, request that the reviewer do the merge.
  • Close the linked issue and delete your feature or bugfix branch from GitHub.

* per #2577, add use case files

* turn off use case that shouldn't be on

* fix path to data and scripts

* fix path to plotting scripts

* added scripts to create wrf_plot conda env that contains the METplus Analysis requirements and the wrf package. change use case to use that env and obtain METdataio and METplotpy

* fix name of wrf python package

* override input and output directories in WRF plotting script

* clean up script re: SonarQube

* renaming variables for SonarQube

* turn off 100-m wind speed plot because zlev files are not included in the input data

* added missing closing single quote

* add version of package that was obtained for reproducibility

* refactor WRF plotting script to split logic into functions to reduce cognitive complexity

* try creating output directory before running reformatter

* METdataio reformatter does not accept environment variables in its config file, so attempting to change directory to output directory and find input data relative to that directory

* change approach to reference plot directory

* add WRF and MADIS file types to quick search keywords and start doc for new use case

* fix formatting for output file lists and correct info about output directories (use case path are added for automated tests, but are relative to {OUTPUT_BASE} if run by a user)

* write log file to logs directory and rename it to include .log extension

* add more information for use case doc

* turn off use case for PR

* refactor map functions script to reduce cognitive complexity for SonarQube

* update scientific objective with input from @jaredalee
…fig file instead of using relative paths and changing directories since changes needed to support env vars in the reformatted are available in develop now
@georgemccabe georgemccabe added this to the METplus-6.2.0 milestone Jun 30, 2025
@github-project-automation github-project-automation bot moved this to 🩺 Needs Triage in METplus-6.2 Development Jun 30, 2025
@georgemccabe georgemccabe moved this from 🩺 Needs Triage to 🔎 In review in METplus-6.2 Development Jun 30, 2025
@georgemccabe georgemccabe linked an issue Jun 30, 2025 that may be closed by this pull request
24 tasks
@georgemccabe georgemccabe marked this pull request as ready for review July 2, 2025 13:29
@georgemccabe
Copy link
Collaborator Author

Compared output to output from main_v6.1 and confirmed that the data looks the same. Merging without review.

@georgemccabe georgemccabe merged commit b023e70 into develop Jul 2, 2025
149 of 156 checks passed
@github-project-automation github-project-automation bot moved this from 🔎 In review to 🏁 Done in METplus-6.2 Development Jul 2, 2025
@georgemccabe georgemccabe deleted the feature_2577_develop_matthew_wrf branch July 2, 2025 13:30
georgemccabe pushed a commit that referenced this pull request Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏁 Done
Development

Successfully merging this pull request may close these issues.

New Use Case: Hurricane Matthew using native WRF
1 participant