You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turn off anlstat job for GSI based experiments by default (NOAA-EMC#4710)
# Description
The `anlstat` job was unconditionally running for GSI-based experiments,
causing issues on some platforms. This PR turns it off by default for
GSI experiments and adds an explicit opt-in flag, while preserving the
existing behavior that enables `DO_ANLSTAT` for JEDI-based experiments.
**Changes:**
- `dev/parm/config/gfs/config.base.j2`: Reverts `DO_ANLSTAT` default
back to `"NO"` (as it was in `e8d51af`); adds new `DO_GSI_ANLSTAT="NO"`
flag; restores the conditional logic from `e8d51af` that turns
`DO_ANLSTAT` back to `"YES"` for JEDI-based experiments:
- When `DO_JEDIATMVAR="YES"` (JEDI atmospheric variational DA)
- When any of `DO_AERO="YES"`, `DO_JEDIOCNVAR="YES"`, or
`DO_JEDISNOWDA="YES"`
- `dev/parm/config/gcafs/config.base.j2`: Adds the same
`DO_GSI_ANLSTAT="NO"` flag so the variable is available in GCAFS
experiments
- `dev/scripts/exglobal_analysis_stats.py`: Replaces the unconditional
`else: append('atmos_gsi')` with `elif config.DO_GSI_ANLSTAT:` — GSI
analysis stats now only run when explicitly opted in
- `docs/source/configure.rst`: Added documentation for `DO_ANLSTAT` and
`DO_GSI_ANLSTAT` options
```python
# Before: atmos_gsi always added when JEDI not active
if config.DO_JEDIATMVAR:
config.STAT_ANALYSES.append('atmos')
else:
config.STAT_ANALYSES.append('atmos_gsi')
# After: atmos_gsi only added when DO_GSI_ANLSTAT=YES
if config.DO_JEDIATMVAR:
config.STAT_ANALYSES.append('atmos')
elif config.DO_GSI_ANLSTAT:
config.STAT_ANALYSES.append('atmos_gsi')
```
To re-enable GSI analysis statistics, set `DO_GSI_ANLSTAT="YES"` in the
experiment configuration. JEDI-based experiments are unaffected —
`DO_ANLSTAT` is still automatically enabled for them via the conditional
logic in `config.base.j2`.
ResolvesNOAA-EMC#4450
# Type of change
- [ ] Bug fix (fixes something broken)
- [x] New feature (adds functionality)
- [ ] Maintenance (code refactor, clean-up, new CI test, etc.)
# Change characteristics
- Is this change expected to change outputs (e.g. value changes to
existing outputs, new files stored in COM, files removed from COM,
filename changes, additions/subtractions to archives)? NO
- [ ] GFS
- [ ] GEFS
- [ ] SFS
- [ ] GCAFS
- Is this a breaking change (a change in existing functionality)? YES —
GSI experiments that relied on `anlstat` running by default will no
longer run it unless `DO_GSI_ANLSTAT="YES"` is set
- Does this change require a documentation update? YES — documentation
for `DO_ANLSTAT` and `DO_GSI_ANLSTAT` has been added to
`docs/source/configure.rst`
- Does this change require an update to any of the following submodules?
NO
- [ ] EMC verif-global
- [ ] GDAS
- [ ] GFS-utils
- [ ] GSI
- [ ] GSI-monitor
- [ ] GSI-utils
- [ ] UFS-utils
- [ ] UFS-weather-model
- [ ] wxflow
# How has this been tested?
Code review only; no runtime tests conducted.
# Checklist
- [ ] Any dependent changes have been merged and published
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have documented my code, including function, input, and output
descriptions
- [x] My changes generate no new warnings
- [ ] New and existing tests pass with my changes
- [ ] This change is covered by an existing CI test or a new one has
been added
- [ ] Any new scripts have been added to the .github/CODEOWNERS file
with owners
- [x] I have made corresponding changes to the system documentation if
necessary
<!-- START COPILOT CODING AGENT TIPS -->
---
⌨️ Start Copilot coding agent tasks without leaving your editor —
available in [VS Code](https://gh.io/cca-vs-code-docs), [Visual
Studio](https://gh.io/cca-visual-studio-docs), [JetBrains
IDEs](https://gh.io/cca-jetbrains-docs) and
[Eclipse](https://gh.io/cca-eclipse-docs).
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: CoryMartin-NOAA <6354668+CoryMartin-NOAA@users.noreply.github.com>
Co-authored-by: DavidHuber-NOAA <69919478+DavidHuber-NOAA@users.noreply.github.com>
Co-authored-by: Cory Martin <cory.r.martin@noaa.gov>
0 commit comments