Skip to content

Commit

Permalink
Add berror yaml for diffusion correlation operator. (#1184)
Browse files Browse the repository at this point in the history
This PR adds the yaml template staticb_diffusion.yaml.j2 , to replace
the bump yaml in the global workflow.

---------

Co-authored-by: Cory Martin <cory.r.martin@noaa.gov>
  • Loading branch information
andytangborn and CoryMartin-NOAA committed Jun 20, 2024
1 parent 68797f5 commit 6f27a49
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parm/aero/berror/aero_diffusionparm.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ background error:
- horizontal:
fixed value: {{ horiz_len }}
write:
filepath: ./diffusion_hz
filepath: "{{ DATA }}/berror/diffusion_hz"
- vertical:
levels: {{ npz_ges }}
fixed value: {{ fixed_val }}
as gaussian: true
write:
filepath: ./diffusion_vt
filepath: "{{ DATA }}/berror/diffusion_hz"

33 changes: 33 additions & 0 deletions parm/aero/berror/staticb_diffusion.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
covariance model: SABER
saber central block:
saber block name: diffusion
read:
groups:
- variables: [mass_fraction_of_sulfate_in_air,
mass_fraction_of_hydrophobic_black_carbon_in_air,
mass_fraction_of_hydrophilic_black_carbon_in_air,
mass_fraction_of_hydrophobic_organic_carbon_in_air,
mass_fraction_of_hydrophilic_organic_carbon_in_air,
mass_fraction_of_dust001_in_air, mass_fraction_of_dust002_in_air,
mass_fraction_of_dust003_in_air, mass_fraction_of_dust004_in_air,
mass_fraction_of_dust005_in_air, mass_fraction_of_sea_salt001_in_air,
mass_fraction_of_sea_salt002_in_air, mass_fraction_of_sea_salt003_in_air,
mass_fraction_of_sea_salt004_in_air]
horizontal:
filepath: "{{ DATA }}/berror/diffusion_hz"
vertical:
levels: {{ npz_ges }}
filepath: "{{ DATA }}/berror/diffusion_vt"
saber outer blocks:
- saber block name: StdDev
read:
model file:
datetime: '{{ current_cycle | to_isotime }}'
set datetime on read: true
filetype: fms restart
psinfile: true
datapath: "{{ DATA }}/berror"
filename_core: '{{ current_cycle | to_fv3time }}.stddev.fv_core.res.nc'
filename_trcr: '{{ current_cycle | to_fv3time }}.stddev.fv_tracer.res.nc'
filename_cplr: '{{ current_cycle | to_fv3time }}.stddev.coupler.res'
date: '{{ current_cycle | to_isotime }}'

0 comments on commit 6f27a49

Please sign in to comment.