Skip to content

Commit

Permalink
replace prepiodaobs with prepatmiodaobs, add soft link for bufr2ioda …
Browse files Browse the repository at this point in the history
…run script (NOAA-EMC#1820)
  • Loading branch information
RussTreadon-NOAA committed Aug 31, 2023
1 parent 3d614c2 commit 7af58ee
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 31 deletions.
4 changes: 2 additions & 2 deletions jobs/JGLOBAL_PREP_IODA_OBS
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "prepiodaobs" -c "base prepiodaobs"
source "${HOMEgfs}/ush/jjob_header.sh" -e "prepatmiodaobs" -c "base prepatmiodaobs"

##############################################
# Set variables used in the script
Expand All @@ -17,7 +17,7 @@ YMD=${PDY} HH=${cyc} generate_com -rx COM_OBS

###############################################################
# Run relevant script
EXSCRIPT=${BUFR2IODASH:-${HOMEgfs}/ush/ioda/bufr2ioda/run_bufr2ioda.sh}
EXSCRIPT=${BUFR2IODASH:-${HOMEgfs}/ush/run_bufr2ioda.sh}
${EXSCRIPT} "${PDY}${cyc}" "${CDUMP}" "${DMPDIR}" "${IODAPARM}" "${COM_OBS}/"
status=$?
[[ ${status} -ne 0 ]] && (echo "FATAL ERROR: Error executing ${EXSCRIPT}, ABORT!"; exit "${status}")
Expand Down
14 changes: 14 additions & 0 deletions parm/config/gfs/config.prepatmiodaobs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /usr/bin/env bash

########## config.prepatmiodaobs ##########
# Atm Obs Prep specific

echo "BEGIN: config.prepatmiodaobs"

# Get task specific resources
. "${EXPDIR}/config.resources" prepatmiodaobs

export BUFR2IODASH="${HOMEgfs}/ush/run_bufr2ioda.sh"
export IODAPARM="${HOMEgfs}/sorc/gdas.cd/parm/ioda/bufr2ioda"

echo "END: config.prepatmiodaobs"
14 changes: 0 additions & 14 deletions parm/config/gfs/config.prepiodaobs

This file was deleted.

14 changes: 7 additions & 7 deletions parm/config/gfs/config.resources
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [[ $# -ne 1 ]]; then
echo "Must specify an input task argument to set resource variables!"
echo "argument can be any one of the following:"
echo "coupled_ic aerosol_init"
echo "prep preplandobs prepiodaobs"
echo "prep preplandobs prepatmiodaobs"
echo "atmanlinit atmanlrun atmanlfinal"
echo "atmensanlinit atmensanlrun atmensanlfinal"
echo "landanl"
Expand Down Expand Up @@ -73,12 +73,12 @@ elif [[ "${step}" = "preplandobs" ]]; then
npe_node_preplandobs=1
export npe_node_preplandobs

elif [[ "${step}" = "prepiodaobs" ]]; then
export wtime_prepiodaobs="00:10:00"
export npe_prepiodaobs=1
export nth_prepiodaobs=1
npe_node_prepiodaobs=$(echo "${npe_node_max} / ${nth_prepiodaobs}" | bc)
export npe_node_prepiodaobs
elif [[ "${step}" = "prepatmiodaobs" ]]; then
export wtime_prepatmiodaobs="00:10:00"
export npe_prepatmiodaobs=1
export nth_prepatmiodaobs=1
npe_node_prepatmiodaobs=$(echo "${npe_node_max} / ${nth_prepatmiodaobs}" | bc)
export npe_node_prepatmiodaobs

elif [[ "${step}" = "aerosol_init" ]]; then
export wtime_aerosol_init="00:05:00"
Expand Down
1 change: 1 addition & 0 deletions sorc/link_workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ if [[ -d "${HOMEgfs}/sorc/gdas.cd" ]]; then
cd "${HOMEgfs}/ush" || exit 1
${LINK_OR_COPY} "${HOMEgfs}/sorc/gdas.cd/ush/ufsda" .
${LINK_OR_COPY} "${HOMEgfs}/sorc/gdas.cd/ush/jediinc2fv3.py" .
${LINK_OR_COPY} "${HOMEgfs}/sorc/gdas.cd/ush/ioda/bufr2ioda/run_bufr2ioda.sh" .
${LINK_OR_COPY} "${HOMEgfs}/sorc/gdas.cd/build/bin/imsfv3_scf2ioda.py" .
fi

Expand Down
4 changes: 2 additions & 2 deletions workflow/applications/gfs_cycled.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _get_app_configs(self):
configs = ['prep']

if self.do_jediatmvar:
configs += ['prepiodaobs', 'atmanlinit', 'atmanlrun', 'atmanlfinal']
configs += ['prepatmiodaobs', 'atmanlinit', 'atmanlrun', 'atmanlfinal']
else:
configs += ['anal', 'analdiag']

Expand Down Expand Up @@ -109,7 +109,7 @@ def get_task_names(self):
gdas_gfs_common_cleanup_tasks = ['arch']

if self.do_jediatmvar:
gdas_gfs_common_tasks_before_fcst += ['prepiodaobs', 'atmanlinit', 'atmanlrun', 'atmanlfinal']
gdas_gfs_common_tasks_before_fcst += ['prepatmiodaobs', 'atmanlinit', 'atmanlrun', 'atmanlfinal']
else:
gdas_gfs_common_tasks_before_fcst += ['anal']

Expand Down
10 changes: 5 additions & 5 deletions workflow/rocoto/gfs_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,22 +245,22 @@ def analdiag(self):

return task

def prepiodaobs(self):
def prepatmiodaobs(self):

deps = []
dep_dict = {'type': 'task', 'name': f'{self.cdump}prep'}
deps.append(rocoto.add_dependency(dep_dict))
dependencies = rocoto.create_dependency(dep=deps)

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

return task

def atmanlinit(self):

deps = []
dep_dict = {'type': 'task', 'name': f'{self.cdump}prepiodaobs'}
dep_dict = {'type': 'task', 'name': f'{self.cdump}prepatmiodaobs'}
deps.append(rocoto.add_dependency(dep_dict))
if self.app_config.do_hybvar:
dep_dict = {'type': 'metatask', 'name': 'enkfgdasepmn', 'offset': '-06:00:00'}
Expand Down Expand Up @@ -1005,7 +1005,7 @@ def eupd(self):

def atmensanlinit(self):
deps = []
dep_dict = {'type': 'task', 'name': f'{self.cdump.replace("enkf","")}prepiodaobs'}
dep_dict = {'type': 'task', 'name': f'{self.cdump.replace("enkf","")}prepatmiodaobs'}
deps.append(rocoto.add_dependency(dep_dict))
dep_dict = {'type': 'metatask', 'name': 'enkfgdasepmn', 'offset': '-06:00:00'}
deps.append(rocoto.add_dependency(dep_dict))
Expand Down
2 changes: 1 addition & 1 deletion workflow/rocoto/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Tasks:
SERVICE_TASKS = ['arch', 'earc']
VALID_TASKS = ['aerosol_init', 'coupled_ic',
'prep', 'anal', 'sfcanl', 'analcalc', 'analdiag', 'arch',
'prepiodaobs', 'atmanlinit', 'atmanlrun', 'atmanlfinal',
'prepatmiodaobs', 'atmanlinit', 'atmanlrun', 'atmanlfinal',
'ocnanalprep', 'ocnanalbmat', 'ocnanalrun', 'ocnanalchkpt', 'ocnanalpost', 'ocnanalvrfy',
'earc', 'ecen', 'echgres', 'ediag', 'efcs',
'eobs', 'eomg', 'epos', 'esfc', 'eupd',
Expand Down

0 comments on commit 7af58ee

Please sign in to comment.