Skip to content

Allow calc_analysis.x to switch between JEDI and GSI-formatted increments in calc_analysis.nml#35

Merged
CoryMartin-NOAA merged 2 commits into
NOAA-EMC:developfrom
DavidNew-NOAA:feature/jedi-gsi-switch
Apr 12, 2024
Merged

Allow calc_analysis.x to switch between JEDI and GSI-formatted increments in calc_analysis.nml#35
CoryMartin-NOAA merged 2 commits into
NOAA-EMC:developfrom
DavidNew-NOAA:feature/jedi-gsi-switch

Conversation

@DavidNew-NOAA
Copy link
Copy Markdown
Contributor

Because the JEDI increments will soon be produced in the Global Workflow with a time dimension, calc_analysis.x will fail, since it expects a GSI-style increment with no time dimensions. The PR adds a "jedi" parameter in calc_analysis.nml that is default set to false. When it is false, it expects no time dimension when reading and adding the increment to the background, and when it is true, it does expect a time dimension.

I have tested this in the Global Workflow by adding and removing the time dimension for the atmospheric increment, and running calc_analysis.x in the "gdasanalcalc" job with jedi set to .true. and not set at all (defaults to false) respectively. The resulting analyses are zero diff.

work3d_bg(:,j,1) = work3d_bg(:,j,1) + work3d_inc(:,jj)
end do
! JEDI-derived increments have a time dimension, so read to appropriate array
if ( jedi ) then
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.

This is great. I suspect when we move from the AuxGrid in FV3-JEDI to the generic Gaussian interpolation/write in OOPS, this boolean will be even more important.

@CoryMartin-NOAA
Copy link
Copy Markdown
Contributor

@DavidNew-NOAA can you (or have you already) run a low resolution 3DVar test using develop of g-w with this hash of gsi_utils just to confirm that it will cycle with GSI still? It should be fine but I would feel better testing it to be sure.

@DavidNew-NOAA
Copy link
Copy Markdown
Contributor Author

@CoryMartin-NOAA I just ran this branch in GSI with GW feature/jediinc2fv3 (will be merged into develop soon, but test should work in develop already), and it got through a full cycle. It's moving through the next cycle now without problem, including gdasanalcalc of that cycle.

@CoryMartin-NOAA
Copy link
Copy Markdown
Contributor

Thanks @DavidNew-NOAA works for me!

@CoryMartin-NOAA CoryMartin-NOAA merged commit 68bc14d into NOAA-EMC:develop Apr 12, 2024
@DavidNew-NOAA DavidNew-NOAA deleted the feature/jedi-gsi-switch branch April 12, 2024 20:39
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.

2 participants