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

Failures in GSI analysis due to inconsistent correlated error #2507

Closed
CatherineThomas-NOAA opened this issue Apr 19, 2024 · 4 comments · Fixed by #2514
Closed

Failures in GSI analysis due to inconsistent correlated error #2507

CatherineThomas-NOAA opened this issue Apr 19, 2024 · 4 comments · Fixed by #2514
Assignees
Labels
bug Something isn't working

Comments

@CatherineThomas-NOAA
Copy link
Contributor

What is wrong?

Several users have experienced failures in the atmospheric analysis step:

63: [063]correlated_obsmod*upd_varch_(): >>> ERROR <<<  improperly set GSI_BundleErrorCov

This appears to be due to the inconsistency between the anavinfo file correlated error block and the satinfo. In the failed cases, the anavinfo file lists CrIS N21 while the historical satinfo files (set in config.anal) that were used did not. Many of the failed cases occurred for SDATEs in 2021.

See /scratch1/NCEPDEV/climate/Jessica.Meixner/cycling/turnonmarine/c48ci01/COMROOT/c48t01/logs/2021032418/failed.gdasanal.log.0

What should have happened?

The atmospheric analysis should have completed without failure.

What machines are impacted?

All or N/A

Steps to reproduce

  1. Set up an experiment with atmospheric DA.
  2. Choose a date that uses a historical satinfo file (2021 in these cases).
  3. Run the GSI analysis step (gfsanal/gdasanal).

Additional information

N/A

Do you have a proposed solution?

@ADCollard Do we need historical anavinfo files?

@CatherineThomas-NOAA CatherineThomas-NOAA added bug Something isn't working triage Issues that are triage labels Apr 19, 2024
@CatherineThomas-NOAA
Copy link
Contributor Author

FYI @JessicaMeixner-NOAA @guillaumevernieres @CoryMartin-NOAA

@RussTreadon-NOAA
Copy link
Contributor

Removing the cris-fsr_n21 entry from the correlated_observations section of global_anavinfo.l127.txt works.

Another option is to leave the anavinfo file alone and move code around in src/gsi/correlated_obsmod.F90

diff --git a/src/gsi/correlated_obsmod.F90 b/src/gsi/correlated_obsmod.F90
index 7a14cd32..17cd94ef 100644
--- a/src/gsi/correlated_obsmod.F90
+++ b/src/gsi/correlated_obsmod.F90
@@ -961,14 +961,18 @@ subroutine upd_varch_
             enddo
             nchanl1=jc

-            if(nchanl1==0) call die(myname_,' improperly set GSI_BundleErrorCov')
             if(.not.amiset_(GSI_BundleErrorCov(itbl))) then
-               if (iamroot_) write(6,*) 'WARNING: Error Covariance not set for ',trim(idnames(itbl))
+               if (iamroot_) write(6,*) trim(myname_), ' WARNING: Error Covariance not set for ',trim(idnames(itbl))
                cycle read_tab
             endif

             nch_active=GSI_BundleErrorCov(itbl)%nch_active
-            if(nch_active<0) return
+            if(nch_active<0) then
+               if (iamroot_) write(6,*) trim(myname_), ' WARNING: No active channels for ',trim(idnames(itbl))
+               return
+            endif
+
+            if(nchanl1==0) call die(myname_,' improperly set GSI_BundleErrorCov')

             if(GMAO_ObsErrorCov)then
                do jj=1,nch_active

The nchanl1==0 line is the one causing gsi.x to abort.

For cris-fsr_n21, amiset_(GSI_BundleErrorCov(itbl)) = .false. and execution cycles to the next read_tab.

gsi.x built with the above change successfully ran the 2021032418 case. The above change is in /scratch1/NCEPDEV/da/Russ.Treadon/git/gsi/develop_test

GSI ctests were run using the modified gsi.x. Tests pass.

@RussTreadon-NOAA
Copy link
Contributor

To build g-w with the revised GSI source code, open a g-w PR to update the gsi_enkf.fd hash to 457510c

@RussTreadon-NOAA
Copy link
Contributor

The gsi_enkf.fd hash will be updated to 457510c in RussTreadon-NOAA/feature/gsihash.

RussTreadon-NOAA added a commit to RussTreadon-NOAA/global-workflow that referenced this issue Apr 22, 2024
@RussTreadon-NOAA RussTreadon-NOAA self-assigned this Apr 22, 2024
aerorahul pushed a commit that referenced this issue Apr 22, 2024
The `gsi_enkf.fd` hash is updated to bring in revisions to GSI source
code file `src/gsi/correlated_obsmod.F90`. The order in which set up
checks are performed have been modified to allow `gsi.x` to successfully
run retrospective GFS v17 cases with correlated error active.

Resolves #2507
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants