diff --git a/scripts/exgdas_enkf_select_obs.sh b/scripts/exgdas_enkf_select_obs.sh index a8a0cf1b22..9be02ff768 100755 --- a/scripts/exgdas_enkf_select_obs.sh +++ b/scripts/exgdas_enkf_select_obs.sh @@ -72,7 +72,8 @@ cd $DATA || exit 8 ################################################################################ # ObsInput file from ensemble mean rm -f obs_input* -$NLN $SELECT_OBS obs_input.tar +rm -f obsinput.tar +$NLN $SELECT_OBS obsinput.tar # Whether to save or skip obs if [ $RUN_SELECT = "YES" -a $USE_SELECT = "NO" ]; then diff --git a/src/gsi/setupcldtot.F90 b/src/gsi/setupcldtot.F90 index 3f438ddd17..fc3978e3d2 100755 --- a/src/gsi/setupcldtot.F90 +++ b/src/gsi/setupcldtot.F90 @@ -922,7 +922,7 @@ subroutine init_netcdf_diag_ endif end if - call nc_diag_init(diag_conv_file) + call nc_diag_init(diag_conv_file, append=append_diag) if (.not. append_diag) then ! don't write headers on append - the module will break? call nc_diag_header("date_time",ianldate ) diff --git a/src/gsi/setuplwcp.f90 b/src/gsi/setuplwcp.f90 index a1f9e73d71..7e06144f68 100644 --- a/src/gsi/setuplwcp.f90 +++ b/src/gsi/setuplwcp.f90 @@ -759,7 +759,7 @@ subroutine init_netcdf_diag_ endif end if - call nc_diag_init(diag_conv_file) + call nc_diag_init(diag_conv_file, append=append_diag) if (.not. append_diag) then ! don't write headers on append - the module will break? call nc_diag_header("date_time",ianldate ) diff --git a/src/gsi/setupq.f90 b/src/gsi/setupq.f90 index 9302b891f2..77c43ba121 100644 --- a/src/gsi/setupq.f90 +++ b/src/gsi/setupq.f90 @@ -1073,7 +1073,7 @@ subroutine init_netcdf_diag_ endif end if - call nc_diag_init(diag_conv_file) + call nc_diag_init(diag_conv_file, append=append_diag) if (.not. append_diag) then ! don't write headers on append - the module will break? call nc_diag_header("date_time",ianldate ) diff --git a/src/gsi/setupswcp.f90 b/src/gsi/setupswcp.f90 index fe61fc40d8..c65ad1495c 100644 --- a/src/gsi/setupswcp.f90 +++ b/src/gsi/setupswcp.f90 @@ -804,7 +804,7 @@ subroutine init_netcdf_diag_ endif end if - call nc_diag_init(diag_conv_file) + call nc_diag_init(diag_conv_file, append=append_diag) if (.not. append_diag) then ! don't write headers on append - the module will break? call nc_diag_header("date_time",ianldate )