Skip to content

Commit

Permalink
generalize pyioda path for JGDAS_GLOBAL_OCEAN_ANALYSIS_PREP (NOAA-EMC…
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Mar 25, 2024
1 parent 054ec59 commit 4a802f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_PREP
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ RUN=${GDUMP} YMD=${gPDY} HH=${gcyc} generate_com -rx \

# Add UFSDA to PYTHONPATH
ufsdaPATH="${HOMEgfs}/sorc/gdas.cd/ush/"
pyiodaPATH="${HOMEgfs}/sorc/gdas.cd/build/lib/python3.7/"
py_ver=$(regex="[0-9]+\.[0-9]+"; if [[ $(python --version) =~ ${regex} ]]; then echo "${BASH_REMATCH[0]}"; fi)
pyiodaPATH="${HOMEgfs}/sorc/gdas.cd/build/lib/python${py_ver}/"
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${ufsdaPATH}:${pyiodaPATH}"
export PYTHONPATH
Expand Down

0 comments on commit 4a802f6

Please sign in to comment.