From e9639142dec49d88ad11b33208d1ffac98a16a1d Mon Sep 17 00:00:00 2001 From: Jiarui Dong Date: Fri, 7 Jul 2023 15:46:50 -0400 Subject: [PATCH 1/2] Update snow DA cycling for the fractional grid setting. (#504) * Change the meta data override file for GFSv17 fractional grid option. * Replace variable "snwdph" with $(SNOWDEPTHVAR) for snwdph/snodl. * Remove the obselete yaml file. * Minor changes. * Minor changes. * Assign the obs error in the yaml files. * Change state variable name from snwdph to snodl. --------- Co-authored-by: Cory Martin --- parm/land/letkfoi/letkfoi.yaml | 4 ++-- parm/land/obs/config/adpsfc_snow.yaml | 6 ++++++ test/land/letkfoi_snowda.sh | 2 +- ush/land/genYAML_output_letkfoi.yaml | 9 ++++++++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/parm/land/letkfoi/letkfoi.yaml b/parm/land/letkfoi/letkfoi.yaml index 0dc764978..11db7a94d 100644 --- a/parm/land/letkfoi/letkfoi.yaml +++ b/parm/land/letkfoi/letkfoi.yaml @@ -28,7 +28,7 @@ background: template: datetime: '{{ current_cycle | to_isotime }}' filetype: fms restart - state variables: [snwdph,vtype,slmsk] + state variables: [snodl,vtype,slmsk] datapath: $(DATA)/bkg/mem%mem%/RESTART filename_sfcd: '{{ current_cycle | to_fv3time }}.sfc_data.nc' filename_cplr: '{{ current_cycle | to_fv3time }}.coupler.res' @@ -56,5 +56,5 @@ output increment: filetype: fms restart filename_sfcd: '{{ current_cycle | to_fv3time }}.sfc_data.nc' filename_cplr: '{{ current_cycle | to_fv3time }}.coupler.res' - state variables: [snwdph,vtype,slmsk] + state variables: [snodl,vtype,slmsk] diff --git a/parm/land/obs/config/adpsfc_snow.yaml b/parm/land/obs/config/adpsfc_snow.yaml index a7c69752e..a7c08eb74 100644 --- a/parm/land/obs/config/adpsfc_snow.yaml +++ b/parm/land/obs/config/adpsfc_snow.yaml @@ -86,6 +86,12 @@ obs filters: damping_factor_1: 1.0 damping_factor_2: 1.0 background_error_group: BkgError + - filter: Perform Action + filter variables: + - name: totalSnowDepth + action: + name: assign error + error parameter: 40.0 - filter: Variable Assignment assignments: - name: GrossErrorProbability/totalSnowDepth diff --git a/test/land/letkfoi_snowda.sh b/test/land/letkfoi_snowda.sh index 8747241c0..aecf2f62c 100755 --- a/test/land/letkfoi_snowda.sh +++ b/test/land/letkfoi_snowda.sh @@ -19,7 +19,7 @@ WORKDIR=$project_binary_dir/test/land/letkfoi_snowda RSTDIR=$GDASAPP_TESTDATA/lowres/gdas.$GYMD/$GHR/model_data/atmos/restart export OBSDIR=$GDASAPP_TESTDATA/land -GFSv17=${GFSv17:-"NO"} +GFSv17=${GFSv17:-"YES"} DAtype=letkfoi_snow if [ $GFSv17 == "YES" ]; then diff --git a/ush/land/genYAML_output_letkfoi.yaml b/ush/land/genYAML_output_letkfoi.yaml index 67ade909e..b55c3618a 100644 --- a/ush/land/genYAML_output_letkfoi.yaml +++ b/ush/land/genYAML_output_letkfoi.yaml @@ -10,7 +10,7 @@ background: filename_sfcd: 20210323.180000.sfc_data.nc filetype: fms restart state variables: - - snwdph + - snodl - vtype - slmsk zero padding: '3' @@ -119,6 +119,13 @@ observations: min_latitude: '-90' min_longitude: '-180' use_legacy_buddy_collector: 'false' + # Assign obsError. + - filter: Perform Action + filter variables: + - name: totalSnowDepth + action: + name: assign error + error parameter: 40.0 - assignments: - name: GrossErrorProbability/totalSnowDepth type: float From 78d5873e24899bd321bf4485bf8c31e6f53a1e66 Mon Sep 17 00:00:00 2001 From: Jiarui Dong Date: Mon, 10 Jul 2023 16:55:36 -0400 Subject: [PATCH 2/2] Remove FRAC_GRID for consistency with G-W. (#527) --- parm/land/letkfoi/apply_incr_nml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parm/land/letkfoi/apply_incr_nml.j2 b/parm/land/letkfoi/apply_incr_nml.j2 index 2dac08157..39765a5d3 100644 --- a/parm/land/letkfoi/apply_incr_nml.j2 +++ b/parm/land/letkfoi/apply_incr_nml.j2 @@ -2,7 +2,7 @@ date_str = "{{ current_cycle | to_YMD }}", hour_str = "{{ current_cycle | strftime('%H') }}", res = {{ CASE[1:] }}, - frac_grid = {{ FRAC_GRID | to_f90bool }}, + frac_grid = .true., rst_path = "{{ DATA }}/anl", inc_path = "{{ DATA }}/anl", orog_path = "{{ HOMEgfs }}/fix/orog/{{ CASE }}",