Skip to content
4 changes: 3 additions & 1 deletion jobs/JGLOBAL_PREP_OCEAN_OBS
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ YMD=${PDY} HH=${cyc} generate_com -rx COMOUT_OBS:COM_OBS_TMPL

# Add prep_marine_obs.py to PYTHONPATH
export PYTHONPATH=${HOMEgfs}/sorc/gdas.cd/ush:${PYTHONPATH}
# Add gen_bufr2ioda.py to PYTHONPATH
export PYTHONPATH=${HOMEgfs}/sorc/gdas.cd/ush/ioda/bufr2ioda:${PYTHONPATH}

###############################################################
# Run relevant script

EXSCRIPT=${GDASPREPOCNOBSPY:-${HOMEgfs}/ush/exglobal_prep_ocean_obs.py}
EXSCRIPT=${GDASPREPOCNOBSPY:-${HOMEgfs}/sorc/gdas.cd/scripts/exglobal_prep_ocean_obs.py}
${EXSCRIPT}
status=$?
[[ ${status} -ne 0 ]] && exit "${status}"
Expand Down
4 changes: 4 additions & 0 deletions parm/config/gfs/config.prepoceanobs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export OBS_YAML=${OBS_LIST}
# ocean analysis needs own dmpdir until standard dmpdir has full ocean obs
export DMPDIR=@DMPDIR@

# For BUFR2IODA json and python scripts
export JSON_TMPL_DIR=${HOMEgfs}/sorc/gdas.cd/parm/ioda/bufr2ioda

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export JSON_TMPL_DIR=${HOMEgfs}/sorc/gdas.cd/parm/ioda/bufr2ioda
export JSON_TMPL_DIR=${HOMEgfs}/parm/gdas/ioda/bufr2ioda

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aerorahul Trying to address this before opening the new PR - is the idea to link the yaml files from ${HOMEgfs}/sorc/gdas.cd/parm/ioda/bufr2ioda to ${HOMEgfs}/parm/gdas/ioda/bufr2ioda?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.
All files from sorc/gdas.cd should be linked in the appropriate location in HOMEgfs/. The scripts, yamls, etc. should reference them using EXECgfs or PARMgfs or SCRgfs or USHgfs instead of HOMEgfs/sorc/gdas.cd/+parm or scripts or ush.

export BUFR2IODA_PY_DIR=${HOMEgfs}/sorc/gdas.cd/ush/ioda/bufr2ioda
export KEEPDATA='YES'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is for debugging, then it should be removed from the PR.

# Get task specific resources
. "${EXPDIR}/config.resources" prepoceanobs
echo "END: config.prepoceanobs"