-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add jjob stub for prospective ocean analysis prep observation task #1831
Changes from 4 commits
ccf5405
a37eb81
f9b6e8a
97fc7b7
af7a213
1debc9d
aeb0474
be6c46a
8ffd748
94b1393
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,43 @@ | ||||||||
#!/bin/bash | ||||||||
export STRICT="NO" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this NO? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have an outstanding issue with variables not getting assigned (I suspect because we don't use them) - this is being worked on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||
source "${HOMEgfs}/ush/preamble.sh" | ||||||||
source "${HOMEgfs}/ush/jjob_header.sh" -e "ocnanalprepobs" -c "base ocnanal ocnanalprepobs" | ||||||||
AndrewEichmann-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
|
||||||||
|
||||||||
############################################## | ||||||||
# Set variables used in the script | ||||||||
############################################## | ||||||||
export CDUMP=${CDUMP:-${RUN:-"gfs"}} | ||||||||
AndrewEichmann-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
# Ignore possible spelling error (nothing is misspelled) | ||||||||
# shellcheck disable=SC2153 | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is being ignored?
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed |
||||||||
|
||||||||
############################################## | ||||||||
# Begin JOB SPECIFIC work | ||||||||
############################################## | ||||||||
|
||||||||
# Add UFSDA to PYTHONPATH | ||||||||
export PYTHONPATH=${HOMEgfs}/sorc/gdas.cd/ush/:${HOMEgfs}/sorc/gdas.cd/ush/eva:${PYTHONPATH} | ||||||||
export PYTHONPATH=${HOMEgfs}/sorc/gdas.cd/ush/soca:${PYTHONPATH} | ||||||||
AndrewEichmann-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
|
||||||||
############################################################### | ||||||||
# Run relevant script | ||||||||
|
||||||||
# the relevant script goes here | ||||||||
|
||||||||
############################################## | ||||||||
# End JOB SPECIFIC work | ||||||||
############################################## | ||||||||
|
||||||||
############################################## | ||||||||
# Final processing | ||||||||
############################################## | ||||||||
if [[ -e "${pgmout}" ]] ; then | ||||||||
cat "${pgmout}" | ||||||||
fi | ||||||||
|
||||||||
########################################## | ||||||||
# Do not remove the Temporary working directory (do this in POST) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Probably a residual from a previous copy-paste. |
||||||||
########################################## | ||||||||
cd "${DATAROOT}" || exit 1 | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We do want to remove the data directory at the end of the job.
Suggested change
|
||||||||
|
||||||||
exit 0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would prefer this config to be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. update elsewhere as necessary. |
||
|
||
########## config.ocnanalprep ########## | ||
# Pre Ocn Analysis specific | ||
|
||
echo "BEGIN: config.ocnanalprepobs" | ||
|
||
# Get task specific resources | ||
. "${EXPDIR}/config.resources" ocnanalprepobs | ||
echo "END: config.ocnanalprepobs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets call this job:
JGLOBAL_PREP_OCEAN_OBS
to be consistent with how jobs are named.This job will be called for both
gdas
andgfs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done