Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PBS -N jevs_glwu_wave_grid2obs_plots
#PBS -N jevs_plots_glwu_wave_grid2obs_last31days
#PBS -j oe
#PBS -S /bin/bash
#PBS -q dev
Expand Down Expand Up @@ -49,19 +49,20 @@ export DATAROOT=/lfs/h2/emc/stmp/${USER}/evs_test/$envir/tmp
export OUTPUTROOT=/lfs/h2/emc/ptmp/$USER
export COMIN=/lfs/h2/emc/vpppg/noscrub/${USER}/${NET}/${evs_ver_2d}
export COMOUT=${OUTPUTROOT}/${NET}/${evs_ver_2d}
export EVAL_PERIOD="last31days"

export run_mpi='yes'
export gather='yes'

export job=${PBS_JOBNAME:-jevs_glwu_wave_grid2obs_plots}
export job=${PBS_JOBNAME:-jevs_${STEP}_${COMPONENT}_${RUN}_${VERIF_CASE}_${EVAL_PERIOD}}
export jobid=$job.${PBS_JOBID:-$$}
export TMPDIR=$DATAROOT
export SITE=$(cat /etc/cluster_name)

############################################################
# CALL executable job script here
############################################################
${HOMEevs}/jobs/JEVS_GLWU_PLOTS
${HOMEevs}/jobs/JEVS_PLOTS_GLWU

#########################################################################
# Purpose: This job creates the plots for the NFCENS wave model
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#PBS -N jevs_plots_glwu_wave_grid2obs_last90days
#PBS -j oe
#PBS -S /bin/bash
#PBS -q dev
#PBS -A VERF-DEV
#PBS -l walltime=00:15:00
#PBS -l place=vscatter,select=1:ncpus=128:mem=500G
#PBS -l debug=true

set -x

export HOMEevs=/lfs/h2/emc/vpppg/noscrub/$USER/EVS

export MODELNAME=glwu
export OBTYPE=NDBC_STANDARD
export NET=evs
export COMPONENT=glwu
export STEP=plots
export RUN=wave
export VERIF_CASE=grid2obs

############################################################
# read version file and set model_ver
############################################################
versionfile=$HOMEevs/versions/run.ver
. $versionfile
export model_ver=$glwu_ver

############################################################
# Load modules
############################################################
module reset
module load prod_envir/${prod_envir_ver}
source $HOMEevs/dev/modulefiles/${COMPONENT}/${COMPONENT}_${STEP}.sh

evs_ver_2d=$(echo $evs_ver | cut -d'.' -f1-2)

############################################################
# set some variables
############################################################
export envir=prod
export SENDCOM=${SENDCOM:-YES}
export SENDECF=${SENDECF:-YES}
export SENDDBN=${SENDDBN:-NO}
export KEEPDATA=${KEEPDATA:-NO}

## developers directories
export DATAROOT=/lfs/h2/emc/stmp/${USER}/evs_test/$envir/tmp
export OUTPUTROOT=/lfs/h2/emc/ptmp/$USER
export COMIN=/lfs/h2/emc/vpppg/noscrub/${USER}/${NET}/${evs_ver_2d}
export COMOUT=${OUTPUTROOT}/${NET}/${evs_ver_2d}
export EVAL_PERIOD="last90days"

export run_mpi='yes'
export gather='yes'

export job=${PBS_JOBNAME:-jevs_${STEP}_${COMPONENT}_${RUN}_${VERIF_CASE}_${EVAL_PERIOD}}
export jobid=$job.${PBS_JOBID:-$$}
export TMPDIR=$DATAROOT
export SITE=$(cat /etc/cluster_name)

############################################################
# CALL executable job script here
############################################################
${HOMEevs}/jobs/JEVS_PLOTS_GLWU

#########################################################################
# Purpose: This job creates the plots for the GLWU wave model
# Author: Samira ardani (samira.ardani@noaa.gov)
#########################################################################
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PBS -N jevs_glwu_wave_grid2obs_prep
#PBS -N jevs_prep_glwu_wave_grid2obs
#PBS -j oe
#PBS -S /bin/bash
#PBS -q dev
Expand Down Expand Up @@ -57,15 +57,15 @@ export OUTPUTROOT=/lfs/h2/emc/vpppg/noscrub/$USER
export COMIN=/lfs/h2/emc/vpppg/noscrub/${USER}/${NET}/${evs_ver_2d}
export COMOUT=${OUTPUTROOT}/${NET}/${evs_ver_2d}/${STEP}/${COMPONENT}/${RUN}

export job=${PBS_JOBNAME:-jevs_glwu_wave_grid2obs_prep}
export job=${PBS_JOBNAME:-jevs_${STEP}_${COMPONENT}_${RUN}_${VERIF_CASE}}
export jobid=$job.${PBS_JOBID:-$$}
export TMPDIR=$DATAROOT
export SITE=$(cat /etc/cluster_name)

############################################################
# CALL executable job script here
#############################################################
$HOMEevs/jobs/JEVS_GLWU_PREP
$HOMEevs/jobs/JEVS_PREP_GLWU

#######################################################################
# Purpose: This does the prep work for the GLWU wave model
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PBS -N jevs_glwu_wave_grid2obs_stats
#PBS -N jevs_stats_glwu_wave_grid2obs
#PBS -j oe
#PBS -S /bin/bash
#PBS -q dev
Expand Down Expand Up @@ -57,7 +57,7 @@ export COMOUT=${OUTPUTROOT}/${NET}/${evs_ver_2d}/${STEP}/${COMPONENT}
export run_mpi='yes'
export gather='yes'

export job=${PBS_JOBNAME:-jevs_glwu_wave_grid2obs_stats}
export job=${PBS_JOBNAME:-jevs_${STEP}_${COMPONENT}_${RUN}_${VERIF_CASE}}
export jobid=$job.${PBS_JOBID:-$$}
export TMPDIR=$DATAROOT
export SITE=$(cat /etc/cluster_name)
Expand All @@ -66,7 +66,7 @@ export SITE=$(cat /etc/cluster_name)
## CALL executable job script here
#############################################################

$HOMEevs/jobs/JEVS_GLWU_STATS
$HOMEevs/jobs/JEVS_STATS_GLWU

######################################################################
# Purpose: The job and task scripts work together to create stat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PBS -N evs_glwu_wave_grid2obs_plots
#PBS -N evs_plots_glwu_wave_grid2obs_last31days
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
Expand Down Expand Up @@ -46,11 +46,12 @@ export MODELNAME=glwu
export OBTYPE=NDBC_STANDARD
export run_mpi='yes'
export gather='yes'
export EVAL_PERIOD="last31days"

############################################################
# Execute j-job
############################################################
$HOMEevs/jobs/JEVS_GLWU_PLOTS
$HOMEevs/jobs/JEVS_PLOTS_GLWU
if [ $? -ne 0 ]; then
ecflow_client --msg="***JOB ${ECF_NAME} ERROR RUNNING J-SCRIPT ***"
ecflow_client --abort
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#PBS -N evs_plots_glwu_wave_grid2obs_last90days
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
#PBS -A %PROJ%-%PROJENVIR%
#PBS -l walltime=00:15:00
#PBS -l place=vscatter:exclhost,select=1:ncpus=128:mem=500G
#PBS -l debug=true

export model=evs
%include <head.h>
%include <envir-p1.h>

############################################################
# Load modules
############################################################
set -x
export COMPONENT=glwu
export STEP=plots

module load PrgEnv-intel/${PrgEnvintel_ver}
module load intel/${intel_ver}
module load ve/evs/${ve_evs_ver}
module load gsl/${gsl_ver}
module load libjpeg/${libjpeg_ver}
module load grib_util/${grib_util_ver}
module load wgrib2/${wgrib2_ver}
module load cray-pals/${craypals_ver}
module load cfp/${cfp_ver}
module load met/${met_ver}
module load metplus/${metplus_ver}
module list

############################################################
# Specify environment variables
############################################################
if [ -n "%VHR:%" ]; then
export vhr=${vhr:-%VHR:%}
else
export vhr=00
fi
export NET=evs
export RUN=wave
export VERIF_CASE=grid2obs
export MODELNAME=glwu
export OBTYPE=NDBC_STANDARD
export run_mpi='yes'
export gather='yes'
export EVAL_PERIOD="last90days"

############################################################
# Execute j-job
############################################################
$HOMEevs/jobs/JEVS_PLOTS_GLWU
if [ $? -ne 0 ]; then
ecflow_client --msg="***JOB ${ECF_NAME} ERROR RUNNING J-SCRIPT ***"
ecflow_client --abort
exit
fi

%include <tail.h>
%manual
%end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PBS -N evs_glwu_wave_grid2obs_prep
#PBS -N evs_prep_glwu_wave_grid2obs
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
Expand Down Expand Up @@ -46,7 +46,7 @@ export MODELNAME=glwu
############################################################
# Execute j-job
############################################################
$HOMEevs/jobs/JEVS_GLWU_PREP
$HOMEevs/jobs/JEVS_PREP_GLWU
if [ $? -ne 0 ]; then
ecflow_client --msg="***JOB ${ECF_NAME} ERROR RUNNING J-SCRIPT ***"
ecflow_client --abort
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PBS -N evs_glwu_wave_grid2obs_stats
#PBS -N evs_stats_glwu_wave_grid2obs
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
Expand Down Expand Up @@ -51,7 +51,7 @@ export OMP_NUM_THREADS=1
############################################################
# Execute j-job
############################################################
$HOMEevs/jobs/JEVS_GLWU_STATS
$HOMEevs/jobs/JEVS_STATS_GLWU
if [ $? -ne 0 ]; then
ecflow_client --msg="***JOB ${ECF_NAME} ERROR RUNNING J-SCRIPT ***"
ecflow_client --abort
Expand Down
2 changes: 1 addition & 1 deletion jobs/JEVS_GLWU_PLOTS → jobs/JEVS_PLOTS_GLWU
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ mkdir -p ${COMOUTplots}
####################################
# Execute the script
####################################
$HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${COMPONENT}_${RUN}_${VERIF_CASE}_${STEP}.sh
$HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${STEP}_${COMPONENT}_${RUN}_${VERIF_CASE}.sh
export err=$?; err_chk

msg="JOB $job HAS COMPLETED NORMALLY."
Expand Down
2 changes: 1 addition & 1 deletion jobs/JEVS_GLWU_PREP → jobs/JEVS_PREP_GLWU
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ mkdir -p ${COMOUT}.${INITDATE}/${MODELNAME}/${VERIF_CASE}
####################################
# Execute the script
####################################
$HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${COMPONENT}_${RUN}_${VERIF_CASE}_${STEP}.sh
$HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${STEP}_${COMPONENT}_${RUN}_${VERIF_CASE}.sh
export err=$?; err_chk

msg="JOB $job HAS COMPLETED NORMALLY."
Expand Down
2 changes: 1 addition & 1 deletion jobs/JEVS_GLWU_STATS → jobs/JEVS_STATS_GLWU
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ mkdir -p ${COMOUT} ${COMOUTsmall} ${COMOUTfinal}
####################################
# Execute the script
####################################
$HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${COMPONENT}_${RUN}_${VERIF_CASE}_${STEP}.sh
$HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${STEP}_${COMPONENT}_${RUN}_${VERIF_CASE}.sh
export err=$?; err_chk

msg="JOB $job HAS COMPLETED NORMALLY."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
##################################################################################
# Name of Script: exevs_glwu_wave_grid2obs_plots.sh
# Name of Script: exevs_plots_glwu_wave_grid2obs.sh
# Samira Ardani / samira.ardani@noaa.gov
# Purpose of Script: Run the grid2obs plots for GLWU wave model
#
Expand Down Expand Up @@ -131,8 +131,8 @@ export err=$?; err_chk
#####################
# Gather all the files
#######################
periods=$(echo "$EVAL_PERIOD" | tr '[:lower:]' '[:upper:]')

periods='LAST31DAYS LAST90DAYS'
if [ $gather = yes ] ; then
echo "copying all images into one directory"
nc=$(ls ${DATA}/images/*.png | wc -l | awk '{print $1}')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
###############################################################################
# Name of Script: exevs_glwu_wave_grid2obs_prep.sh
# Name of Script: exevs_prep_glwu_wave_grid2obs.sh
# Purpose of Script: To pre-process glwu forecast data into the same spatial
# and temporal scales as validation data.
# Author: Samira Ardani (samira.ardani@noaa.gov)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
###############################################################################
# Name of Script: exevs_glwu_stats.sh
# Name of Script: exevs_stats_glwu_wave_grid2obs.sh
# Purpose of Script: To create stat files for GLWU forecasts verified with
# NDBC buoy data using MET/METplus.
# Developer: Samira Ardani (samira.ardani@noaa.gov)
Expand Down
3 changes: 1 addition & 2 deletions ush/glwu/evs_wave_leadaverages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

# set up plot variables

periods='LAST31DAYS LAST90DAYS'

periods=$(echo "$EVAL_PERIOD" | tr '[:lower:]' '[:upper:]')
inithours='01 07 13 19'
fhrs='000,024,048,072,096,120,144'
# fhr is hardcoded below!
Expand Down
3 changes: 1 addition & 2 deletions ush/glwu/evs_wave_timeseries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

# set up plot variables

periods='LAST31DAYS LAST90DAYS'

periods=$(echo "$EVAL_PERIOD" | tr '[:lower:]' '[:upper:]')
inithours='01 07 13 19'
fhrs='000 024 048 072 096 120 144'
wave_vars='HTSGW WIND'
Expand Down