Skip to content

Commit

Permalink
Merge branch 'develop' into feature/stable-nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Nov 20, 2024
2 parents 9d73440 + 15c29b1 commit c98845b
Show file tree
Hide file tree
Showing 21 changed files with 171 additions and 6 deletions.
21 changes: 20 additions & 1 deletion parm/aero/berror/aero_diagb.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,26 @@ variables:
- mass_fraction_of_sea_salt003_in_air
- mass_fraction_of_sea_salt004_in_air

rescale: {{ aero_diagb_rescale }} # rescales the filtered std. dev. by "rescale"
global rescale:
geometry:
fms initialization:
namelist filename: ./fv3jedi/fmsmpp.nml
field table filename: ./fv3jedi/field_table
akbk: ./fv3jedi/akbk.nc4
layout:
- {{ layout_x }}
- {{ layout_y }}
nxp: {{ npx_rescale }}
npy: {{ npy_rescale }}
npz: {{ npz_ges }}
field metadata override: ./fv3jedi/fv3jedi_fieldmetadata_restart.yaml
rescale stddev:
filetype: fms restart
skip coupler file: true
dateapath: ./stddev
filename_trcr: rescale.fv_tracer.res.nc
filename_cplr: rescale.coupler.res

number of halo points: {{ aero_diagb_n_halo }}
number of neighbors: {{ aero_diagb_n_neighbors }}
simple smoothing:
Expand Down
5 changes: 5 additions & 0 deletions parm/soca/gridgen/gridgen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
geometry:
geom_grid_file: soca_gridspec.nc
mom6_input_nml: mom_input.nml
fields metadata: fields_metadata.yaml
rossby file: rossrad.nc
7 changes: 7 additions & 0 deletions parm/soca/obs/config/icec_amsu_mb_l2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ obs filters:
where:
- variable: {name: GeoVaLs/distance_from_coast}
minvalue: 100e3
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/icec_atms_n20_l2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ obs filters:
where:
- variable: {name: GeoVaLs/distance_from_coast}
minvalue: 100e3
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/icec_atms_n21_l2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ obs filters:
where:
- variable: {name: GeoVaLs/distance_from_coast}
minvalue: 100e3
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/icec_atms_npp_l2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ obs filters:
where:
- variable: {name: GeoVaLs/distance_from_coast}
minvalue: 100e3
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/icec_gmi_gpm_l2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ obs filters:
where:
- variable: {name: GeoVaLs/distance_from_coast}
minvalue: 100e3
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/icec_ssmis_f17_l2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ obs filters:
where:
- variable: {name: GeoVaLs/distance_from_coast}
minvalue: 100e3
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/icec_viirs_n20_l2_north.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ obs filters:
where:
- variable: {name: GeoVaLs/distance_from_coast}
minvalue: 100e3
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/icec_viirs_n20_l2_south.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ obs filters:
where:
- variable: {name: GeoVaLs/distance_from_coast}
minvalue: 100e3
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/insitu_profile_dbuoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ obs filters:
coefs:
- 1000.0

obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/insitu_profile_dbuoyb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ obs filters:
- ObsError/waterTemperature
coefs:
- 1000.0
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/insitu_profile_glider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ obs filters:
coefs:
- 1000.0

obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/insitu_profile_marinemammal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ obs filters:
- ObsError/waterTemperature
coefs:
- 1000.0
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/insitu_profile_mbuoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ obs filters:
- ObsError/waterTemperature
coefs:
- 1000.0
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/insitu_profile_mbuoyb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ obs filters:
- ObsError/waterTemperature
coefs:
- 1000.0
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/insitu_profile_tesac_salinity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ obs filters:
- ObsError/salinity
coefs:
- 1000.0
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/insitu_profile_xbtctd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ obs filters:
- ObsError/waterTemperature
coefs:
- 1000.0
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/insitu_surface_altkob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ obs filters:
- ObsError/seaSurfaceTemperature
coefs:
- 1000.0
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
7 changes: 7 additions & 0 deletions parm/soca/obs/config/insitu_surface_trkob_salinity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ obs filters:
- ObsError/seaSurfaceSalinity
coefs:
- 1000.0
obs localizations:
- localization method: Rossby
base value: 100.0e3
rossby mult: 1.0
min grid mult: 2.0
min value: 200.0e3
max value: 900.0e3
25 changes: 20 additions & 5 deletions utils/chem/chem_diagb.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,27 @@ namespace gdasapp {
}
}

// Rescale
if (fullConfig.has("rescale")) {
double rescale;
fullConfig.get("rescale", rescale);
util::multiplyFieldSet(bkgErrFs, rescale);
// Rescale
if (fullConfig.has("global rescale")) {
const eckit::LocalConfiguration GlobalRescaleConfig(fullConfig, "global rescale");
const eckit::LocalConfiguration GlobalRescaleGeomConfig(GlobalRescaleConfig, "geometry");
const fv3jedi::Geometry GlobalRescaleGeom(GlobalRescaleGeomConfig, this-> getComm());
fv3jedi::Increment global_rescale(GlobalRescaleGeom, chemVars, cycleDate);
global_rescale.zero();
const eckit::LocalConfiguration GlobalRescaleStdConfig(GlobalRescaleConfig,
"rescale stddev");
global_rescale.read(GlobalRescaleStdConfig);
// interpolate to background resolution
fv3jedi::Increment global_rescale_interp(geom, global_rescale);
atlas::FieldSet xrsFs;
global_rescale_interp.toFieldSet(xrsFs);
oops::Log::info() << "global rescaling coefficients:" << std::endl;
oops::Log::info() << xrsFs << std::endl;
util::multiplyFieldSets(bkgErrFs, xrsFs);
}



bkgErr.fromFieldSet(bkgErrFs);

// Hybrid B option
Expand Down Expand Up @@ -274,6 +288,7 @@ namespace gdasapp {
double rescale_staticb;
ClimBConfig.get("staticb rescaling factor", rescale_staticb);


// Combine diagb and climatological background errors
fv3jedi::Increment stddev_hybrid(geom, chemVars, cycleDate);
stddev_hybrid.zero();
Expand Down

0 comments on commit c98845b

Please sign in to comment.