Skip to content

Commit

Permalink
Replace ocnanal_${CDATE}} with ${RUN}ocnanal_${cyc} (#1191)
Browse files Browse the repository at this point in the history
Replace ocnanal_${CDATE}} with ${RUN}ocnanal_${cyc} as both `$RUN` and `$cyc` are available at the beginning of a job.
  • Loading branch information
AndrewEichmann-NOAA authored Dec 19, 2022
1 parent 6d33752 commit 3e240bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_POST
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source "${HOMEgfs}/ush/preamble.sh"
##############################################
# make temp directory
##############################################
export DATA=${DATA:-${DATAROOT}/ocnanal_${CDATE}} # TODO (G): Switch to {cyc} when the downstream code is ready
export DATA=${DATA:-${DATAROOT}/${RUN}ocnanal_${cyc}}
mkdir -p "${DATA}"
cd "${DATA}" || (echo "${DATA} does not exist. ABORT!"; exit 1)

Expand Down
3 changes: 1 addition & 2 deletions jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_PREP
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source "${HOMEgfs}/ush/preamble.sh"
##############################################
# make temp directory
##############################################
export DATA=${DATA:-${DATAROOT}/ocnanal_${CDATE}} # TODO (G): Switch to {cyc} when the downstream code is ready
export DATA=${DATA:-${DATAROOT}/${RUN}ocnanal_${cyc}}
rm -rf "${DATA}" # Ensure starting with a clean DATA
mkdir -p "${DATA}"
cd "${DATA}" || (echo "${DATA} does not exist. ABORT!"; exit 1)
Expand Down Expand Up @@ -50,7 +50,6 @@ status=$?
##############################################
# Set variables used in the script
##############################################
export CDATE=${CDATE:-${PDY}${cyc}}
export CDUMP=${CDUMP:-${RUN:-"gfs"}}
export COMPONENT="ocean"

Expand Down
2 changes: 1 addition & 1 deletion jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_RUN
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source "${HOMEgfs}/ush/preamble.sh"
##############################################
# make temp directory
##############################################
export DATA=${DATA:-${DATAROOT}/ocnanal_${CDATE}} # TODO (G): Switch to {cyc} when the downstream code is ready
export DATA=${DATA:-${DATAROOT}/${RUN}ocnanal_${cyc}}
mkdir -p "${DATA}"
cd "${DATA}" || (echo "${DATA} does not exist. ABORT!"; exit 1)

Expand Down

0 comments on commit 3e240bb

Please sign in to comment.