Skip to content
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

Bugfix #2387 main_v11.0 pb2nc_obs_count #2411

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

hsoh-u
Copy link
Collaborator

@hsoh-u hsoh-u commented Jan 17, 2023

Expected Differences

The total obs count at the log message should match with the obs count at the pb2nc output. The counts are for each PREPBUFR .

  • 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:
export MASK_GRID=""
export MASK_POLY=""
export QUALITY_MARK_THRESH="2"
export STATION_ID=""

/d1/personal/hsoh/git/bugfixes/bugfix_2387_pb2nc_obs_count_main_v11.0/MET/bin/pb2nc /d1/projects/METplus/METplus_Data.v5.0/met_test/data/sample_obs/prepbufr/ndas.t00z.prepbufr.tm12.20070401.nr obs_count.nc /d1/personal/hsoh/git/bugfixes/bugfix_2387_pb2nc_obs_count_main_v11.0/MET/internal/test_unit/config/PB2NCConfig -v 2

DEBUG 2: Total Messages retained                = 13614
DEBUG 2: Total observations retained or derived = 137075

ncdump -h obs_count.nc | grep "nobs ="
   nobs = 137075 ;
  • 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? [No]

  • Do these changes include sufficient testing updates? [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:

  • Please complete this pull request review by [Fill in date].

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)
    Select: Organization level software support Project or Repository level development cycle Project
    Select: Milestone as the version that will include these changes
  • After submitting the PR, select Development issue with the original issue number.
  • 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 requested a review from georgemccabe January 17, 2023 22:43
@hsoh-u hsoh-u linked an issue Jan 17, 2023 that may be closed by this pull request
22 tasks
Copy link
Collaborator

@georgemccabe georgemccabe left a comment

Choose a reason for hiding this comment

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

I ran the example from the METplus tutorial using the version of pb2nc from this branch and confirmed that the correct number of obs are reported:

/d1/personal/hsoh/git/bugfixes/bugfix_2387_pb2nc_obs_count_main_v11.0/MET/bin/pb2nc \
/d1/projects/METplus/METplus_Data.v5.0/met_test/data/sample_obs/prepbufr/ndas.t00z.prepbufr.tm12.20070401.nr \
tutorial_pb_run1.nc \
PB2NCConfig_tutorial_run1 \
-v 2

Before:

DEBUG 2: Total observations retained or derived = 68870

After:

DEBUG 2: Total observations retained or derived = 52491

ncdump -h tutorial_pb_run1.nc | grep "nobs ="

   nobs = 52491 ;

@hsoh-u hsoh-u merged commit 681dec5 into main_v11.0 Jan 18, 2023
@JohnHalleyGotway JohnHalleyGotway changed the title #2387 Do not increase n_file_obs when n_derived_obs is increased Bugfix #2387 main_v11.0 pb2nc_obs_count Jan 25, 2023
@JohnHalleyGotway JohnHalleyGotway added this to the MET 11.0.1 (bugfix) milestone Jan 25, 2023
@JohnHalleyGotway JohnHalleyGotway deleted the bugfix_2387_pb2nc_obs_count_main_v11.0 branch February 28, 2023 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Bugfix: Fix PB2NC to report accurate total observation counts in log messages
3 participants