Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New ocean/ice B diag #1050

Merged
merged 30 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
30f3634
wip
guillaumevernieres Feb 27, 2024
a651fa4
wip
guillaumevernieres Feb 27, 2024
27a408b
using FH's lambda, but still wip
guillaumevernieres Feb 29, 2024
4dc9d4f
wip
guillaumevernieres Feb 29, 2024
89c00e2
produces credible results but needs tidy
guillaumevernieres Mar 5, 2024
37288e7
ctests ok
guillaumevernieres Mar 5, 2024
f607b59
Merge branch 'develop' into feature/diagb
guillaumevernieres Mar 5, 2024
f8a77a3
norms
guillaumevernieres Mar 5, 2024
cfdcc20
wip
guillaumevernieres Mar 8, 2024
6c67e1f
wip
guillaumevernieres Mar 8, 2024
7fb6d22
wip
guillaumevernieres Mar 11, 2024
54914eb
working halo update
guillaumevernieres Mar 12, 2024
d8007ee
more options
guillaumevernieres Mar 20, 2024
92a1197
wip, unrealistic near-shore analysis
guillaumevernieres Mar 29, 2024
284930a
wip
guillaumevernieres Apr 1, 2024
80d9e48
std dev fctn
guillaumevernieres Apr 2, 2024
4e3edc0
Merge branch 'develop' into feature/diagb
guillaumevernieres Apr 2, 2024
6b42112
fixed pe with 0 variance
guillaumevernieres Apr 2, 2024
8a18811
code tidy
guillaumevernieres Apr 3, 2024
2f40286
Merge branch 'develop' into feature/diagb
guillaumevernieres Apr 16, 2024
522d7d2
wip
guillaumevernieres Apr 16, 2024
9f64fae
Merge branch 'develop' into feature/diagb
guillaumevernieres Apr 16, 2024
fd6a571
code tidy
guillaumevernieres Apr 16, 2024
7004016
Merge branch 'develop' into feature/diagb
guillaumevernieres Apr 16, 2024
5ee0fe0
Update exgdas_global_marine_analysis_bmat.sh
guillaumevernieres Apr 17, 2024
423117a
Merge branch 'develop' into feature/diagb
guillaumevernieres Apr 17, 2024
f455a69
added back hybrid
guillaumevernieres Apr 17, 2024
1927c9e
Merge branch 'develop' into feature/diagb
guillaumevernieres Apr 17, 2024
a123fa4
Merge branch 'develop' into feature/diagb
guillaumevernieres Apr 18, 2024
f8e45ba
Merge branch 'develop' into feature/diagb
CoryMartin-NOAA Apr 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 0 additions & 101 deletions parm/soca/berror/saber_blocks.yaml

This file was deleted.

59 changes: 59 additions & 0 deletions parm/soca/berror/soca_diagb.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
geometry:
mom6_input_nml: mom_input.nml
fields metadata: ./fields_metadata.yaml

date: '{{ ATM_WINDOW_MIDDLE }}'

background:
date: '{{ ATM_WINDOW_MIDDLE }}'
basename: ./bkg/
ocn_filename: '{{ RUN }}.ocean.t{{ gcyc }}z.inst.f009.nc'
ice_filename: '{{ RUN }}.agg_ice.t{{ gcyc }}z.inst.f009.nc'
read_from_file: 1

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

variables:
name: [tocn, socn, uocn, vocn, hocn, ssh, cicen, hicen, hsnon, mom6_mld]

rescale: 2.0 # rescales the filtered std. dev. by "rescale"
min sst: 0.0 # Added to sst bkg. err.
max ssh: 0.0 # Limits the amplitude of the unbalanced bkg err
number of halo points: 4
number of neighbors: 16
simple smoothing:
horizontal iterations: 2
vertical iterations: 1

# TODO(G): Start using when the normalization is optional
#diffusion:
# saber block name: EXPLICIT_DIFFUSION
# active variables: [tocn, socn, ssh, cicen, hicen, hsnon]
# geometry:
# mom6_input_nml: mom_input.nml
# fields metadata: ./fields_metadata.yaml
# group mapping:
# - name: ocean
# variables:
# - tocn
# - socn
# - ssh
# - name: ice
# variables:
# - cicen
# - hicen
# - hsnon
# read:
# groups:
# - name: ocean
# horizontal:
# filename: hz_ocean.nc
# vertical:
# filename: vt_ocean.nc
# - name: ice
# horizontal:
# filename: hz_ice.nc
92 changes: 92 additions & 0 deletions parm/soca/berror/soca_hybrid_bmat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
covariance model: hybrid
components:
- covariance:
covariance model: SABER
saber central block:
saber block name: EXPLICIT_DIFFUSION
active variables: [tocn, socn, ssh, cicen]
geometry:
mom6_input_nml: mom_input.nml
fields metadata: ./fields_metadata.yaml
AndrewEichmann-NOAA marked this conversation as resolved.
Show resolved Hide resolved
group mapping:
- name: ocean
variables:
- tocn
- socn
- ssh
- name: ice
variables:
- cicen
read:
groups:
- name: ocean
horizontal:
filename: hz_ocean.nc
vertical:
filename: vt_ocean.nc
- name: ice
horizontal:
filename: hz_ice.nc

saber outer blocks:
- saber block name: StdDev
read:
model file:
date: '{{ATM_WINDOW_MIDDLE}}'
basename: ./
ocn_filename: 'ocn.bkgerr_stddev.incr.{{ATM_WINDOW_MIDDLE}}.nc'
ice_filename: 'ice.bkgerr_stddev.incr.{{ATM_WINDOW_MIDDLE}}.nc'
read_from_file: 3

linear variable change:
input variables: [cicen, hicen, hsnon, socn, tocn, uocn, vocn, ssh]
output variables: [cicen, hicen, hsnon, socn, tocn, uocn, vocn, ssh]
linear variable changes:
- linear variable change name: BalanceSOCA

weight:
value: 1.00

- covariance:
covariance model: ensemble
members from template:
template:
read_from_file: 1
date: '{{ATM_WINDOW_MIDDLE}}'
basename: ./static_ens/
AndrewEichmann-NOAA marked this conversation as resolved.
Show resolved Hide resolved
ocn_filename: 'ocn.pert.steric.%mem%.nc'
ice_filename: 'ice.%mem%.nc'
state variables: [tocn, socn, ssh, uocn, vocn, cicen, hicen, hsnon]
pattern: '%mem%'
nmembers: ${ENS_SIZE}
localization:
localization method: SABER
saber central block:
saber block name: EXPLICIT_DIFFUSION
active variables: [tocn, socn, ssh]
geometry:
mom6_input_nml: mom_input.nml
fields metadata: ./fields_metadata.yaml
AndrewEichmann-NOAA marked this conversation as resolved.
Show resolved Hide resolved
group mapping:
- name: ocean
variables: [tocn, socn, ssh, uocn, vocn]
- name: ice
variables: [cicen, hicen, hsnon]
read:
groups:
- name: ocean
multivariate strategy: duplicated
horizontal:
filename: hz_ocean.nc
vertical:
strategy: duplicated
- name: ice
horizontal:
filename: hz_ice.nc

weight:
read_from_file: 3
basename: ./
ocn_filename: 'ocn.ens_weights.incr.{{ATM_WINDOW_MIDDLE}}.nc'
ice_filename: 'ice.ens_weights.incr.{{ATM_WINDOW_MIDDLE}}.nc'
date: '{{ATM_WINDOW_MIDDLE}}'
4 changes: 3 additions & 1 deletion parm/soca/berror/soca_parameters_diffusion_vt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ background error:
- name: vt_ocean
vertical:
as gaussian: true
fixed value: 5.0
from file:
filename: vt_scales.nc
variable name: vt
write:
filename: vt_ocean.nc
42 changes: 42 additions & 0 deletions parm/soca/berror/soca_static_bmat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
covariance model: SABER
saber central block:
saber block name: EXPLICIT_DIFFUSION
active variables: [tocn, socn, ssh, cicen]
geometry:
mom6_input_nml: mom_input.nml
fields metadata: ./fields_metadata.yaml
AndrewEichmann-NOAA marked this conversation as resolved.
Show resolved Hide resolved
group mapping:
- name: ocean
variables:
- tocn
- socn
- ssh
- name: ice
variables:
- cicen
read:
groups:
- name: ocean
horizontal:
filename: hz_ocean.nc
vertical:
filename: vt_ocean.nc
- name: ice
horizontal:
filename: hz_ice.nc

saber outer blocks:
- saber block name: StdDev
read:
model file:
date: '{{ATM_WINDOW_MIDDLE}}'
basename: ./
ocn_filename: 'ocn.bkgerr_stddev.incr.{{ATM_WINDOW_MIDDLE}}.nc'
ice_filename: 'ice.bkgerr_stddev.incr.{{ATM_WINDOW_MIDDLE}}.nc'
read_from_file: 3

linear variable change:
input variables: [cicen, hicen, hsnon, socn, tocn, uocn, vocn, ssh]
output variables: [cicen, hicen, hsnon, socn, tocn, uocn, vocn, ssh]
linear variable changes:
- linear variable change name: BalanceSOCA
13 changes: 13 additions & 0 deletions parm/soca/berror/soca_vtscales.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
gridspec_filename: soca_gridspec.nc
restart_filename: ./INPUT/MOM.res.nc
mld_filename: 'ocn.bkgerr_stddev.incr.{{ ATM_WINDOW_MIDDLE }}.nc'
output_filename: ./vt_scales.nc
output_variable_vt: vt
output_variable_hz: hz

VT_MIN: 5
VT_MAX: 15

HZ_ROSSBY_MULT: 1.0
HZ_MAX: 200e3
HZ_MIN_GRID_MULT: 2.0
Loading
Loading