Skip to content

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

@jswhit2

Description

@jswhit2

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

Metadata

Metadata

Labels

No labels
No labels

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions