Skip to content

Commit

Permalink
[production/AQM.v7] Enhance EE2 compliance (#987)
Browse files Browse the repository at this point in the history
* update J-job scripts

* change emission dir name to be consistent with operational forecast

* update PARMaqm_utils for 4 J-job scripts and auto_build.sh

* update hash number of AQM-utils

* update auto_build_exec.sh

* update auto_build_exec.sh

* update var_defns.sh.nco.statis and aqm_nco_config.sh

* update source_util_funcs.sh

* update COMINm1 and COMINm2 in the J-Job scripts

* udate exscript for forecast

* update J-job and excripts to move emission from COMaqm to FIXaqm

* update var_defns.sh.nco.static

* update var_defns.sh.nco.static

* fix nexus job failure associated with var_defns.sh.nco.static

* update Externals.cfg
  • Loading branch information
JianpingHuang-NOAA authored Dec 8, 2023
1 parent f07d952 commit c069c2a
Show file tree
Hide file tree
Showing 24 changed files with 1,205 additions and 59 deletions.
7 changes: 4 additions & 3 deletions jobs/JAQM_BIAS_CORRECTION_O3
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export FIXaqm=${FIXaqm:-${HOMEaqm}/fix}
export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

export DCOMINairnow="${DCOMINairnow:-${DCOMROOT}}"
Expand Down Expand Up @@ -83,6 +83,8 @@ if [ "${cyc}" = "06" ] || [ "${cyc}" = "12" ]; then
fi
fi

export PARMaqm_utils="${PARMaqm_utils:-${HOMEaqm}/parm/aqm_utils}"

TMP_STDAY=`${NDATE} -8760 ${PDY}${cyc} | cut -c1-8` # 1 year back
export BC_STDAY=${BC_STDAY:-${TMP_STDAY}}
#
Expand All @@ -91,7 +93,6 @@ export BC_STDAY=${BC_STDAY:-${TMP_STDAY}}
# bles.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_bias_correction_o3.sh
export err=$?; err_chk
#
Expand Down
7 changes: 4 additions & 3 deletions jobs/JAQM_BIAS_CORRECTION_PM25
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export UTILaqm=${UTILaqm:-${HOMEaqm}/util}
export COMINgfs="${COMINgfs:-$(compath.py ${envir}/gfs/${gfs_ver})}"

export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

export DCOMINairnow="${DCOMINairnow:-${DCOMROOT}}"
Expand Down Expand Up @@ -84,6 +84,8 @@ if [ "${cyc}" = "06" ] || [ "${cyc}" = "12" ]; then
fi
fi

export PARMaqm_utils="${PARMaqm_utils:-${HOMEaqm}/parm/aqm_utils}"

TMP_STDAY=`${NDATE} -8760 ${PDY}${cyc} | cut -c1-8` # 1 year back
export BC_STDAY=${BC_STDAY:-${TMP_STDAY}}

Expand All @@ -93,7 +95,6 @@ env
# bles.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_bias_correction_pm25.sh
export err=$?; err_chk
#
Expand Down
4 changes: 2 additions & 2 deletions jobs/JAQM_FIRE_EMISSION
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export DCOMROOT=${DCOMROOT:-/lfs/h1/ops/prod/dcom}
export DCOMINfire="${DCOMINfire:-${DCOMROOT}/${PDY}/rave}"

export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -92,7 +93,6 @@ mkdir -p ${FIRE_EMISSION_STAGING_DIR}
# Call the ex-script for this J-job and pass to it the necessary variables.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_fire_emission.sh
export err=$?; err_chk
#
Expand Down
5 changes: 2 additions & 3 deletions jobs/JAQM_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export FIXaqm=${FIXaqm:-${HOMEaqm}/fix}
export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -82,7 +82,6 @@ export INPUT_DATA="${INPUT_DATA:-${COMIN}/${cyc}}"
# bles.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_forecast.sh
export err=$?; err_chk
#
Expand Down
5 changes: 2 additions & 3 deletions jobs/JAQM_ICS
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMINgfs="${COMINgfs:-$(compath.py ${envir}/gfs/${gfs_ver})}"
export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -85,7 +85,6 @@ DATA="${DATA:-${COMIN}${SLASH_ENSMEM_SUBDIR}/tmp_AQM_ICS}"
# Call the ex-script for this J-job and pass to it the necessary variables.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_ics.sh
export err=$?; err_chk
#
Expand Down
5 changes: 2 additions & 3 deletions jobs/JAQM_LBCS
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMINgfs="${COMINgfs:-$(compath.py ${envir}/gfs/${gfs_ver})}"
export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

export COMINgefs="${COMINgefs:-$(compath.py ${envir}/gefs/${gefs_ver})}"
Expand Down Expand Up @@ -88,7 +88,6 @@ DATA="${DATA:-${COMIN}${SLASH_ENSMEM_SUBDIR}/tmp_AQM_LBCS}"
# Call the ex-script for this J-job and pass to it the necessary variables.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_lbcs.sh
export err=$?; err_chk
#
Expand Down
5 changes: 2 additions & 3 deletions jobs/JAQM_MAKE_ICS
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMINgfs="${COMINgfs:-$(compath.py ${envir}/gfs/${gfs_ver})}"
export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -99,7 +99,6 @@ fi
# Call the ex-script for this J-job and pass to it the necessary variables.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_make_ics.sh
export err=$?; err_chk
#
Expand Down
5 changes: 2 additions & 3 deletions jobs/JAQM_MAKE_LBCS
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMINgfs="${COMINgfs:-$(compath.py ${envir}/gfs/${gfs_ver})}"
export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -102,7 +102,6 @@ fi
# Call the ex-script for this J-job and pass to it the necessary variables.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_make_lbcs.sh
export err=$?; err_chk
#
Expand Down
7 changes: 3 additions & 4 deletions jobs/JAQM_NEXUS_EMISSION
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ export PARMaqm=${PARMaqm:-${HOMEaqm}/parm}
export FIXaqm=${FIXaqm:-${HOMEaqm}/fix}
export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMINemis="${COMINemis:-${COMaqm}/emissions}"
export FIXemis="${FIXemis:-${FIXaqm}/emission}"
export COMINgfs="${COMINgfs:-$(compath.py ${envir}/gfs/${gfs_ver})}"

export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -104,7 +104,6 @@ fi
# Call the ex-script for this J-job.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_nexus_emission.sh
export err=$?; err_chk
#
Expand Down
8 changes: 4 additions & 4 deletions jobs/JAQM_NEXUS_POST_SPLIT
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ export FIXaqm=${FIXaqm:-${HOMEaqm}/fix}
export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMINgfs="${COMINgfs:-$(compath.py ${envir}/gfs/${gfs_ver})}"
export COMINemis="${COMINemis:-${COMaqm}/emissions}"
export FIXemis="${FIXemis:-${FIXaqm}/emission}"


export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -93,7 +94,6 @@ DATA="${DATA:-${COMIN}${SLASH_ENSMEM_SUBDIR}/tmp_NEXUS_POST_SPLIT}"
#
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_nexus_post_split.sh
export err=$?; err_chk
#
Expand Down
7 changes: 3 additions & 4 deletions jobs/JAQM_POINT_SOURCE
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export FIXaqm=${FIXaqm:-${HOMEaqm}/fix}
export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMINgfs="${COMINgfs:-$(compath.py ${envir}/gfs/${gfs_ver})}"
export COMINemispt="${COMINemispt:-${COMaqm}/emissions/nei2016v1-pt}"
export FIXemispt="${FIXemispt:-${FIXaqm}/emission/nei2016v1-pt}"

export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -82,7 +82,6 @@ DATA="${DATA:-${COMIN}${SLASH_ENSMEM_SUBDIR}/tmp_POINT_SOURCE}"
# Call the ex-script for this J-job.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_point_source.sh
export err=$?; err_chk
#
Expand Down
5 changes: 2 additions & 3 deletions jobs/JAQM_POST
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMINgfs="${COMINgfs:-$(compath.py ${envir}/gfs/${gfs_ver})}"
export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -91,7 +91,6 @@ fi
# bles.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_post.sh
export err=$?; err_chk
#
Expand Down
7 changes: 4 additions & 3 deletions jobs/JAQM_POST_STAT_O3
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export FIXaqm=${FIXaqm:-${HOMEaqm}/fix}
export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -76,13 +76,14 @@ if [ "${cyc}" = "06" ] || [ "${cyc}" = "12" ]; then
mkdir -p "${PCOM}"
fi
fi

export PARMaqm_utils="${PARMaqm_utils:-${HOMEaqm}/parm/aqm_utils}"
#
#-----------------------------------------------------------------------
# Call the ex-script for this J-job and pass to it the necessary varia-
# bles.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_post_stat_o3.sh
export err=$?; err_chk
#
Expand Down
8 changes: 5 additions & 3 deletions jobs/JAQM_POST_STAT_PM25
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export FIXaqm=${FIXaqm:-${HOMEaqm}/fix}
export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -77,13 +77,15 @@ if [ "${cyc}" = "06" ] || [ "${cyc}" = "12" ]; then
mkdir -p "${PCOM}"
fi
fi


export PARMaqm_utils="${PARMaqm_utils:-${HOMEaqm}/parm/aqm_utils}"
#
#-----------------------------------------------------------------------
# Call the ex-script for this J-job and pass to it the necessary varia-
# bles.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_post_stat_pm25.sh
export err=$?; err_chk
#
Expand Down
5 changes: 2 additions & 3 deletions jobs/JAQM_PRE_POST_STAT
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export FIXaqm=${FIXaqm:-${HOMEaqm}/fix}
export UTILaqm=${UTILaqm:-${HOMEaqm}/util}

export COMIN="${COMIN:-${COMaqm}/${RUN}.${PDY}}"
export COMINm1="${COMIN:-${COMaqm}/${RUN}.${PDYm1}}"
export COMINm2="${COMIN:-${COMaqm}/${RUN}.${PDYm2}}"
export COMINm1="${COMaqm}/${RUN}.${PDYm1}"
export COMINm2="${COMaqm}/${RUN}.${PDYm2}"
export COMOUT="${COMOUT:-${COMaqm}/${RUN}.${PDY}/${cyc}}"

#-----------------------------------------------------------------------
Expand Down Expand Up @@ -72,7 +72,6 @@ DATA="${DATA:-${COMIN}${SLASH_ENSMEM_SUBDIR}/tmp_PRE_POST_STAT}"
# bles.
#-----------------------------------------------------------------------
#
startmsg
${HOMEaqm}/scripts/exaqm_pre_post_stat.sh
export err=$?; err_chk
#
Expand Down
2 changes: 2 additions & 0 deletions parm/config/aqm_nco_config.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -eux

# This utility is to replace configuration temperate with production setting before running ecflow workflow
Expand Down
11 changes: 4 additions & 7 deletions parm/config/var_defns.sh.nco.static
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

# [metadata]
description='config for Online-CMAQ, AQM_NA_13km, real-time, NCO mode on WCOSS2'
version='1.0'
Expand Down Expand Up @@ -53,11 +55,6 @@ TEST_ALT_EXTRN_MDL_SYSBASEDIR_ICS=''
TEST_ALT_EXTRN_MDL_SYSBASEDIR_LBCS=''
TEST_VX_FCST_INPUT_BASEDIR=''
FIXgsm='@HOMEaqm@/fix/fix_am'
FIXaer='@HOMEaqm@/fix/fix_aer'
FIXlut='@HOMEaqm@/fix/fix_lut'
FIXorg='@HOMEaqm@/fix/fix_orog'
FIXsfc='@HOMEaqm@/fix/fix_sfc_climo'
FIXshp='@HOMEaqm@/fix/ufs/NaturalEarth'
EXTRN_MDL_DATA_STORES='hpss aws nomads'

# [workflow]
Expand Down Expand Up @@ -947,7 +944,7 @@ AQM_LBCS_FILES='am4_bndy.c793.2019<MM>.v1.nc'
COMINgefs='@COMINgefs@'
AQM_GEFS_FILE_PREFIX='geaer'
AQM_GEFS_FILE_CYC=''
COMINemis='@COMaqm@/emissions'
FIXemis='@HOMEaqm@/fix/emission'
FIXaqmconfig='@HOMEaqm@/fix/aqm/epa/data'
FIXaqmfire='@HOMEaqm@/fix/fire'
FIXaqmbio='@HOMEaqm@/fix/bio'
Expand All @@ -958,7 +955,7 @@ FIXaqmnexus='@HOMEaqm@/fix/nexus'
NEXUS_GRID_FN='grid_spec_793.nc'
NUM_SPLIT_NEXUS='6'
NEXUS_GFS_SFC_ARCHV_DIR='/NCEPPROD/hpssprod/runhistory'
COMINemispt='@COMaqm@/emissions/nei2016v1-pt'
FIXemispt='@HOMEaqm@/fix/emission/nei2016v1-pt'
DCOMINairnow='/lfs/h1/ops/prod/dcom'
COMINbicor='@COMaqm@'
COMOUTbicor='@COMaqm@'
Expand Down
Loading

0 comments on commit c069c2a

Please sign in to comment.