-
Notifications
You must be signed in to change notification settings - Fork 0
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
[DO NOT MERGE] UW Demo for make_ics #6
base: production/AQM.v7
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
|
@@ -8,21 +8,11 @@ set -xue | |
export USHaqm=${EXECaqm:-${HOMEaqm}/ush} | ||
export PARMaqm=${PARMaqm:-${HOMEaqm}/parm} | ||
|
||
export subcyc='00' | ||
export SLASH_ENSMEM_SUBDIR='' | ||
export ENSMEM_INDX='##' | ||
|
||
export pid=${pid:-$$} | ||
export outid=${outid:-"LL$job"} | ||
|
||
export DATA=${DATA:-${DATAROOT}/${jobid}} | ||
mkdir -p ${DATA} | ||
cd ${DATA} | ||
|
||
. $USHaqm/aqm_nco_config.sh | ||
|
||
. ${USHaqm}/source_util_funcs.sh | ||
|
||
export cycle=${cycle:-t${cyc}z} | ||
|
||
setpdy.sh | ||
|
@@ -32,72 +22,18 @@ export CDATE=${PDY}${cyc} | |
|
||
. $USHaqm/job_preamble.sh | ||
|
||
export EXECaqm=${EXECaqm:-${HOMEaqm}/exec} | ||
export FIXaqm=${FIXaqm:-${HOMEaqm}/fix} | ||
|
||
export COMINgfs="${COMINgfs:-$(compath.py gfs/${gfs_ver})}" | ||
export COMIN="${COMIN:-$(compath.py ${NET}/${aqm_ver}/${RUN}.${PDY})}" | ||
export COMINm1="${COMINm1:-$(compath.py ${NET}/${aqm_ver}/${RUN}.${PDYm1})}" | ||
export COMOUT="${COMOUT:-$(compath.py -o ${NET}/${aqm_ver}/${RUN}.${PDY}/${cyc})}" | ||
|
||
#----------------------------------------------------------------------- | ||
# Get the full path to the file in which this script/function is located | ||
# (scrfunc_fp), the name of that file (scrfunc_fn), and the directory in | ||
# which the file is located (scrfunc_dir). | ||
#----------------------------------------------------------------------- | ||
# | ||
scrfunc_fp=$( $READLINK -f "${BASH_SOURCE[0]}" ) | ||
scrfunc_fn=$( basename "${scrfunc_fp}" ) | ||
scrfunc_dir=$( dirname "${scrfunc_fp}" ) | ||
cycle_iso=${PDY:04}-${PDY:4:2}-${PDY:6:2}T${cyc} | ||
uw chgres_cube provisioned_rundir \ | ||
--cycle $cycle_iso \ | ||
--config ${USHaqm}/config.yaml \ | ||
--key-path make_ics | ||
|
||
#env | ||
#----------------------------------------------------------------------- | ||
# Print message indicating entry into script. | ||
#----------------------------------------------------------------------- | ||
# | ||
print_info_msg " | ||
======================================================================== | ||
Entering script: \"${scrfunc_fn}\" | ||
In directory: \"${scrfunc_dir}\" | ||
|
||
This is the J-job script for the task that generates initial condition | ||
(IC), surface, and zeroth-hour lateral boundary condition (LBC0) files | ||
for the FV3 (in NetCDF format). | ||
========================================================================" | ||
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. Is all this logging helpful when |
||
# | ||
#----------------------------------------------------------------------- | ||
# Set the name of and create the directory in which the output from this | ||
# script will be placed (if that directory doesn't already exist). | ||
#----------------------------------------------------------------------- | ||
# | ||
export INPUT_DATA="${INPUT_DATA:-${COMIN}/${cyc}}" | ||
mkdir -p ${INPUT_DATA} | ||
# | ||
#----------------------------------------------------------------------- | ||
# Set the run directory | ||
#----------------------------------------------------------------------- | ||
# | ||
DATA="${DATA:-${COMIN}${SLASH_ENSMEM_SUBDIR}/tmp_MAKE_ICS}" | ||
# | ||
#----------------------------------------------------------------------- | ||
# Set environment only when RUN_TASK_GET_EXTRN_ICS is false. | ||
#----------------------------------------------------------------------- | ||
# | ||
if [ "${RUN_TASK_GET_EXTRN_ICS}" = "FALSE" ]; then | ||
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. Maybe this is still used in some cases, but it seems like it might be more straightforward just to have this script always handle this. Again, this is removed for demo purposes only. |
||
export TIME_OFFSET_HRS=${EXTRN_MDL_ICS_OFFSET_HRS:-0} | ||
export EXTRN_MDL_NAME=${EXTRN_MDL_NAME_ICS} | ||
GFS_FILE_FMT=${FV3GFS_FILE_FMT_ICS} | ||
yyyymmdd=${PDY} | ||
hh=${cyc} | ||
export EXTRN_MDL_CDATE=`$NDATE -${TIME_OFFSET_HRS} $PDY$cyc` | ||
export EXTRN_MDL_STAGING_DIR="${EXTRN_MDL_STAGING_DIR:-${DATA}}" | ||
fi | ||
# | ||
#----------------------------------------------------------------------- | ||
# Call the ex-script for this J-job and pass to it the necessary variables. | ||
#----------------------------------------------------------------------- | ||
# | ||
${HOMEaqm}/scripts/exaqm_make_ics.sh | ||
${HOMEaqm}/scripts/exaqm_make_ics.sh | ||
export err=$?; err_chk | ||
# | ||
#====================================================================== | ||
|
@@ -107,18 +43,5 @@ postmsg "${msg}" | |
if [ "${KEEPDATA}" != "YES" ]; then | ||
rm -rf ${DATA} | ||
fi | ||
#======================================================================= | ||
# Print exit message | ||
print_info_msg " | ||
======================================================================== | ||
Exiting script: \"${scrfunc_fn}\" | ||
In directory: \"${scrfunc_dir}\" | ||
========================================================================" | ||
# | ||
#----------------------------------------------------------------------- | ||
# Restore the shell options saved at the beginning of this script/function. | ||
#----------------------------------------------------------------------- | ||
# | ||
{ restore_shell_opts; } > /dev/null 2>&1 | ||
|
||
date |
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.
Pulling out all the SRW stuff that get's in the way -- these aren't needed for Production AQM and can serve as red-herrings when debugging.