Skip to content

add the capabilty to dynamically generate GSI satinfo, convinfo ozinfo files for reanalysis #3293

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

Open
jswhit2 opened this issue Jan 30, 2025 · 1 comment · May be fixed by #3472
Open

add the capabilty to dynamically generate GSI satinfo, convinfo ozinfo files for reanalysis #3293

jswhit2 opened this issue Jan 30, 2025 · 1 comment · May be fixed by #3472

Comments

@jswhit2
Copy link
Contributor

jswhit2 commented Jan 30, 2025

What new functionality do you need?

Currently config.anal has an if/then/else loop that sets env vars SATINFO, OZINFO, CONVINFO that contain paths to different gsi info files for different periods over the last several years. For reanalysis, we need a solution that works back to 1979. Rather than add to the if/then/else block in config.anal, I have created a set of scripts that generate *info files dynamically given a date (https://github.com/NOAA-PSL/build_gsinfo). What is needed is a way to use those scripts in global-workflow. Note this is only needed for GSI - for JEDI the needed functionality is included in observation_chronicle (https://github.com/NOAA-EMC/jcb-gdas/tree/develop/observation_chronicle/atmosphere).

What are the requirements for the new functionality?

the global-workflow can dynamically generate and use GSI satinfo, ozinfo and radinfo files based on the analysis date.

Acceptance Criteria

  • the workflow dynamically generates the correct satinfo/ozinfo/convinfo files when using GSI and uses them

Suggest a solution (optional)

Create a new RUN_ENVIR ('reanl') and have the build_gsinfo scripts generate satinfo, ozinfo and convinfo files based on ${PDY}${cyc}

diff --git a/parm/config/gfs/config.anal b/parm/config/gfs/config.anal
index 123bd6de..4b56e515 100644
--- a/parm/config/gfs/config.anal
+++ b/parm/config/gfs/config.anal
@@ -146,6 +146,11 @@ if [[ ${RUN_ENVIR} == "emc" ]]; then
   #   if [[ "${PDY}${cyc}" -ge "2021110312" && "${PDY}${cyc}" -lt "YYYYMMDDHH" ]]; then
   #     export SATINFO=${FIXgfs}/gsi/gfsv16_historical/global_satinfo.txt.2021110312
   #   fi
+elif [[ ${RUN_ENVIR} == "reanl" ]]; then
+   # these will be set based on date in scripts/exglobal_atmos_analysis.sh
+   export SATINFO="generate"
+   export CONVINFO="generate"
+   export OZINFO="generate"
 fi

 # Flag to turn on (.true.) or off (.false.) the infrared cloud and aerosol detection software

diff --git a/scripts/exglobal_atmos_analysis.sh b/scripts/exglobal_atmos_analysis.sh
index bd11b81c..b549e273 100755
--- a/scripts/exglobal_atmos_analysis.sh
+++ b/scripts/exglobal_atmos_analysis.sh
@@ -363,14 +363,26 @@ cd ${DATA} || exit 99
 # Fixed files
 ${NLN} ${BERROR}       berror_stats
 ${NLN} ${SATANGL}      satbias_angle
-${NLN} ${SATINFO}      satinfo
+if [ $SATINFO == "generate" ]; then
+   sh ${HOMEgfs}/sorc/build_gsinfo/create_satinfo.sh  ${PDY}${cyc} > satinfo
+else
+   ${NLN} ${SATINFO}      satinfo
+fi
 ${NLN} ${RADCLOUDINFO} cloudy_radiance_info.txt
 ${NLN} ${ATMSFILTER}   atms_beamwidth.txt
 ${NLN} ${ANAVINFO}     anavinfo
-${NLN} ${CONVINFO}     convinfo
+if [ $CONVINFO == "generate" ]; then
+   sh ${HOMEgfs}/sorc/build_gsinfo/create_convinfo.sh  ${PDY}${cyc} > convinfo
+else
+   ${NLN} ${CONVINFO}     convinfo
+fi
 ${NLN} ${vqcdat}       vqctp001.dat
 ${NLN} ${INSITUINFO}   insituinfo
-${NLN} ${OZINFO}       ozinfo
+if [ $OZINFO == "generate" ]; then
+   sh ${HOMEgfs}/sorc/build_gsinfo/create_ozinfo.sh  ${PDY}${cyc} > ozinfo
+else
+   ${NLN} ${OZINFO}       ozinfo
+fi
 ${NLN} ${PCPINFO}      pcpinfo
 ${NLN} ${AEROINFO}     aeroinfo
 ${NLN} ${SCANINFO}     scaninfo
@jswhit2 jswhit2 added feature New feature or request triage Issues that are triage labels Jan 30, 2025
@jswhit2 jswhit2 changed the title add the capabilty to dyanmically generate GSI satinfo, convinfo ozinfo files for reanalysis add the capabilty to dynamically generate GSI satinfo, convinfo ozinfo files for reanalysis Jan 30, 2025
@WalterKolczynski-NOAA WalterKolczynski-NOAA removed triage Issues that are triage feature New feature or request labels Feb 24, 2025
@jswhit2
Copy link
Contributor Author

jswhit2 commented Mar 4, 2025

development at https://github.com/jswhit2/global-workflow/tree/build_gsinfo (not ready for PR yet)

requires updated gsi fix dir from https://github.com/jswhit2/GSI-fix/tree/build_gsinfo

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 a pull request may close this issue.

2 participants