Skip to content

Commit

Permalink
Merge branch 'NOAA-EMC:develop' into feature/version-files
Browse files Browse the repository at this point in the history
  • Loading branch information
KateFriedman-NOAA authored Mar 22, 2023
2 parents b6786e7 + ea15b26 commit 548e415
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 29 deletions.
1 change: 1 addition & 0 deletions parm/config/config.init
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export GDASINIT_DIR=${UFS_DIR}/util/gdas_init

export CRES_HIRES=$CASE
export CRES_ENKF=$CASE_ENKF
export FRAC_ORO="yes"

export RUNICSH=${GDASINIT_DIR}/run_v16.chgres.sh
if [ "${RETRO:-"NO"}" = "YES" ] || [ "$CDUMP" = "gdas" ]; then
Expand Down
8 changes: 2 additions & 6 deletions scripts/exgdas_atmos_gldas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,8 @@ mkdir -p "${RUNDIR}/input"
ln -fs "${GDAS}" "${RUNDIR}/input/GDAS"
ln -fs "${EXECgldas:?}/gldas_model" "${RUNDIR}/LIS"

# Set FIXgldas subfolder based on FRAC_GRID value
if [[ "${FRAC_GRID:-".true."}" = ".true." ]] ; then
ln -fs "${FIXgldas}/frac_grid/FIX_T${JCAP}" "${RUNDIR}/FIX"
else
ln -fs "${FIXgldas}/nonfrac_grid/FIX_T${JCAP}" "${RUNDIR}/FIX"
fi
# Set FIXgldas subfolder
ln -fs "${FIXgldas}/frac_grid/FIX_T${JCAP}" "${RUNDIR}/FIX"

#---------------------------------------------------------------
### 1) Get gdas 6-tile netcdf restart file and gdas forcing data
Expand Down
2 changes: 1 addition & 1 deletion sorc/checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ mkdir -p "${logdir}"
# The checkout version should always be a speciifc commit (hash or tag), not a branch
errs=0
checkout "gfs_utils.fd" "https://github.com/NOAA-EMC/gfs-utils" "0b8ff56" ; errs=$((errs + $?))
checkout "ufs_utils.fd" "https://github.com/ufs-community/UFS_UTILS.git" "5b67e4d" ; errs=$((errs + $?))
checkout "ufs_utils.fd" "https://github.com/ufs-community/UFS_UTILS.git" "4e673bf" ; errs=$((errs + $?))
checkout "ufs_model.fd" "https://github.com/ufs-community/ufs-weather-model" "${ufs_model_hash:-c22aaad}" ; errs=$((errs + $?))
checkout "verif-global.fd" "https://github.com/NOAA-EMC/EMC_verif-global.git" "c267780" ; errs=$((errs + $?))

Expand Down
24 changes: 6 additions & 18 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,31 +156,19 @@ EOF

#--------------------------------------------------------------------------
# Grid and orography data
for n in $(seq 1 $ntiles); do
$NLN $FIXfv3/$CASE/${CASE}_grid.tile${n}.nc $DATA/INPUT/${CASE}_grid.tile${n}.nc
$NLN $FIXfv3/$CASE/${CASE}_oro_data.tile${n}.nc $DATA/INPUT/oro_data.tile${n}.nc
done

if [ $cplflx = ".false." ] ; then
$NLN $FIXfv3/$CASE/${CASE}_mosaic.nc $DATA/INPUT/grid_spec.nc
else
$NLN $FIXfv3/$CASE/${CASE}_mosaic.nc $DATA/INPUT/${CASE}_mosaic.nc
fi

# Fractional grid related
if [ $FRAC_GRID = ".true." ]; then
OROFIX=${OROFIX:-"${FIX_DIR}/orog/${CASE}.mx${OCNRES}_frac"}
FIX_SFC=${FIX_SFC:-"${OROFIX}/fix_sfc"}
for n in $(seq 1 $ntiles); do
$NLN ${OROFIX}/oro_${CASE}.mx${OCNRES}.tile${n}.nc $DATA/INPUT/oro_data.tile${n}.nc
done
else
OROFIX=${OROFIX:-"${FIXfv3}/${CASE}"}
FIX_SFC=${FIX_SFC:-"${OROFIX}/fix_sfc"}
for n in $(seq 1 $ntiles); do
$NLN ${OROFIX}/${CASE}_oro_data.tile${n}.nc $DATA/INPUT/oro_data.tile${n}.nc
done
fi
OROFIX=${OROFIX:-"${FIX_DIR}/orog/${CASE}.mx${OCNRES}_frac"}
FIX_SFC=${FIX_SFC:-"${OROFIX}/fix_sfc"}
for n in $(seq 1 $ntiles); do
$NLN ${OROFIX}/oro_${CASE}.mx${OCNRES}.tile${n}.nc $DATA/INPUT/oro_data.tile${n}.nc
$NLN ${OROFIX}/${CASE}_grid.tile${n}.nc $DATA/INPUT/${CASE}_grid.tile${n}.nc
done

export CCPP_SUITE=${CCPP_SUITE:-"FV3_GFS_v16"}
_suite_file=$HOMEgfs/sorc/ufs_model.fd/FV3/ccpp/suites/suite_${CCPP_SUITE}.xml
Expand Down
5 changes: 3 additions & 2 deletions ush/python/pygw/src/pygw/yaml_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .template import TemplateConstants, Template
from .jinja import Jinja

__all__ = ['YAMLFile', 'parse_yaml',
__all__ = ['YAMLFile', 'parse_yaml', "parse_j2yaml", "parse_yamltmpl",
'save_as_yaml', 'dump_as_yaml', 'vanilla_yaml']


Expand Down Expand Up @@ -173,7 +173,8 @@ def parse_j2yaml(path: str, data: Dict = None) -> Dict[str, Any]:
jenv = Jinja(path, data)
yaml_file = jenv.render
yaml_dict = YAMLFile(data=yaml_file)
yaml_dict = Template.substitute_structure(yaml_dict, TemplateConstants.DOLLAR_PARENTHESES, data.get)
yaml_dict = Template.substitute_structure(
yaml_dict, TemplateConstants.DOLLAR_PARENTHESES, data.get)

return yaml_dict

Expand Down
4 changes: 2 additions & 2 deletions workflow/rocoto/workflow_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ def waveawipsgridded(self):
deps.append(rocoto.add_dependency(dep_dict))
dependencies = rocoto.create_dependency(dep=deps)

resources = self.get_resource('waeawipsgridded')
resources = self.get_resource('waveawipsgridded')
task = create_wf_task('waveawipsgridded', resources, cdump=self.cdump, envar=self.envars,
dependency=dependencies)

Expand Down Expand Up @@ -1241,7 +1241,7 @@ def efcs(self):

groups = self._get_hybgroups(self._base['NMEM_ENKF'], self._configs['efcs']['NMEM_EFCSGRP'])

if self.cdump == "gfs":
if self.cdump == "enkfgfs":
groups = self._get_hybgroups(self._base['NMEM_EFCS'], self._configs['efcs']['NMEM_EFCSGRP_GFS'])
cycledef = 'gdas_half,gdas' if self.cdump in ['enkfgdas'] else self.cdump.replace('enkf', '')
resources = self.get_resource('efcs')
Expand Down

0 comments on commit 548e415

Please sign in to comment.