Skip to content

Conversation

hsoh-u
Copy link
Collaborator

@hsoh-u hsoh-u commented Oct 19, 2023

Expected Differences

The missing PBL values are expected. John HG ran the Docker manually and got 392 obs. He will update True output set.

pb2nc.cc: There was a minor bug that the first pressure level is not correct. It does not affect the computed PBL value. map<float, float*> pqtzuv_map_merged is changed to vector<float*> pqtzuv_merged_array to fix the invalid pressure at the first record. The pb2nc output should not be changed with this fix.

The other changes are for the SonarQube findings.

  • 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

  • Describe testing already performed for these changes:
/d1/personal/hsoh/git/pull_request/MET_bugfix_2687_hpbl/bin/pb2nc /d1/projects/MET/MET_test_data/unit_test/obs_data/prepbufr/nam.20210311.t00z.prepbufr.tm00 ./ndas.20120409.t12z.prepbufr.tm00.new.nc /d1/personal/hsoh/git/pull_request/MET_bugfix_2687_hpbl/internal/test_unit/config/PB2NCConfig_pbl -v 8 >& log_new_pbl.log

/d1/projects/MET/MET_regression/develop/NB20231019/MET-develop/bin/pb2nc /d1/projects/MET/MET_test_data/unit_test/obs_data/prepbufr/nam.20210311.t00z.prepbufr.tm00  ./ndas.20120409.t12z.prepbufr.tm00.old.nc /d1/personal/hsoh/git/pull_request/MET_bugfix_2687_hpbl/internal/test_unit/config/PB2NCConfig_pbl -v 8 >& log_old_pbl.log

grep "DEBUG 8: compute_pbl()   0"  log_new_pbl.log | less
grep "DEBUG 8: compute_pbl()   0"  log_old_pbl.log | less

Make sure the pressure value for the first record is not 0 and not too big.

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

    N/A

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

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

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

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

  • Please complete this pull request review by [Monday 10/23/24].

Pull Request Checklist

See the METplus Workflow for details.

  • 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 MET-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.

@hsoh-u hsoh-u added component: CI/CD Continuous integration and deployment issues MET: PreProcessing Tools (Point) labels Oct 19, 2023
@hsoh-u hsoh-u added this to the MET 12.0.0 milestone Oct 19, 2023
@hsoh-u hsoh-u requested a review from jprestop October 19, 2023 18:51
@hsoh-u hsoh-u linked an issue Oct 19, 2023 that may be closed by this pull request
23 tasks
@JohnHalleyGotway JohnHalleyGotway removed component: CI/CD Continuous integration and deployment issues MET: PreProcessing Tools (Point) labels Oct 19, 2023
Copy link
Collaborator

@jprestop jprestop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hsoh-u and @JohnHalleyGotway Thank you for your work on this task! It'll be great to have this resolved. I have ensured that all tests passed. I approve this request.

@hsoh-u hsoh-u merged commit 9fed892 into develop Oct 23, 2023
@hsoh-u hsoh-u deleted the bugfix_2687_hpbl branch November 16, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🏁 Done
Development

Successfully merging this pull request may close these issues.

Bugfix: Investigate unexpected number of derived HPBL observations in PB2NC
3 participants