Skip to content

Commit

Permalink
minimalmist stub for ocean prep obs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewEichmann-NOAA committed Aug 31, 2023
1 parent ccf5405 commit a37eb81
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
46 changes: 46 additions & 0 deletions jobs/JGDAS_GLOBAL_OCEAN_ANALYSIS_PREP_OBS
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash
export STRICT="NO"
source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "ocnanalprepobs" -c "base ocnanal ocnanalprepobs"


##############################################
# Set variables used in the script
##############################################
export CDUMP=${CDUMP:-${RUN:-"gfs"}}
# Ignore possible spelling error (nothing is misspelled)
# shellcheck disable=SC2153

##############################################
# 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}

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

#EXSCRIPT=${GDASPREPPY:-${HOMEgfs}/sorc/gdas.cd/scripts/exgdas_global_marine_analysis_vrfy.py}
#${EXSCRIPT}
#status=$?
#[[ ${status} -ne 0 ]] && exit "${status}"

##############################################
# End JOB SPECIFIC work
##############################################

##############################################
# Final processing
##############################################
if [[ -e "${pgmout}" ]] ; then
cat "${pgmout}"
fi

##########################################
# Do not remove the Temporary working directory (do this in POST)
##########################################
cd "${DATAROOT}" || exit 1

exit 0
10 changes: 10 additions & 0 deletions parm/config/gfs/config.ocnanalprepobs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

########## config.ocnanalprep ##########
# Pre Ocn Analysis specific

echo "BEGIN: config.ocnanalprepobs"

# Get task specific resources
. "${EXPDIR}/config.resources" ocnanalprepobs
echo "END: config.ocnanalprepobs"
12 changes: 11 additions & 1 deletion parm/config/gfs/config.resources
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [[ $# -ne 1 ]]; then
echo "waveinit waveprep wavepostsbs wavepostbndpnt wavepostbndpntbll wavepostpnt"
echo "wavegempak waveawipsbulls waveawipsgridded"
echo "postsnd awips gempak"
echo "ocnanalprep ocnanalbmat ocnanalrun ocnanalchkpt ocnanalpost ocnanalvrfy"
echo "ocnanalprep ocnanalprepobs ocnanalbmat ocnanalrun ocnanalchkpt ocnanalpost ocnanalvrfy"
exit 1

fi
Expand Down Expand Up @@ -328,6 +328,16 @@ elif [[ "${step}" = "ocnanalprep" ]]; then
export npe_node_ocnanalprep
export memory_ocnanalprep="24GB"

elif [[ "${step}" = "ocnanalprepobs" ]]; then

export wtime_ocnanalprepobs="00:10:00"
export npe_ocnanalprepobs=1
export nth_ocnanalprepobs=1
npe_node_ocnanalprepobs=$(echo "${npe_node_max} / ${nth_ocnanalprepobs}" | bc)
export npe_node_ocnanalprepobs
export memory_ocnanalprepobs="24GB"


elif [[ "${step}" = "ocnanalbmat" ]]; then
npes=16
case ${CASE} in
Expand Down

0 comments on commit a37eb81

Please sign in to comment.