Skip to content

Commit

Permalink
Marine ens. var. (#1353)
Browse files Browse the repository at this point in the history
Companion PR to NOAA-EMC/global-workflow#3041

This PR needs an update to `jcb-gdas`
(NOAA-EMC/jcb-gdas#46)
  • Loading branch information
guillaumevernieres authored Dec 3, 2024
1 parent 4f50d78 commit d91663b
Show file tree
Hide file tree
Showing 12 changed files with 374 additions and 446 deletions.
98 changes: 27 additions & 71 deletions parm/soca/berror/soca_ensrecenter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,104 +4,60 @@ geometry:
mom6_input_nml: mom_input.nml
fields metadata: ./fields_metadata.yaml

date: '{{ ATM_WINDOW_BEGIN }}'
date: '{{ MARINE_WINDOW_END_ISO }}'

layers variable: [hocn]
layers variable: [sea_water_cell_thickness]

# TODO(AFE) fix ice recentering in cycled da
#increment variables: [tocn, socn, uocn, vocn, ssh, hocn, cicen, hicen, hsnon]
increment variables: [tocn, socn, uocn, vocn, ssh, hocn]

set increment variables to zero: [ssh]
increment variables:
- sea_water_potential_temperature
- sea_water_salinity
- eastward_sea_water_velocity
- northward_sea_water_velocity
set increment variables to zero:
- eastward_sea_water_velocity
- northward_sea_water_velocity

vertical geometry:
date: '{{ ATM_WINDOW_BEGIN }}'
date: '{{ MARINE_WINDOW_BEGIN_ISO }}'
basename: ./INPUT/
ocn_filename: MOM.res.nc
read_from_file: 3

add recentering increment: false
add recentering increment: true
recentering around deterministic: true

soca increments: # Could also be states, but they are read as increments
number of increments: {{ NMEM_ENS }}
pattern: '%mem%'
template:
date: '{{ ATM_WINDOW_BEGIN }}'
date: '{{ MARINE_WINDOW_END_ISO }}'
basename: ./ens/
ocn_filename: 'ocean.%mem%.nc'
# TODO(AFE) fix ice recentering in cycled da
# TODO(AFE) fix ice recentering in cycled da
# ice_filename: 'ice.%mem%.nc'
read_from_file: 3

steric height:
linear variable changes:
- linear variable change name: BalanceSOCA # Only the steric balance is applied

#ensemble mean output:
# datadir: ./static_ens
# date: '{{ ATM_WINDOW_BEGIN }}'
# exp: ens_mean
# type: incr

ssh output:
unbalanced:
datadir: ./
date: '{{ ATM_WINDOW_BEGIN }}'
exp: ssh_unbal_stddev
type: incr

steric:
datadir: ./
date: '{{ ATM_WINDOW_BEGIN }}'
exp: ssh_steric_stddev
type: incr

total:
datadir: ./
date: '{{ ATM_WINDOW_BEGIN }}'
exp: ssh_total_stddev
type: incr

explained variance:
datadir: ./
date: '{{ ATM_WINDOW_BEGIN }}'
exp: steric_explained_variance
type: incr

recentering error:
datadir: ./
date: '{{ ATM_WINDOW_BEGIN }}'
exp: ssh_recentering_error
type: incr

background error output:
datadir: ./
date: '{{ ATM_WINDOW_BEGIN }}'
exp: bkgerr_stddev
type: incr

#linear variable change:
# linear variable changes:
# - linear variable change name: BkgErrFILT
# ocean_depth_min: 500 # zero where ocean is shallower than 500m
# rescale_bkgerr: 1.0 # rescale perturbation
# efold_z: 1500.0 # Apply exponential decay
# - linear variable change name: BalanceSOCA

trajectory:
# TODO(AFE) fix ice recentering in cycled da
# state variables: [tocn, socn, uocn, vocn, ssh, hocn, layer_depth, mld, cicen, hicen, hsnon]
state variables: [tocn, socn, uocn, vocn, ssh, hocn, layer_depth, mld]
date: '{{ ATM_WINDOW_BEGIN }}'
basename: ./INPUT/
ocn_filename: MOM.res.nc
state variables:
- sea_water_potential_temperature
- sea_water_salinity
- eastward_sea_water_velocity
- northward_sea_water_velocity
- sea_water_cell_thickness
- sea_water_depth
- ocean_mixed_layer_thickness
date: '{{ MARINE_WINDOW_END_ISO }}'
basename: ./bkg/
ocn_filename: ocean.bkg.f009.nc
# TODO(AFE) fix ice recentering in cycled da
#ice_filename: cice.res.nc
read_from_file: 1

output increment:
datadir: ./
date: '{{ ATM_WINDOW_BEGIN }}'
date: '{{ MARINE_WINDOW_END_ISO }}'
exp: trash
type: incr
output file: 'ocn.recenter.incr.%mem%.nc'
Expand Down
92 changes: 0 additions & 92 deletions parm/soca/berror/soca_hybrid_bmat.yaml

This file was deleted.

7 changes: 4 additions & 3 deletions parm/soca/ensda/stage_ens_mem.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
# create working directories
######################################
mkdir:
- "{{ ENSPERT_RELPATH }}/ens"
- "{{ DATAens }}/ens"

######################################
# copy ensemble background files
######################################
Expand All @@ -21,6 +22,6 @@ copy:
'${YMD}':gPDY,
'${HH}':gcyc,
'${MEMDIR}':"mem" + '%03d' % mem} %}
- ["{{ COM_OCEAN_HISTORY_TMPL | replace_tmpl(tmpl_dict) }}/{{ GDUMP_ENS }}.ocean.t{{ gcyc }}z.inst.f006.nc", "{{ ENSPERT_RELPATH }}/ens/ocean.{{ mem }}.nc"]
- ["{{ COM_ICE_HISTORY_TMPL | replace_tmpl(tmpl_dict) }}/{{ GDUMP_ENS }}.ice.t{{ gcyc }}z.inst.f006.nc", "{{ ENSPERT_RELPATH }}/ens/ice.{{ mem }}.nc"]
- ["{{ COM_OCEAN_HISTORY_TMPL | replace_tmpl(tmpl_dict) }}/{{ GDUMP_ENS }}.ocean.t{{ gcyc }}z.inst.f006.nc", "{{ DATAens }}/ens/ocean.{{ mem }}.nc"]
- ["{{ COM_ICE_HISTORY_TMPL | replace_tmpl(tmpl_dict) }}/{{ GDUMP_ENS }}.ice.t{{ gcyc }}z.inst.f006.nc", "{{ DATAens }}/ens/ice.{{ mem }}.nc"]
{% endfor %}
8 changes: 3 additions & 5 deletions parm/soca/obsprep/obsprep_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ observations:
name: sst_viirs_npp_l3u
provider: GHRSST
dmpdir subdir: ocean/sst
type: nc
type: nc
dmpdir regex: '*-L3U_GHRSST-SSTsubskin-VIIRS_NPP-ACSPO_V*.nc'
bounds:
units: C
Expand Down Expand Up @@ -230,7 +230,7 @@ observations:
stride: 15
min number of obs: 10
ocean basin: RECCAP2_region_masks_all_v20221025.nc

# in situ: monthly
- obs space:
name: insitu_profile_bathy
Expand Down Expand Up @@ -285,7 +285,7 @@ observations:
name: insitu_surface_trkob
provider: GTS
dmpdir subdir: atmos
type: bufr
type: bufr
dmpdir regex: 'gdas.*.trkob.*.bufr_d'

# in situ: daily
Expand Down Expand Up @@ -316,5 +316,3 @@ observations:
dmpdir subdir: atmos
type: bufr
dmpdir regex: 'gdas.*.mbuoyb.*.bufr_d'


Loading

0 comments on commit d91663b

Please sign in to comment.