Repository navigation
Conversation
cycle the GSI without assimilating observations Export ZERO_OBS=1 before running fvsetup; it is written to FVDAS_Run_Config so every job of the experiment sees it. Default is 0 (no change in behavior). Central analysis (GEOSdas.csm): - SetupObserver_, UpdateGsiGridCompResource_: comment out the entries of the observation_files table in GSI_GridComp.rc (closing "::" kept), so GSI runs with an empty observation list - AcquireObservations_, PreAnalysisQC_, QualityControlRun_, Diag2ODSRun_: exit early (nothing to fetch, QC, or convert to ODS) Ensemble analysis (NCEP_enkf/scripts/gmao): - atm_ens.j: skip the ensemble observers; link each member background into the work directory instead; ATMENS_ENSQRF=0 - atm_ens.j: skip the variational aircraft bias check (ACFTBIAS=2 without PREPQC needs ncep_acftpfl_bufr in OBSCLASS); no obs are used - atmos_enkf.csh: bypass the EnKF update; each member analysis is a copy of its background, filed with update_ens.csh Setup: - write_FVDAS_Run_Config.pl: write ZERO_OBS to FVDAS_Run_Config when set - fvsetup: print a note when ZERO_OBS is found in the environment File changed: - src/Applications/GEOSdas_App/GEOSdas.csm (+16) - src/Applications/GEOSdas_App/fvsetup (+4) - src/Applications/GEOSdas_App/write_FVDAS_Run_Config.pl (+7/−1) - src/Applications/NCEP_Etc/NCEP_enkf/scripts/gmao/atm_ens.j (+10/−2): this now includes skipping the aircraft bias check, if ( ! $JEDI_CAN_RUN_NOW && ! $ZERO_OBS ) then - src/Applications/NCEP_Etc/NCEP_enkf/scripts/gmao/atmos_enkf.csh (+31)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This solves issue
This is a AI-assisted PR that gives zero-diff for develop branch if you run ADAS the same way as before.
I provide the idea and AI did the implementation and revised my PR messages. It was one small step along the way.
I turned this on during the early debug stage, mainly to understand the structure of ADAS.
Add
ZERO_OBS: cycle GEOS ADAS without assimilating observationsNote
This PR was prepared with AI assistance.
Important
Zero-diff to
developby default.ZERO_OBSis off (unset or0) unless you turn it on.If you run ADAS the same way as before, nothing changes.
Summary
This PR adds an opt-in switch,
ZERO_OBS, for ADAS in GSI mode. When it is on, the fullcycle (central GSI analysis and EnKF ensemble) runs with no observations. The scripts, jobs
and file flow are the same as a normal cycle, but no observation data is read or assimilated.
How to use
Set the variable before running
fvsetup:fvsetupprints a note and writes the switch to$FVHOME/run/FVDAS_Run_Config, so every jobof the experiment sees it:
What
ZERO_OBS=1doesZERO_OBS=1ana = bkg)Zero-diff to
developEvery new line is one of four kinds, and none of them changes behavior when the switch is off:
if ( !($?ZERO_OBS) ) setenv ZERO_OBS 0, set before first use, socshnever sees an undefined variable;if ( $ZERO_OBS ), which is skipped;&& ! $ZERO_OBSor|| $ZERO_OBS), which reduces to the originaldevelopcondition when the flag is0.To check this, the changed lines were run through
csh/perlwithZERO_OBSunset andZERO_OBS=0,plus a
ZERO_OBS=1control:ZERO_OBSdevelop?GEOSdas.csmGEOSdas.csm(control)atm_ens.j,JEDI_CAN_RUN_NOW=0obsvr_ensemble.cshruns;ATMENS_ENSQRFunchangedatm_ens.j,JEDI_CAN_RUN_NOW=1ATMENS_ENSQRFunchangedatmos_enkf.cshZERO_OBSblock and continues to the normal EnKF codefvsetup,write_FVDAS_Run_Config.plFVDAS_Run_ConfigTip
The only visible difference with the switch off:
ZERO_OBS=0now exists in the job environment,so it can show up in
envprintouts in the logs. Nothing else reads it.Implementation details
Central analysis —
GEOSdas.csmSetupObserver_,UpdateGsiGridCompResource_: comment out the entries of theobservation_files::table inGSI_GridComp.rc(the closing::is kept), so GSI runs with anempty observation list.
AcquireObservations_,PreAnalysisQC_,QualityControlRun_,Diag2ODSRun_: exit early(nothing to fetch, QC, or convert to ODS).
Ensemble analysis —
NCEP_enkf/scripts/gmaoatm_ens.j: skip the ensemble observers; link each member background into the workdirectory instead; set
ATMENS_ENSQRF=0.atm_ens.j: skip the variational aircraft bias check (withACFTBIAS=2and noPREPQC, itrequires
ncep_acftpfl_bufrinOBSCLASS), since no observations are used:if ( ! $JEDI_CAN_RUN_NOW && ! $ZERO_OBS ) thenatmos_enkf.csh: bypass the EnKF update; each member analysis is a copy of its background,filed with
update_ens.csh.Setup
write_FVDAS_Run_Config.pl: writeZERO_OBStoFVDAS_Run_Configwhen set.fvsetup: print a note whenZERO_OBSis found in the environment.Files changed
src/Applications/GEOSdas_App/GEOSdas.csmsrc/Applications/GEOSdas_App/fvsetupsrc/Applications/GEOSdas_App/write_FVDAS_Run_Config.plsrc/Applications/NCEP_Etc/NCEP_enkf/scripts/gmao/atm_ens.jsrc/Applications/NCEP_Etc/NCEP_enkf/scripts/gmao/atmos_enkf.cshTesting
cshlines tested withZERO_OBSunset,0, and1(control)perllogic infvsetup/write_FVDAS_Run_Config.pltested; no warnings under-wdevelopvs. this branch (ZERO_OBSunset), outputs compared withcmp/nccmp