Skip to content

Zero increments for precipitation hydrometeors are written as missing values instead of zeros#578

Merged
RussTreadon-NOAA merged 3 commits into
NOAA-EMC:developfrom
emilyhcliu:feature/allsky3
Jun 28, 2023
Merged

Zero increments for precipitation hydrometeors are written as missing values instead of zeros#578
RussTreadon-NOAA merged 3 commits into
NOAA-EMC:developfrom
emilyhcliu:feature/allsky3

Conversation

@emilyhcliu

@emilyhcliu emilyhcliu commented May 22, 2023

Copy link
Copy Markdown
Contributor

Description

We do not want the hydrometeor increments to be used in the IAU.
So, we zero them out and save them in the increment files.
This is done in the subroutine writeincrement_pnc in gridio_gfs.f90

However, the precipitation increments are filled in with missing values instead of zeros.
This bug is found in the GSI develop version and was introduced by PR #499

A fix is provided in this PR to make sure precipitation increments are filled in with zeros when the logic should_zero_increments_for is set to true.

Fixes #577

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

I tested this in a cycled experiment using global-workflow.
Ensemble increment files were checked to make sure all hydrometer increments are filled with zeros as intended.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing tests pass with my changes
  • Any dependent changes have been merged and published

DUE DATE for merger of this PR into develop is 7/2/2023 (six weeks after PR creation).

@emilyhcliu

emilyhcliu commented May 22, 2023

Copy link
Copy Markdown
Contributor Author

Regression tests performs for global models
WCOSS-2

emily.liu@clogin01:/lfs/h2/emc/da/noscrub/emily.liu/git/GSI-emilyhcliu/GSI-allsky3/build> ctest -R global
Test project /lfs/h2/emc/da/noscrub/emily.liu/git/GSI-emilyhcliu/GSI-allsky3/build

    Start 1: global_3dvar
1/4 Test #1: global_3dvar .....................   Passed  1442.55 sec
    Start 2: global_4dvar
2/4 Test #2: global_4dvar .....................   Passed  1442.28 sec
    Start 3: global_4denvar
3/4 Test #3: global_4denvar ...................   Passed  1322.37 sec
    Start 9: global_enkf
4/4 Test #9: global_enkf ......................   Passed  490.42 sec

100% tests passed, 0 tests failed out of 4

Total Test time (real) = 4697.62 sec

HERA

Emily.Liu@hfe05 build]$ ctest -R global
Test project /scratch1/NCEPDEV/da/Emily.Liu/git/GSI-emilyhcliu/GSI-allsky3/build

    Start 1: [=[global_3dvar]=]
1/4 Test #1: [=[global_3dvar]=] ...............   Passed  2226.81 sec
    Start 2: [=[global_4dvar]=]
2/4 Test #2: [=[global_4dvar]=] ...............   Passed  2585.05 sec
    Start 3: [=[global_4denvar]=]
3/4 Test #3: [=[global_4denvar]=] .............   Passed  1748.55 sec
    Start 9: [=[global_enkf]=]
4/4 Test #9: [=[global_enkf]=] ................   Passed  577.62 sec

100% tests passed, 0 tests failed out of 4

Total Test time (real) = 7138.05 sec

ORION

Orion-login-4[197] eliu$ ctest -R global
Test project /work/noaa/da/eliu/git/GSI-emilyhcliu/GSI-allsky3/build

    Start 1: [=[global_3dvar]=]
1/4 Test #1: [=[global_3dvar]=] ...............   Passed  1921.96 sec
    Start 2: [=[global_4dvar]=]
2/4 Test #2: [=[global_4dvar]=] ...............   Passed  1861.89 sec
    Start 3: [=[global_4denvar]=]
3/4 Test #3: [=[global_4denvar]=] .............   Passed  1501.84 sec
    Start 9: [=[global_enkf]=]
4/4 Test #9: [=[global_enkf]=] ................   Passed  488.56 sec

100% tests passed, 0 tests failed out of 4

Total Test time (real) = 5774.27 sec


@RussTreadon-NOAA RussTreadon-NOAA self-requested a review June 5, 2023 17:26
@RussTreadon-NOAA

Copy link
Copy Markdown
Contributor

@emilyhcliu , when you have a chance would you please update your forked branch, emilyhcliu:feature/allsky3 to the current head of develop?

@RussTreadon-NOAA

Copy link
Copy Markdown
Contributor

If this PR is not merged into develop by 7/2/2023, it will be closed and returned to the developer on 7/3/2023.

@emilyhcliu

Copy link
Copy Markdown
Contributor Author

@RussTreadon-NOAA I will upodate the branch with the develop first.

@emilyhcliu

Copy link
Copy Markdown
Contributor Author

@ADCollard When you have time, could you review this PR? Thanks!

@ADCollard

Copy link
Copy Markdown
Collaborator

@ADCollard When you have time, could you review this PR? Thanks!

I'm looking now, but I am a little confused about why there are so many differences for what I thought was a simple change. Can you help me by explaining what you have done?

@emilyhcliu

Copy link
Copy Markdown
Contributor Author

@ADCollard In current ops, we only write out EnKF hydrometer increments for ql and qi. I am expanding it to include all hydrometer increments (ql, qi, qr, qs, and qg). They should be all zeros, just like the deterministic part.

In my previous PR. I made a mistake in this part. The precipitation increments (qr, qs, and qg) were not written as zero. This is because they were not properly initialized. This PR is to make sure the zero increments are written into the output file for precipitation.

@RussTreadon-NOAA

Copy link
Copy Markdown
Contributor

Thank you @emilyhcliu for updating emilyhcliu:feature/allsky3 to the head of develop.

GSI PR #568 has been merged into develop (done at 00cac54). Your branch is now one commit behind the head of develop. Please update your branch to the current head of GSI develop.

@RussTreadon-NOAA RussTreadon-NOAA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Given approval from peer reviewers, approve.

@emilyhcliu

Copy link
Copy Markdown
Contributor Author

Thank you @emilyhcliu for updating emilyhcliu:feature/allsky3 to the head of develop.

GSI PR #568 has been merged into develop (done at 00cac54). Your branch is now one commit behind the head of develop. Please update your branch to the current head of GSI develop.

@RussTreadon-NOAA I updated the branch with the latest develop.

@RussTreadon-NOAA RussTreadon-NOAA merged commit 333ae16 into NOAA-EMC:develop Jun 28, 2023
xyzemc pushed a commit to xyzemc/GSI_develop-v16-tms that referenced this pull request Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing values in the increment files for precipitation which should be zeros.

4 participants