diff --git a/src/Applications/GEOSdas_App/GEOSdas.csm b/src/Applications/GEOSdas_App/GEOSdas.csm index a908d734..145e9373 100755 --- a/src/Applications/GEOSdas_App/GEOSdas.csm +++ b/src/Applications/GEOSdas_App/GEOSdas.csm @@ -78,6 +78,7 @@ # - Revise multi-incremental approach for 4d-analysis # (cost goes down with successive updates) # - Temporarily leaving test lines commented out +# 8Dec2021 Sienkiewicz - add option for 'cleanup_tail' for aircraft bias correction #----------------------------------------------------------------------------- # @@ -115,6 +116,7 @@ if ( !($?BOOTSTRAP) ) setenv BOOTSTRAP 0 if ( !($?CENTRAL_AGCM_PARALLEL) ) setenv CENTRAL_AGCM_PARALLEL 0 if ( !($?CHECK_DMF) ) setenv CHECK_DMF 1 + if ( !($?CLEANUP_TAIL) ) setenv CLEANUP_TAIL 0 if ( !($?CONVPROG) ) setenv CONVPROG 0 if ( !($?CONVSFC) ) setenv CONVSFC 0 if ( !($?CONVUPA) ) setenv CONVUPA 0 @@ -913,11 +915,15 @@ exit 1 echo 'Setting aircraft_t_bc_ext to true, using external bias correction' breaksw case 2: - echo "s/>>>AIRCFT_BIAS<<> sed_file + set cftstring = "aircraft_t_bc=.true.," + if ( $CLEANUP_TAIL ) set cftstring = "$cftstring cleanup_tail=.true.," + echo "s/>>>AIRCFT_BIAS<<> sed_file echo 'Setting aircraft_t_bc to true, using VV.VV^2 bias correction' breaksw case 3: - echo "s/>>>AIRCFT_BIAS<<> sed_file + set cftstring = "aircraft_t_bc_pof=.true.," + if ( $CLEANUP_TAIL ) set cftstring = "$cftstring cleanup_tail=.true.," + echo "s/>>>AIRCFT_BIAS<<> sed_file echo 'Setting aircraft_t_bc_pof to true, using POF bias correction' breaksw default: @@ -1128,11 +1134,15 @@ exit 1 echo 'Setting aircraft_t_bc_ext to true, using external bias correction' breaksw case 2: - echo "s/>>>AIRCFT_BIAS<<> sed_file + set cftstring = "aircraft_t_bc=.true.," + if ( $CLEANUP_TAIL ) set cftstring = "$cftstring cleanup_tail=.true.," + echo "s/>>>AIRCFT_BIAS<<> sed_file echo 'Setting aircraft_t_bc to true, using VV.VV^2 bias correction' breaksw case 3: - echo "s/>>>AIRCFT_BIAS<<> sed_file + set cftstring = "aircraft_t_bc_pof.true.," + if ( $CLEANUP_TAIL ) set cftstring = "$cftstring cleanup_tail=.true.," + echo "s/>>>AIRCFT_BIAS<<> sed_file echo 'Setting aircraft_t_bc_pof to true, using POF bias correction' breaksw default: diff --git a/src/Applications/GSI_App/fvssi b/src/Applications/GSI_App/fvssi index 05793097..7afdbc05 100755 --- a/src/Applications/GSI_App/fvssi +++ b/src/Applications/GSI_App/fvssi @@ -53,6 +53,7 @@ if ( !($?ANA4DUPD_IAU0_ONLY) ) setenv ANA4DUPD_IAU0_ONLY 0 # assume 4d increment if ( !($?ANGLEBC) ) setenv ANGLEBC 0 if ( !($?BATCH_SUBCMD) ) setenv BATCH_SUBCMD "sbatch" + if ( !($?CLEANUP_TAIL) ) setenv CLEANUP_TAIL 0 if ( !($?DATAMOVE_CONSTRAINT) ) setenv DATAMOVE_CONSTRAINT NULL if ( !($?INCSENS) ) setenv INCSENS 0 if ( !($?GSI_NETCDF_DIAG) ) setenv GSI_NETCDF_DIAG 0 @@ -742,11 +743,15 @@ echo 'Setting aircraft_t_bc_ext to true, using external bias correction' breaksw case 2: - echo "s/>>>AIRCFT_BIAS<<> sed_file + set cftstring = "aircraft_t_bc=.true.," + if ( $CLEANUP_TAIL ) set cftstring = "$cftstring cleanup_tail=.true.," + echo "s/>>>AIRCFT_BIAS<<> sed_file echo 'Setting aircraft_t_bc to true, using VV.VV^2 bias correction' breaksw case 3: - echo "s/>>>AIRCFT_BIAS<<> sed_file + set cftstring = "aircraft_t_bc_pof=.true.," + if ( $CLEANUP_TAIL ) set cftstring = "$cftstring cleanup_tail=.true.," + echo "s/>>>AIRCFT_BIAS<<> sed_file echo 'Setting aircraft_t_bc_pof to true, using POF bias correction' breaksw default: @@ -842,11 +847,15 @@ echo 'Setting aircraft_t_bc_ext to true, using external bias correction' breaksw case 2: - echo "s/>>>AIRCFT_BIAS<<> sed_file + set cftstring = "aircraft_t_bc=.true.," + if ( $CLEANUP_TAIL ) set cftstring = "$cftstring cleanup_tail=.true.," + echo "s/>>>AIRCFT_BIAS<<> sed_file echo 'Setting aircraft_t_bc to true, using VV.VV^2 bias correction' breaksw case 3: - echo "s/>>>AIRCFT_BIAS<<> sed_file + set cftstring = "aircraft_t_bc_pof=.true.," + if ( $CLEANUP_TAIL ) set cftstring = "$cftstring cleanup_tail=.true.," + echo "s/>>>AIRCFT_BIAS<<> sed_file echo 'Setting aircraft_t_bc_pof to true, using POF bias correction' breaksw default: @@ -984,6 +993,7 @@ ENVIRONMENT VARIABLES ENVIRONMENT VARIABLES (optional) ACFTBIAS sets aircraft bias correction + CLEANUP_TAIL triggers cleanup of aircraft coefficient file ANASENS trigger for analysis sensitivity (obs impact) INCSENS allows running adjoint GSI with analysis increment for input DO4DVAR trigger for 4DVAR-related features