diff --git a/scripts/exregional_archive.ksh b/scripts/exregional_archive.ksh index ae7fd221e..b13710bf0 100755 --- a/scripts/exregional_archive.ksh +++ b/scripts/exregional_archive.ksh @@ -2,9 +2,10 @@ module load hpss -day=`date -u "+%d" -d "-1 day"` -month=`date -u "+%m" -d "-1 day"` -year=`date -u "+%Y" -d "-1 day"` +currentime=$(echo "${CDATE}" | sed 's/\([[:digit:]]\{2\}\)$/ \1/') +day=$(date +%d -d "${currentime} 24 hours ago") +month=$(date +%m -d "${currentime} 24 hours ago") +year=$(date +%Y -d "${currentime} 24 hours ago") . ${GLOBAL_VAR_DEFNS_FP} @@ -37,7 +38,7 @@ if [[ $runcount -gt 0 ]];then if [[ -e ${COMOUT_BASEDIR}/stage/$year$month$day$hour ]];then cd ${COMOUT_BASEDIR}/stage - htar -chvf $ARCHIVEDIR/$year/$month/$day/$year$month$day$hour.tar $year$month$day$hour + htar -chvf $ARCHIVEDIR/$year/$month/$day/post_$year$month$day$hour.tar $year$month$day$hour rm -rf $year$month$day$hour fi @@ -46,6 +47,21 @@ fi rmdir $COMOUT_BASEDIR/stage +cd ${NWGES_BASEDIR} +set -A YY `ls -d ${year}${month}${day}?? | sort -r` +runcount=${#YY[*]} +if [[ $runcount -gt 0 ]];then + + hsi mkdir -p $ARCHIVEDIR/$year/$month/$day + + for onerun in ${YY[*]};do + hour=$(echo $onerun | cut -c9-10 ) + htar -chvf $ARCHIVEDIR/$year/$month/$day/nwges_${onerun} ${onerun} + done + +fi + + dateval=`date` echo "Completed archive at "$dateval exit 0 diff --git a/scripts/exregional_nonvarcldanl.sh b/scripts/exregional_nonvarcldanl.sh index 42c986acf..cde59a0b1 100755 --- a/scripts/exregional_nonvarcldanl.sh +++ b/scripts/exregional_nonvarcldanl.sh @@ -213,14 +213,14 @@ fi process_bufr_path=${CYCLE_DIR}/process_bufr${cycle_tag} -obs_files_source[0]=${process_bufr_path}/LightningInFV3LAM.dat -obs_files_target[0]=LightningInFV3LAM.dat +obs_files_source[0]=${process_bufr_path}/NASALaRC_cloud4fv3.bin +obs_files_target[0]=NASALaRC_cloud4fv3.bin -obs_files_source[1]=${process_bufr_path}/NASALaRC_cloud4fv3.bin -obs_files_target[1]=NASALaRC_cloud4fv3.bin +obs_files_source[1]=${process_bufr_path}/fv3_metarcloud.bin +obs_files_target[1]=fv3_metarcloud.bin -obs_files_source[2]=${process_bufr_path}/fv3_metarcloud.bin -obs_files_target[2]=fv3_metarcloud.bin +obs_files_source[2]=${process_bufr_path}/LightningInFV3LAM.dat +obs_files_target[2]=LightningInFV3LAM.dat obs_number=${#obs_files_source[@]} for (( i=0; i<${obs_number}; i++ )); @@ -276,7 +276,8 @@ fi if [ ${DO_ENKF_RADAR_REF} == "TRUE" ]; then l_qnr_from_qr=".true." fi -if [ ${DO_ENVAR_RADAR_REF} == "TRUE" ]; then +if [ -r "${cycle_dir}/anal_radardbz_gsi${cycle_tag}/stdout" ]; then + l_precip_clear_only=".true." l_qnr_from_qr=".true." fi diff --git a/scripts/exregional_run_analysis.sh b/scripts/exregional_run_analysis.sh index 4ed419866..1cd2fd240 100755 --- a/scripts/exregional_run_analysis.sh +++ b/scripts/exregional_run_analysis.sh @@ -348,12 +348,8 @@ if [ ${regional_ensemble_option:-1} -eq 5 ] && [ ${BKTYPE} != 1 ]; then print_info_msg "$VERBOSE" "Do hybrid with FV3LAM ensemble" ifhyb=.true. print_info_msg "$VERBOSE" " Cycle ${YYYYMMDDHH}: GSI hybrid uses FV3LAM ensemble with n_ens=${nummem}" - if [ ${ob_type} == "conv" ]; then - grid_ratio_ens="3" - fi - if [ ${ob_type} == "radardbz" ]; then - grid_ratio_ens="1" - fi + grid_ratio_ens="1" + ens_fast_read=.true. else nummem=$(more filelist03 | wc -l) nummem=$((nummem - 3 )) @@ -485,7 +481,11 @@ else if [ ${ob_type} == "radardbz" ]; then - obs_files_source[0]=${cycle_dir}/process_radarref/00/Gridded_ref.nc + if [ ${cycle_type} == "spinup" ]; then + obs_files_source[0]=${cycle_dir}/process_radarref_spinup/00/Gridded_ref.nc + else + obs_files_source[0]=${cycle_dir}/process_radarref/00/Gridded_ref.nc + fi obs_files_target[0]=dbzobs.nc fi @@ -615,7 +615,6 @@ if [[ ${gsi_type} == "ANALYSIS" && ${ob_type} == "radardbz" ]]; then ens_v=-0.30125 readin_localization=.false. q_hyb_ens=.true. - ens_fast_read=.true. if_model_dbz=.true. fi CONVINFO=${FIX_GSI}/${CONVINFO_FN} diff --git a/scripts/exregional_save_restart.sh b/scripts/exregional_save_restart.sh index 2f00b5806..e399297ed 100755 --- a/scripts/exregional_save_restart.sh +++ b/scripts/exregional_save_restart.sh @@ -111,9 +111,6 @@ restart_prefix=${save_yyyy}${save_mm}${save_dd}.${save_hh}0000 if [ ! -r ${nwges_dir}/INPUT/gfs_ctrl.nc ]; then cp_vrfy $run_dir/INPUT/gfs_ctrl.nc ${nwges_dir}/INPUT/gfs_ctrl.nc if [ -r ${run_dir}/INPUT/coupler.res ]; then # warm start - for file in ${filelist}; do - cp_vrfy $run_dir/INPUT/${file} ${nwges_dir}/INPUT/${file} - done if [ "${IO_LAYOUT_Y}" == "1" ]; then for file in ${filelistn}; do cp_vrfy $run_dir/INPUT/${file} ${nwges_dir}/INPUT/${file} @@ -127,6 +124,9 @@ if [ ! -r ${nwges_dir}/INPUT/gfs_ctrl.nc ]; then done done fi + for file in ${filelist}; do + cp_vrfy $run_dir/INPUT/${file} ${nwges_dir}/INPUT/${file} + done else # cold start for file in ${filelistcold}; do cp_vrfy $run_dir/INPUT/${file} ${nwges_dir}/INPUT/${file} @@ -134,9 +134,6 @@ if [ ! -r ${nwges_dir}/INPUT/gfs_ctrl.nc ]; then fi fi if [ -r "$run_dir/RESTART/${restart_prefix}.coupler.res" ]; then - for file in ${filelist}; do - mv_vrfy $run_dir/RESTART/${restart_prefix}.${file} ${nwges_dir}/RESTART/${restart_prefix}.${file} - done if [ "${IO_LAYOUT_Y}" == "1" ]; then for file in ${filelistn}; do mv_vrfy $run_dir/RESTART/${restart_prefix}.${file} ${nwges_dir}/RESTART/${restart_prefix}.${file} @@ -150,6 +147,9 @@ if [ -r "$run_dir/RESTART/${restart_prefix}.coupler.res" ]; then done done fi + for file in ${filelist}; do + mv_vrfy $run_dir/RESTART/${restart_prefix}.${file} ${nwges_dir}/RESTART/${restart_prefix}.${file} + done echo " ${fhr} forecast from ${yyyymmdd}${hh} is ready " #> ${nwges_dir}/RESTART/restart_done_f${fhr} else @@ -167,9 +167,6 @@ else ( \"${FCST_LEN_HRS_thiscycle}\") " if [ -r "$run_dir/RESTART/coupler.res" ] && [ ${fhr} -eq ${FCST_LEN_HRS_thiscycle} ] ; then - for file in ${filelist}; do - mv_vrfy $run_dir/RESTART/${file} ${nwges_dir}/RESTART/${restart_prefix}.${file} - done if [ "${IO_LAYOUT_Y}" == "1" ]; then for file in ${filelistn}; do mv_vrfy $run_dir/RESTART/${file} ${nwges_dir}/RESTART/${restart_prefix}.${file} @@ -183,6 +180,9 @@ else done done fi + for file in ${filelist}; do + mv_vrfy $run_dir/RESTART/${file} ${nwges_dir}/RESTART/${restart_prefix}.${file} + done echo " ${fhr} forecast from ${yyyymmdd}${hh} is ready " #> ${nwges_dir}/RESTART/restart_done_f${fhr} else echo "This forecast hour does not need to save restart: ${yyyymmdd}${hh}f${fhr}" diff --git a/ush/templates/FV3LAM_wflow.xml b/ush/templates/FV3LAM_wflow.xml index a068dfafa..a4359d81f 100644 --- a/ush/templates/FV3LAM_wflow.xml +++ b/ush/templates/FV3LAM_wflow.xml @@ -147,7 +147,7 @@ tasks; and the "FCST" type is used for the RUN_FCST_TN task. {%- endif %} {%- if partition_graphics is not none %} {%- if do_ens_graphics %} -&ACCOUNT;&QUEUE_GRAPHICS;{{ partition_graphics }}&RRFS_POST_RESERVE;"> +&SERVICE_ACCOUNT;&QUEUE_GRAPHICS;{{ partition_graphics }}&RRFS_POST_RESERVE;"> {%- else %} &SERVICE_ACCOUNT;&QUEUE_GRAPHICS;{{ partition_graphics }}&RRFS_POST_RESERVE;"> {%- endif %} @@ -1037,21 +1037,9 @@ MODULES_RUN_TASK_FP script. - - - {%- for h in cycl_hrs_hyb_fv3lam_ens %} + {%- for h in cycl_hrs_hyb_fv3lam_ens %} {{ h }}@H - {%- endfor %} - - {% for h in range(1, num_ens_members+1) %} - &RRFSE_FG_ROOT;/@Y@m@d@H/mem{{ "%04d" % h }}/fcst_fv3lam/RESTART/@Y@m@d.@H0000.coupler.res - {%- endfor %} - - - {%- for h in cycl_hrs_hyb_fv3lam_ens %} - {{ h }}@H - {%- endfor %} - + {%- endfor %} @@ -1142,12 +1130,24 @@ MODULES_RUN_TASK_FP script. {%- endif %} - {%- elif do_envar_radar_ref %} - {%- else %} - + + + + {%- for h in cycl_hrs_hyb_fv3lam_ens %} + {{ h }}@H + {%- endfor %} + + + + + {%- for h in cycl_hrs_hyb_fv3lam_ens %} + {{ h }}@H + {%- endfor %} + + + {%- endif %} - @@ -1315,6 +1315,13 @@ MODULES_RUN_TASK_FP script. + + + + + + {% for h in range(0, postproc_long_len_hrs+1) %}{{ " %03d" % h }}{% endfor %} + {% for h in range(0, postproc_len_hrs+1) %}{{ " normal" }}{% endfor %} {% for h in range(postproc_len_hrs+1, postproc_long_len_hrs+1) %}{{ " long" }}{% endfor %} @@ -1343,7 +1350,6 @@ MODULES_RUN_TASK_FP script. - {% if do_bufrsnd %} @@ -1609,12 +1615,13 @@ MODULES_RUN_TASK_FP script. &JOBSDIR;/../scripts/exregional_archive.ksh 1 - 04:00:00 + 08:00:00 24G &TAG;_&ARCHIVE_TN; &LOGDIR;/&ARCHIVE_TN;_@Y@m@d@H.log GLOBAL_VAR_DEFNS_FP&GLOBAL_VAR_DEFNS_FP; + CDATE@Y@m@d@H {%- endif %}