From 556422ea3818259c6ae3e3a0d50049b450828c0c Mon Sep 17 00:00:00 2001 From: SamiraArdani-NOAA Date: Wed, 6 Dec 2023 21:04:05 +0000 Subject: [PATCH 01/11] Bugfix to prevent syntax errors. --- .../plots/cam/jevs_cam_grid2obs_plots.sh | 2 +- scripts/prep/rtofs/exevs_rtofs_prep.sh | 17 +++- .../stats/rtofs/exevs_rtofs_aviso_stats.sh | 88 ++++++++++-------- scripts/stats/rtofs/exevs_rtofs_smap_stats.sh | 77 +++++++++------- scripts/stats/rtofs/exevs_rtofs_smos_stats.sh | 90 ++++++++++--------- 5 files changed, 157 insertions(+), 117 deletions(-) diff --git a/dev/drivers/scripts/plots/cam/jevs_cam_grid2obs_plots.sh b/dev/drivers/scripts/plots/cam/jevs_cam_grid2obs_plots.sh index f93a1b1616..e8244a761e 100755 --- a/dev/drivers/scripts/plots/cam/jevs_cam_grid2obs_plots.sh +++ b/dev/drivers/scripts/plots/cam/jevs_cam_grid2obs_plots.sh @@ -4,7 +4,7 @@ #PBS -S /bin/bash #PBS -q dev #PBS -A VERF-DEV -#PBS -l walltime=10:00:00 +#PBS -l walltime=12:00:00 #PBS -l place=vscatter:exclhost,select=4:ncpus=128 #PBS -l debug=true #PBS -V diff --git a/scripts/prep/rtofs/exevs_rtofs_prep.sh b/scripts/prep/rtofs/exevs_rtofs_prep.sh index 15fcc89812..daa6e1d1b6 100755 --- a/scripts/prep/rtofs/exevs_rtofs_prep.sh +++ b/scripts/prep/rtofs/exevs_rtofs_prep.sh @@ -138,7 +138,9 @@ for ftype in nh sh; do input_osisaf_file=$DCOMROOT/$VDATE/seaice/osisaf/ice_conc_${ftype}_polstere-100_multi_${VDATE}1200.nc tmp_osisaf_file=$DATA/rtofs.$VDATE/$RUN/ice_conc_${ftype}_polstere-100_multi_${VDATE}1200.nc output_osisaf_file=$COMOUTprep/rtofs.$VDATE/$RUN/ice_conc_${ftype}_polstere-100_multi_${VDATE}1200.nc - actual_size_osisaf=$(wc -c <"$DCOMROOT/$VDATE/seaice/osisaf/ice_conc_${ftype}_polstere-100_multi_${VDATE}1200.nc") + if [ -s $input_osisaf_file ]; then + actual_size_osisaf=$(wc -c <"$DCOMROOT/$VDATE/seaice/osisaf/ice_conc_${ftype}_polstere-100_multi_${VDATE}1200.nc") + fi if [[ ! -s $input_osisaf_file || $actual_size_osisaf -lt $min_size ]]; then if [ $SENDMAIL = YES ] ; then export subject="OSI-SAF Data Missing for EVS RTOFS" @@ -197,10 +199,10 @@ if [ ! -d $COMOUTprep/rtofs.$VDATE/$RUN ]; then mkdir -p $COMOUTprep/rtofs.$VDATE/$RUN fi mkdir -p $DATA/rtofs.$VDATE/$RUN -actual_size_argo_atlantic=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/argo/atlantic_ocean/${VDATE}_prof.nc") -actual_size_argo_indian=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/argo/indian_ocean/${VDATE}_prof.nc") -actual_size_argo_pacific=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/argo/pacific_ocean/${VDATE}_prof.nc") if [ -s $DCOMROOT/$VDATE/validation_data/marine/argo/atlantic_ocean/${VDATE}_prof.nc ] && [ -s $DCOMROOT/$VDATE/validation_data/marine/argo/indian_ocean/${VDATE}_prof.nc ] && [ -s $DCOMROOT/$VDATE/validation_data/marine/argo/pacific_ocean/${VDATE}_prof.nc ]; then + actual_size_argo_atlantic=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/argo/atlantic_ocean/${VDATE}_prof.nc") + actual_size_argo_indian=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/argo/indian_ocean/${VDATE}_prof.nc") + actual_size_argo_pacific=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/argo/pacific_ocean/${VDATE}_prof.nc") if [ $actual_size_argo_atlantic -gt $min_size ] && [ $actual_size_argo_indian -gt $min_size ] && [ $actual_size_argo_pacific -gt $min_size ] ; then tmp_argo_file=$DATA/rtofs.$VDATE/$RUN/argo.${VDATE}.nc output_argo_file=$COMOUTprep/rtofs.$VDATE/$RUN/argo.${VDATE}.nc @@ -220,6 +222,13 @@ if [ -s $DCOMROOT/$VDATE/validation_data/marine/argo/atlantic_ocean/${VDATE}_pro cat mailmsg | mail -s "$subject" $MAILTO fi fi +else + if [ $SENDMAIL = YES ] ; then + export subject="Argo Data Missing for EVS RTOFS" + echo "Warning: No Argo data was available for valid date $VDATE." > mailmsg + echo "Missing file is $DCOMROOT/$VDATE/validation_data/marine/argo/atlantic_ocean/${VDATE}_prof.nc, $DCOMROOT/$VDATE/validation_data/marine/argo/indian_ocean/${VDATE}_prof.nc, and/or $DCOMROOT/$VDATE/validation_data/marine/argo/pacific_ocean/${VDATE}_prof.nc" >> mailmsg + cat mailmsg | mail -s "$subject" $MAILTO + fi fi diff --git a/scripts/stats/rtofs/exevs_rtofs_aviso_stats.sh b/scripts/stats/rtofs/exevs_rtofs_aviso_stats.sh index 9413af8e62..2c184d1d1a 100755 --- a/scripts/stats/rtofs/exevs_rtofs_aviso_stats.sh +++ b/scripts/stats/rtofs/exevs_rtofs_aviso_stats.sh @@ -39,46 +39,56 @@ fi # check if obs file exists; send alert email if not min_size=2404 -actual_size=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/cmems/ssh/nrt_global_allsat_phy_l4_${VDATE}_${VDATE}.nc") -if [ -s $DCOMROOT/$VDATE/validation_data/marine/cmems/ssh/nrt_global_allsat_phy_l4_${VDATE}_${VDATE}.nc ] && [ $actual_size -ge $min_size ]; then - if [ -s $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc ] ; then - for fday in 0 1 2 3 4 5 6 7 8; do - fhr=$(($fday * 24)) - fhr2=$(printf "%02d" "${fhr}") - export fhr3=$(printf "%03d" "${fhr}") - INITDATE=$($NDATE -${fhr} ${VDATE}${vhr} | cut -c 1-8) - if [ -s $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_diag.$RUN.nc ] ; then - for vari in ${VARS}; do - export VAR=$vari - export VARupper=$(echo $VAR | tr '[a-z]' '[A-Z]') - mkdir -p $STATSDIR/$RUN.$VDATE/$VAR - if [ -s $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat ]; then - cpreq -v $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $STATSDIR/$RUN.$VDATE/$VAR/. - else - run_metplus.py -c ${PARMevs}/metplus_config/machine.conf \ - -c $CONFIGevs/$STEP/$COMPONENT/${VERIF_CASE}/GridStat_fcstRTOFS_obsAVISO_climoHYCOM.conf - export err=$?; err_chk - if [ $SENDCOM = "YES" ]; then - mkdir -p $COMOUTsmall/$VAR - cpreq -v $STATSDIR/$RUN.$VDATE/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $COMOUTsmall/$VAR/. - fi - fi - done - else - echo "WARNING: Missing RTOFS f${fhr3} diag file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_diag.$RUN.nc" - fi - done - else - echo "WARNING: Missing RTOFS f000 ice file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc" - fi +if [ -s $DCOMROOT/$VDATE/validation_data/marine/cmems/ssh/nrt_global_allsat_phy_l4_${VDATE}_${VDATE}.nc ]; then + actual_size=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/cmems/ssh/nrt_global_allsat_phy_l4_${VDATE}_${VDATE}.nc") + if [ $actual_size -ge $min_size ]; then + if [ -s $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc ] ; then + for fday in 0 1 2 3 4 5 6 7 8; do + fhr=$(($fday * 24)) + fhr2=$(printf "%02d" "${fhr}") + export fhr3=$(printf "%03d" "${fhr}") + INITDATE=$($NDATE -${fhr} ${VDATE}${vhr} | cut -c 1-8) + if [ -s $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_diag.$RUN.nc ] ; then + for vari in ${VARS}; do + export VAR=$vari + export VARupper=$(echo $VAR | tr '[a-z]' '[A-Z]') + mkdir -p $STATSDIR/$RUN.$VDATE/$VAR + if [ -s $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat ]; then + cpreq -v $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $STATSDIR/$RUN.$VDATE/$VAR/. + else + run_metplus.py -c ${PARMevs}/metplus_config/machine.conf \ + -c $CONFIGevs/$STEP/$COMPONENT/${VERIF_CASE}/GridStat_fcstRTOFS_obsAVISO_climoHYCOM.conf + export err=$?; err_chk + if [ $SENDCOM = "YES" ]; then + mkdir -p $COMOUTsmall/$VAR + cpreq -v $STATSDIR/$RUN.$VDATE/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $COMOUTsmall/$VAR/. + fi + fi + done + else + echo "WARNING: Missing RTOFS f${fhr3} diag file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_diag.$RUN.nc" + fi + done + else + echo "WARNING: Missing RTOFS f000 ice file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc" + fi + else + echo "WARNING: Missing AVISO data file for $VDATE: $DCOMROOT/$VDATE/validation_data/marine/cmems/ssh/nrt_global_allsat_phy_l4_${VDATE}_${VDATE}.nc" + if [ $SENDMAIL = YES ] ; then + export subject="AVISO Data Missing for EVS RTOFS" + echo "Warning: No AVISO data was available for valid date $VDATE." > mailmsg + echo "Missing file is $DCOMROOT/$VDATE/validation_data/marine/cmems/ssh/nrt_global_allsat_phy_l4_${VDATE}_${VDATE}.nc." >> mailmsg + cat mailmsg | mail -s "$subject" $MAILTO + fi + fi else - echo "WARNING: Missing AVISO data file for $VDATE: $DCOMROOT/$VDATE/validation_data/marine/cmems/ssh/nrt_global_allsat_phy_l4_${VDATE}_${VDATE}.nc" - if [ $SENDMAIL = YES ] ; then - export subject="AVISO Data Missing for EVS RTOFS" - echo "Warning: No AVISO data was available for valid date $VDATE." > mailmsg - echo "Missing file is $DCOMROOT/$VDATE/validation_data/marine/cmems/ssh/nrt_global_allsat_phy_l4_${VDATE}_${VDATE}.nc." >> mailmsg - cat mailmsg | mail -s "$subject" $MAILTO - fi + echo "WARNING: Missing AVISO data file for $VDATE: $DCOMROOT/$VDATE/validation_data/marine/cmems/ssh/nrt_global_allsat_phy_l4_${VDATE}_${VDATE}.nc" + if [ $SENDMAIL = YES ] ; then + export subject="AVISO Data Missing for EVS RTOFS" + echo "Warning: No AVISO data was available for valid date $VDATE." > mailmsg + echo "Missing file is $DCOMROOT/$VDATE/validation_data/marine/cmems/ssh/nrt_global_allsat_phy_l4_${VDATE}_${VDATE}.nc." >> mailmsg + cat mailmsg | mail -s "$subject" $MAILTO + fi fi # check if stat files exist diff --git a/scripts/stats/rtofs/exevs_rtofs_smap_stats.sh b/scripts/stats/rtofs/exevs_rtofs_smap_stats.sh index 0fd24a112d..da166f6674 100755 --- a/scripts/stats/rtofs/exevs_rtofs_smap_stats.sh +++ b/scripts/stats/rtofs/exevs_rtofs_smap_stats.sh @@ -40,38 +40,49 @@ fi # check if obs file exists; send alert email if not export JDATE=$(date2jday.sh $VDATE) min_size=2404 -actual_size=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/smap/SP_D${JDATE}_Map_SATSSS_data_1day.nc") -if [ -s $DCOMROOT/$VDATE/validation_data/marine/smap/SP_D${JDATE}_Map_SATSSS_data_1day.nc ] && [ $actual_size -ge $min_size ]; then - if [ -s $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc ] ; then - for fday in 0 1 2 3 4 5 6 7 8; do - fhr=$(($fday * 24)) - fhr2=$(printf "%02d" "${fhr}") - export fhr3=$(printf "%03d" "${fhr}") - INITDATE=$($NDATE -${fhr} ${VDATE}${vhr} | cut -c 1-8) - if [ -s $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc ] ; then - for vari in ${VARS}; do - export VAR=$vari - export VARupper=$(echo $VAR | tr '[a-z]' '[A-Z]') - mkdir -p $STATSDIR/$RUN.$VDATE/$VAR - if [ -s $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat ]; then - cpreq -v $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $STATSDIR/$RUN.$VDATE/$VAR/. - else - run_metplus.py -c ${PARMevs}/metplus_config/machine.conf \ - -c $CONFIGevs/$STEP/$COMPONENT/${VERIF_CASE}/GridStat_fcstRTOFS_obsSMAP_climoWOA23.conf - export err=$?; err_chk - if [ $SENDCOM = "YES" ]; then - mkdir -p $COMOUTsmall/$VAR - cpreq -v $STATSDIR/$RUN.$VDATE/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $COMOUTsmall/$VAR/. - fi - fi - done - else - echo "WARNING: Missing RTOFS f${fhr3} prog file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc" - fi - done - else - echo "WARNING: Missing RTOFS f000 ice file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc" - fi +if [ -s $DCOMROOT/$VDATE/validation_data/marine/smap/SP_D${JDATE}_Map_SATSSS_data_1day.nc ]; then + actual_size=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/smap/SP_D${JDATE}_Map_SATSSS_data_1day.nc") + if [ $actual_size -ge $min_size ]; then + if [ -s $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc ] ; then + for fday in 0 1 2 3 4 5 6 7 8; do + fhr=$(($fday * 24)) + fhr2=$(printf "%02d" "${fhr}") + export fhr3=$(printf "%03d" "${fhr}") + INITDATE=$($NDATE -${fhr} ${VDATE}${vhr} | cut -c 1-8) + if [ -s $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc ] ; then + for vari in ${VARS}; do + export VAR=$vari + export VARupper=$(echo $VAR | tr '[a-z]' '[A-Z]') + mkdir -p $STATSDIR/$RUN.$VDATE/$VAR + if [ -s $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat ]; then + cpreq -v $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $STATSDIR/$RUN.$VDATE/$VAR/. + else + run_metplus.py -c ${PARMevs}/metplus_config/machine.conf \ + -c $CONFIGevs/$STEP/$COMPONENT/${VERIF_CASE}/GridStat_fcstRTOFS_obsSMAP_climoWOA23.conf + export err=$?; err_chk + if [ $SENDCOM = "YES" ]; then + mkdir -p $COMOUTsmall/$VAR + cpreq -v $STATSDIR/$RUN.$VDATE/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $COMOUTsmall/$VAR/. + fi + fi + done + else + echo "WARNING: Missing RTOFS f${fhr3} prog file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc" + fi + done + else + echo "WARNING: Missing RTOFS f000 ice file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc" + fi + else + echo "WARNING: Missing SMAP data file for $VDATE: $DCOMROOT/$VDATE/validation_data/marine/smap/SP_D${JDATE}_Map_SATSSS_data_1day.nc" + if [ $SENDMAIL = YES ] ; then + export subject="SMAP Data Missing for EVS RTOFS" + echo "Warning: No SMAP data was available for valid date $VDATE." > mailmsg + echo "Missing file is $DCOMROOT/$VDATE/validation_data/marine/smap/SP_D${JDATE}_Map_SATSSS_data_1day.nc." >> mailmsg + cat mailmsg | mail -s "$subject" $MAILTO + fi + + fi else echo "WARNING: Missing SMAP data file for $VDATE: $DCOMROOT/$VDATE/validation_data/marine/smap/SP_D${JDATE}_Map_SATSSS_data_1day.nc" if [ $SENDMAIL = YES ] ; then @@ -90,7 +101,7 @@ for vari in ${VARS}; do export VARupper=$(echo $VAR | tr '[a-z]' '[A-Z]') export STATSOUT=$STATSDIR/$RUN.$VDATE/$VAR mkdir -p $STATSOUT - VAR_file_count=$(find $STATSOUT -type f -name "*.stat" |wc -l) + VAR_file_count=$(find $STATSOUT -type f -name "*.stat" |wc -l) if [[ $VAR_file_count -ne 0 ]]; then # sum small stat files into one big file using Stat_Analysis run_metplus.py -c ${PARMevs}/metplus_config/machine.conf \ diff --git a/scripts/stats/rtofs/exevs_rtofs_smos_stats.sh b/scripts/stats/rtofs/exevs_rtofs_smos_stats.sh index 26616a66d5..7b549224d1 100755 --- a/scripts/stats/rtofs/exevs_rtofs_smos_stats.sh +++ b/scripts/stats/rtofs/exevs_rtofs_smos_stats.sh @@ -40,49 +40,59 @@ fi # check if obs file exists; send alert email if not export JDATE=$(date2jday.sh $VDATE) min_size=2404 -actual_size=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/smos/SM_D${JDATE}_Map_SATSSS_data_1day.nc") -if [ -s $DCOMROOT/$VDATE/validation_data/marine/smos/SM_D${JDATE}_Map_SATSSS_data_1day.nc ] && [ $actual_size -ge $min_size ]; then - if [ -s $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc ] ; then - for fday in 0 1 2 3 4 5 6 7 8; do - fhr=$(($fday * 24)) - fhr2=$(printf "%02d" "${fhr}") - export fhr3=$(printf "%03d" "${fhr}") - INITDATE=$($NDATE -${fhr} ${VDATE}${vhr} | cut -c 1-8) - if [ -s $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc ] ; then - for vari in ${VARS}; do - export VAR=$vari - export VARupper=$(echo $VAR | tr '[a-z]' '[A-Z]') - mkdir -p $STATSDIR/$RUN.$VDATE/$VAR - if [ -s $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat ]; then - cpreq -v $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $STATSDIR/$RUN.$VDATE/$VAR/. - else - run_metplus.py -c ${PARMevs}/metplus_config/machine.conf \ - -c $CONFIGevs/$STEP/$COMPONENT/${VERIF_CASE}/GridStat_fcstRTOFS_obsSMOS_climoWOA23.conf - export err=$?; err_chk - if [ $SENDCOM = "YES" ]; then - mkdir -p $COMOUTsmall/$VAR - cpreq -v $STATSDIR/$RUN.$VDATE/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $COMOUTsmall/$VAR/. - fi - fi - done - else - echo "WARNING: Missing RTOFS f${fhr3} prog file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc" - fi - done - else - echo "WARNING: Missing RTOFS f000 ice file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc" - fi +if [ -s $DCOMROOT/$VDATE/validation_data/marine/smos/SM_D${JDATE}_Map_SATSSS_data_1day.nc ] ; then + actual_size=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/smos/SM_D${JDATE}_Map_SATSSS_data_1day.nc") + if [ $actual_size -ge $min_size ]; then + if [ -s $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc ] ; then + for fday in 0 1 2 3 4 5 6 7 8; do + fhr=$(($fday * 24)) + fhr2=$(printf "%02d" "${fhr}") + export fhr3=$(printf "%03d" "${fhr}") + INITDATE=$($NDATE -${fhr} ${VDATE}${vhr} | cut -c 1-8) + if [ -s $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc ] ; then + for vari in ${VARS}; do + export VAR=$vari + export VARupper=$(echo $VAR | tr '[a-z]' '[A-Z]') + mkdir -p $STATSDIR/$RUN.$VDATE/$VAR + if [ -s $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat ]; then + cpreq -v $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $STATSDIR/$RUN.$VDATE/$VAR/. + else + run_metplus.py -c ${PARMevs}/metplus_config/machine.conf \ + -c $CONFIGevs/$STEP/$COMPONENT/${VERIF_CASE}/GridStat_fcstRTOFS_obsSMOS_climoWOA23.conf + export err=$?; err_chk + if [ $SENDCOM = "YES" ]; then + mkdir -p $COMOUTsmall/$VAR + cpreq -v $STATSDIR/$RUN.$VDATE/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $COMOUTsmall/$VAR/. + fi + fi + done + else + echo "WARNING: Missing RTOFS f${fhr3} prog file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc" + fi + done + else + echo "WARNING: Missing RTOFS f000 ice file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc" + fi + else + echo "WARNING: Missing SMOS data file for $VDATE: $DCOMROOT/$VDATE/validation_data/marine/smos/SM_D${JDATE}_Map_SATSSS_data_1day.nc" + if [ $SENDMAIL = YES ] ; then + export subject="SMOS Data Missing for EVS RTOFS" + echo "Warning: No SMOS data was available for valid date $VDATE." > mailmsg + echo "Missing file is $DCOMROOT/$VDATE/validation_data/marine/smos/SM_D${JDATE}_Map_SATSSS_data_1day.nc." >> mailmsg + cat mailmsg | mail -s "$subject" $MAILTO + fi + fi else - echo "WARNING: Missing SMOS data file for $VDATE: $DCOMROOT/$VDATE/validation_data/marine/smos/SM_D${JDATE}_Map_SATSSS_data_1day.nc" - if [ $SENDMAIL = YES ] ; then - export subject="SMOS Data Missing for EVS RTOFS" - echo "Warning: No SMOS data was available for valid date $VDATE." > mailmsg - echo "Missing file is $DCOMROOT/$VDATE/validation_data/marine/smos/SM_D${JDATE}_Map_SATSSS_data_1day.nc." >> mailmsg - cat mailmsg | mail -s "$subject" $MAILTO - - fi + echo "WARNING: Missing SMOS data file for $VDATE: $DCOMROOT/$VDATE/validation_data/marine/smos/SM_D${JDATE}_Map_SATSSS_data_1day.nc" + if [ $SENDMAIL = YES ] ; then + export subject="SMOS Data Missing for EVS RTOFS" + echo "Warning: No SMOS data was available for valid date $VDATE." > mailmsg + echo "Missing file is $DCOMROOT/$VDATE/validation_data/marine/smos/SM_D${JDATE}_Map_SATSSS_data_1day.nc." >> mailmsg + cat mailmsg | mail -s "$subject" $MAILTO + fi fi + # check if stat files exist for vari in ${VARS}; do export VAR=$vari From 83bdf61dbe91723072f8274cbd77a20470bf02c2 Mon Sep 17 00:00:00 2001 From: SamiraArdani-NOAA Date: Wed, 6 Dec 2023 22:15:43 +0000 Subject: [PATCH 02/11] Bugfix to prevent syntax errors. --- .../stats/rtofs/exevs_rtofs_ghrsst_stats.sh | 89 +++++++++++-------- 1 file changed, 50 insertions(+), 39 deletions(-) diff --git a/scripts/stats/rtofs/exevs_rtofs_ghrsst_stats.sh b/scripts/stats/rtofs/exevs_rtofs_ghrsst_stats.sh index cc04ad214b..d9e6d9b572 100755 --- a/scripts/stats/rtofs/exevs_rtofs_ghrsst_stats.sh +++ b/scripts/stats/rtofs/exevs_rtofs_ghrsst_stats.sh @@ -39,48 +39,59 @@ fi # check if obs file exists; send alert email if not min_size=2404 -actual_size=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/ghrsst/${VDATE}_OSPO_L4_GHRSST.nc") -if [ -s $DCOMROOT/$VDATE/validation_data/marine/ghrsst/${VDATE}_OSPO_L4_GHRSST.nc ] && [ $actual_size -ge $min_size ]; then - if [ -s $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc ] ; then - for fday in 0 1 2 3 4 5 6 7 8; do - fhr=$(($fday * 24)) - fhr2=$(printf "%02d" "${fhr}") - export fhr3=$(printf "%03d" "${fhr}") - INITDATE=$($NDATE -${fhr} ${VDATE}${vhr} | cut -c 1-8) - if [ -s $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc ] ; then - for vari in ${VARS}; do - export VAR=$vari - export VARupper=$(echo $VAR | tr '[a-z]' '[A-Z]') - mkdir -p $STATSDIR/$RUN.$VDATE/$VAR - if [ -s $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat ]; then - cpreq -v $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $STATSDIR/$RUN.$VDATE/$VAR/. - else - run_metplus.py -c ${PARMevs}/metplus_config/machine.conf \ - -c $CONFIGevs/$STEP/$COMPONENT/${VERIF_CASE}/GridStat_fcstRTOFS_obsGHRSST_climoWOA23.conf - export err=$?; err_chk - if [ $SENDCOM = "YES" ]; then - mkdir -p $COMOUTsmall/$VAR - cpreq -v $STATSDIR/$RUN.$VDATE/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $COMOUTsmall/$VAR/. - fi - fi - done - else - echo "WARNING: Missing RTOFS f${fhr3} prog file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc" - fi - done - else - echo "WARNING: Missing RTOFS f000 ice file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc" - fi +if [ -s $DCOMROOT/$VDATE/validation_data/marine/ghrsst/${VDATE}_OSPO_L4_GHRSST.nc ] ; then + actual_size=$(wc -c <"$DCOMROOT/$VDATE/validation_data/marine/ghrsst/${VDATE}_OSPO_L4_GHRSST.nc") + if [ $actual_size -ge $min_size ]; then + if [ -s $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc ] ; then + for fday in 0 1 2 3 4 5 6 7 8; do + fhr=$(($fday * 24)) + fhr2=$(printf "%02d" "${fhr}") + export fhr3=$(printf "%03d" "${fhr}") + INITDATE=$($NDATE -${fhr} ${VDATE}${vhr} | cut -c 1-8) + if [ -s $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc ] ; then + for vari in ${VARS}; do + export VAR=$vari + export VARupper=$(echo $VAR | tr '[a-z]' '[A-Z]') + mkdir -p $STATSDIR/$RUN.$VDATE/$VAR + if [ -s $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat ]; then + cpreq -v $COMOUTsmall/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $STATSDIR/$RUN.$VDATE/$VAR/. + else + run_metplus.py -c ${PARMevs}/metplus_config/machine.conf \ + -c $CONFIGevs/$STEP/$COMPONENT/${VERIF_CASE}/GridStat_fcstRTOFS_obsGHRSST_climoWOA23.conf + export err=$?; err_chk + if [ $SENDCOM = "YES" ]; then + mkdir -p $COMOUTsmall/$VAR + cpreq -v $STATSDIR/$RUN.$VDATE/$VAR/grid_stat_RTOFS_${RUNupper}_${VARupper}_${fhr2}0000L_${VDATE}_000000V.stat $COMOUTsmall/$VAR/. + fi + fi + done + else + echo "WARNING: Missing RTOFS f${fhr3} prog file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$INITDATE/$RUN/rtofs_glo_2ds_f${fhr3}_prog.$RUN.nc" + fi + done + else + echo "WARNING: Missing RTOFS f000 ice file for $VDATE: $COMIN/prep/$COMPONENT/rtofs.$VDATE/$RUN/rtofs_glo_2ds_f000_ice.$RUN.nc" + fi + else + echo "WARNING: Missing GHRSST data file for $VDATE: $DCOMROOT/$VDATE/validation_data/marine/ghrsst/${VDATE}_OSPO_L4_GHRSST.nc" + if [ $SENDMAIL = YES ] ; then + export subject="GHRSST OSPO Data Missing for EVS RTOFS" + echo "Warning: No GHRSST OSPO data was available for valid date $VDATE." > mailmsg + echo "Missing file is $DCOMROOT/$VDATE/validation_data/marine/ghrsst/${VDATE}_OSPO_L4_GHRSST.nc." >> mailmsg + cat mailmsg | mail -s "$subject" $MAILTO + fi + fi else - echo "WARNING: Missing GHRSST data file for $VDATE: $DCOMROOT/$VDATE/validation_data/marine/ghrsst/${VDATE}_OSPO_L4_GHRSST.nc" - if [ $SENDMAIL = YES ] ; then - export subject="GHRSST OSPO Data Missing for EVS RTOFS" - echo "Warning: No GHRSST OSPO data was available for valid date $VDATE." > mailmsg - echo "Missing file is $DCOMROOT/$VDATE/validation_data/marine/ghrsst/${VDATE}_OSPO_L4_GHRSST.nc." >> mailmsg - cat mailmsg | mail -s "$subject" $MAILTO - fi + echo "WARNING: Missing GHRSST data file for $VDATE: $DCOMROOT/$VDATE/validation_data/marine/ghrsst/${VDATE}_OSPO_L4_GHRSST.nc" + if [ $SENDMAIL = YES ] ; then + export subject="GHRSST OSPO Data Missing for EVS RTOFS" + echo "Warning: No GHRSST OSPO data was available for valid date $VDATE." > mailmsg + echo "Missing file is $DCOMROOT/$VDATE/validation_data/marine/ghrsst/${VDATE}_OSPO_L4_GHRSST.nc." >> mailmsg + cat mailmsg | mail -s "$subject" $MAILTO + fi fi + # check if stat files exist for vari in ${VARS}; do export VAR=$vari From ef8970e3675e4a1fef6b91b5d08ff871bc6dd091 Mon Sep 17 00:00:00 2001 From: SamiraArdani-NOAA Date: Wed, 6 Dec 2023 23:12:58 +0000 Subject: [PATCH 03/11] Minor typo was fixed. --- scripts/stats/rtofs/exevs_rtofs_smap_stats.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/stats/rtofs/exevs_rtofs_smap_stats.sh b/scripts/stats/rtofs/exevs_rtofs_smap_stats.sh index da166f6674..518487162d 100755 --- a/scripts/stats/rtofs/exevs_rtofs_smap_stats.sh +++ b/scripts/stats/rtofs/exevs_rtofs_smap_stats.sh @@ -111,7 +111,7 @@ for vari in ${VARS}; do cpreq -v $STATSOUT/evs.stats.${COMPONENT}.${RUN}.${VERIF_CASE}_${VAR}.v${VDATE}.stat $COMOUTfinal/. fi else - echo "WARNNG: Missing RTOFS_${RUNupper}_$VARupper stat files for $VDATE in $STATSDIR/$RUN.$VDATE/$VAR/*.stat" + echo "WARNING: Missing RTOFS_${RUNupper}_$VARupper stat files for $VDATE in $STATSDIR/$RUN.$VDATE/$VAR/*.stat" fi done From e44394872338674dff018f968aae55219fc864f4 Mon Sep 17 00:00:00 2001 From: SamiraArdani-NOAA Date: Tue, 19 Dec 2023 18:37:37 +0000 Subject: [PATCH 04/11] Bugfix based on Wei's comments. --- ecf/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.ecf | 2 +- ecf/scripts/prep/nfcens/jevs_nfcens_wave_grid2obs_prep.ecf | 2 +- ecf/scripts/stats/nfcens/jevs_nfcens_wave_grid2obs_stats.ecf | 2 +- scripts/plots/nfcens/exevs_nfcens_wave_grid2obs_plots.sh | 4 +++- scripts/stats/wafs/exevs_wafs_atmos_stats.sh | 2 -- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ecf/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.ecf b/ecf/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.ecf index edf1124a5f..59e4b8627a 100644 --- a/ecf/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.ecf +++ b/ecf/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.ecf @@ -1,4 +1,4 @@ -#PBS -N evs_nfcens_wave_plots +#PBS -N evs_nfcens_wave_grid2obs_plots #PBS -j oe #PBS -S /bin/bash #PBS -q %QUEUE% diff --git a/ecf/scripts/prep/nfcens/jevs_nfcens_wave_grid2obs_prep.ecf b/ecf/scripts/prep/nfcens/jevs_nfcens_wave_grid2obs_prep.ecf index 963cfa93f8..c9cff4d70e 100644 --- a/ecf/scripts/prep/nfcens/jevs_nfcens_wave_grid2obs_prep.ecf +++ b/ecf/scripts/prep/nfcens/jevs_nfcens_wave_grid2obs_prep.ecf @@ -1,4 +1,4 @@ -#PBS -N evs_nfcens_wave_prep +#PBS -N evs_nfcens_wave_grid2obs_prep #PBS -j oe #PBS -S /bin/bash #PBS -q %QUEUE% diff --git a/ecf/scripts/stats/nfcens/jevs_nfcens_wave_grid2obs_stats.ecf b/ecf/scripts/stats/nfcens/jevs_nfcens_wave_grid2obs_stats.ecf index ada9a59d9a..0d924fedcb 100644 --- a/ecf/scripts/stats/nfcens/jevs_nfcens_wave_grid2obs_stats.ecf +++ b/ecf/scripts/stats/nfcens/jevs_nfcens_wave_grid2obs_stats.ecf @@ -1,4 +1,4 @@ -#PBS -N evs_nfcens_wave_stats +#PBS -N evs_nfcens_wave_grid2obs_stats #PBS -j oe #PBS -S /bin/bash #PBS -q %QUEUE% diff --git a/scripts/plots/nfcens/exevs_nfcens_wave_grid2obs_plots.sh b/scripts/plots/nfcens/exevs_nfcens_wave_grid2obs_plots.sh index ff39e2d9db..a859ebc527 100755 --- a/scripts/plots/nfcens/exevs_nfcens_wave_grid2obs_plots.sh +++ b/scripts/plots/nfcens/exevs_nfcens_wave_grid2obs_plots.sh @@ -165,7 +165,9 @@ fi msg="JOB $job HAS COMPLETED NORMALLY." if [ $SENDDBN = YES ]; then - $DBNROOT/bin/dbn_alert MODEL EVS_RZDM $job ${COMOUTplots}/${NET}.${STEP}.${COMPONENT}.${RUN}.*.tar + for file in $(ls ${COMOUTplots}/${NET}.${STEP}.${COMPONENT}.${RUN}.*.tar);do + $DBNROOT/bin/dbn_alert MODEL EVS_RZDM $job $file + done fi diff --git a/scripts/stats/wafs/exevs_wafs_atmos_stats.sh b/scripts/stats/wafs/exevs_wafs_atmos_stats.sh index 28f4c4f045..cfd65102c8 100755 --- a/scripts/stats/wafs/exevs_wafs_atmos_stats.sh +++ b/scripts/stats/wafs/exevs_wafs_atmos_stats.sh @@ -10,8 +10,6 @@ set -x cd $DATA if [ -s wafs_stat.cmdfile ];then rm wafs_stat.cmdfile -else - echo "WARNING: wafs_stat.cmdfile DOES NOT EXIST" fi export DATAsemifinal=$DATA/semifinal From 04201a6cc46a929f28b5c51b190fd4cfb3f5780a Mon Sep 17 00:00:00 2001 From: SamiraArdani-NOAA Date: Tue, 19 Dec 2023 20:01:08 +0000 Subject: [PATCH 05/11] Bugfix for AQM based on Wei's comment. --- jobs/JEVS_AQM_PLOTS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jobs/JEVS_AQM_PLOTS b/jobs/JEVS_AQM_PLOTS index 2d4afb76dc..fb361a1c43 100755 --- a/jobs/JEVS_AQM_PLOTS +++ b/jobs/JEVS_AQM_PLOTS @@ -60,9 +60,9 @@ export mod_ver=${mod_ver:-${aqm_ver}} export VDATE=${VDATE:-${PDYm3}} -export COMIN=${COMIN:-$(compath.py ${envir}/com/${NET}/${evs_ver}/)} +export COMIN=${COMIN:-$(compath.py ${envir}/com/${NET}/${evs_ver})} export EVSINaqm=${EVSINaqm:-${COMIN}/stats/${COMPONENT}/${MODELNAME}} -export COMOUT=${COMOUT:-$(compath.py -o ${NET}/${evs_ver}/)} +export COMOUT=${COMOUT:-$(compath.py -o ${NET}/${evs_ver})} export COMOUTplots=${COMOUTplots:-${COMOUT}/${STEP}/${COMPONENT}/${RUN}.${VDATE}} export COMOUTheadline=${COMOUTheadline:-${COMOUT}/${STEP}/${COMPONENT}/headline.${VDATE}} mkdir -m 775 -p $COMOUT $COMOUTplots $COMOUTheadline From ee798bc90752679f2b1fbc52f37f125fd5af4054 Mon Sep 17 00:00:00 2001 From: SamiraArdani-NOAA Date: Tue, 19 Dec 2023 21:16:29 +0000 Subject: [PATCH 06/11] Bugfix for nfcens. --- ush/nfcens/evs_wave_leadaverages.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ush/nfcens/evs_wave_leadaverages.sh b/ush/nfcens/evs_wave_leadaverages.sh index 90d7aac2a7..9698fbfa6c 100755 --- a/ush/nfcens/evs_wave_leadaverages.sh +++ b/ush/nfcens/evs_wave_leadaverages.sh @@ -23,7 +23,10 @@ ptype='lead_average' export GRID2OBS_CONF="${PARMevs}/metplus_config/${STEP}/${COMPONENT}/${RUN}_${VERIF_CASE}" cd ${DATA} -mkdir ${DATA}/sfcshp +if [ ! -s ${DATA}/sfcshp ]; then + mkdir ${DATA}/sfcshp +fi + touch plot_all_${MODELNAME}_${RUN}_g2o_plots.sh # write the commands From 170c2c19f1743c54185e4fd9bdb130c1fd6e3161 Mon Sep 17 00:00:00 2001 From: SamiraArdani-NOAA Date: Tue, 19 Dec 2023 21:59:35 +0000 Subject: [PATCH 07/11] Bugfix to address Wei's comment. --- .../scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/drivers/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.sh b/dev/drivers/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.sh index 296acca1c9..1f39d56f51 100755 --- a/dev/drivers/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.sh +++ b/dev/drivers/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.sh @@ -1,4 +1,4 @@ -#PBS -N jevs_nfcens_grid2obs_plots +#PBS -N jevs_nfcens_wave_grid2obs_plots #PBS -j oe #PBS -S /bin/bash #PBS -q dev From 49db32d4935f933314967eb36967ab40a1d0ff8f Mon Sep 17 00:00:00 2001 From: SamiraArdani-NOAA Date: Tue, 19 Dec 2023 23:01:09 +0000 Subject: [PATCH 08/11] Bugfix for nfcens. --- ush/nfcens/evs_wave_leadaverages.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ush/nfcens/evs_wave_leadaverages.sh b/ush/nfcens/evs_wave_leadaverages.sh index 9698fbfa6c..5547b81add 100755 --- a/ush/nfcens/evs_wave_leadaverages.sh +++ b/ush/nfcens/evs_wave_leadaverages.sh @@ -23,10 +23,7 @@ ptype='lead_average' export GRID2OBS_CONF="${PARMevs}/metplus_config/${STEP}/${COMPONENT}/${RUN}_${VERIF_CASE}" cd ${DATA} -if [ ! -s ${DATA}/sfcshp ]; then - mkdir ${DATA}/sfcshp -fi - +mkdir -p ${DATA}/sfcshp touch plot_all_${MODELNAME}_${RUN}_g2o_plots.sh # write the commands From e0270ce2f87cb0961de6b101a56ce3bb2fa2173b Mon Sep 17 00:00:00 2001 From: SamiraArdani-NOAA Date: Wed, 20 Dec 2023 14:06:23 +0000 Subject: [PATCH 09/11] Bugfix- Job name was matched. --- .../scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/drivers/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.sh b/dev/drivers/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.sh index 1f39d56f51..d228b43499 100755 --- a/dev/drivers/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.sh +++ b/dev/drivers/scripts/plots/nfcens/jevs_nfcens_wave_grid2obs_plots.sh @@ -54,7 +54,7 @@ export COMOUT=${OUTPUTROOT}/${NET}/${evs_ver_2d} export run_mpi='yes' export gather='yes' -export job=${PBS_JOBNAME:-jevs_nfcens_grid2obs_plots} +export job=${PBS_JOBNAME:-jevs_nfcens_wave_grid2obs_plots} export jobid=$job.${PBS_JOBID:-$$} export TMPDIR=$DATAROOT export SITE=$(cat /etc/cluster_name) From d75eb42aa5ac074c6f3e5bf8db6b48648c734351 Mon Sep 17 00:00:00 2001 From: SamiraArdani-NOAA Date: Wed, 20 Dec 2023 15:05:00 +0000 Subject: [PATCH 10/11] err_chk was added after each ush run. --- scripts/plots/nfcens/exevs_nfcens_wave_grid2obs_plots.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/plots/nfcens/exevs_nfcens_wave_grid2obs_plots.sh b/scripts/plots/nfcens/exevs_nfcens_wave_grid2obs_plots.sh index a859ebc527..bfb4cb4299 100755 --- a/scripts/plots/nfcens/exevs_nfcens_wave_grid2obs_plots.sh +++ b/scripts/plots/nfcens/exevs_nfcens_wave_grid2obs_plots.sh @@ -97,10 +97,10 @@ fi ################################# ${USHevs}/${COMPONENT}/evs_wave_timeseries.sh - +export err=$?; err_chk ## lead_averages ${USHevs}/${COMPONENT}/evs_wave_leadaverages.sh - +export err=$?; err_chk chmod 775 plot_all_${MODELNAME}_${RUN}_g2o_plots.sh ########################################### From f92730a44996445fd49c2edf2a6c813277a479d7 Mon Sep 17 00:00:00 2001 From: SamiraArdani-NOAA Date: Wed, 20 Dec 2023 16:31:19 +0000 Subject: [PATCH 11/11] Bugfix for nfcens. --- ush/nfcens/evs_wave_timeseries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ush/nfcens/evs_wave_timeseries.sh b/ush/nfcens/evs_wave_timeseries.sh index a393580b7b..739434d077 100755 --- a/ush/nfcens/evs_wave_timeseries.sh +++ b/ush/nfcens/evs_wave_timeseries.sh @@ -22,7 +22,7 @@ ptype='time_series' export GRID2OBS_CONF="${PARMevs}/metplus_config/${STEP}/${COMPONENT}/${RUN}_${VERIF_CASE}" cd ${DATA} -mkdir ${DATA}/sfcshp +mkdir -p ${DATA}/sfcshp touch plot_all_${MODELNAME}_${RUN}_g2o_plots.sh # write the commands