Skip to content

Commit 5e82460

Browse files
Merge pull request #375 from mgharamti/dartlab_rh
Fixing rank histogram calculations in DART-LAB
2 parents cbe0d41 + 39affb9 commit 5e82460

File tree

5 files changed

+10
-145
lines changed

5 files changed

+10
-145
lines changed

.github/workflows/release.yml

-140
This file was deleted.

CHANGELOG.rst

+5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ individual files.
2222

2323
The changes are now listed with the most recent at the top.
2424

25+
**July 21 2022 :: Bug-fix for DART_LAB rank histograms. Tag: v10.0.4**
26+
27+
- Fixes DART_LAB prior and posterior rank histogram calculation.
28+
2529
**July 14 2022 :: Performance improvement - removal of redundant caching. Tag: v10.0.3**
30+
2631
- Reduces the runtime by removing redundant caching in the get_close_obs_cached and
2732
get_close_state_cached subroutines in assim_tools_mod.f90
2833

conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
author = 'Data Assimilation Research Section'
2222

2323
# The full version, including alpha/beta/rc tags
24-
release = '10.0.3'
24+
release = '10.0.4'
2525
master_doc = 'README'
2626

2727
# -- General configuration ---------------------------------------------------

guide/DART_LAB/matlab/run_lorenz_96.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ function step_ahead()
844844
temp_rank(:, 2) = 0;
845845

846846
% Compute the prior rank histograms
847-
for i = 1:handles.ens_size
847+
for i = 1:handles.model_size
848848
ens_rank = get_ens_rank(squeeze(handles.prior(new_time, i, :)), squeeze(new_truth(i)));
849849
handles.prior_rank(ens_rank) = handles.prior_rank(ens_rank) + 1;
850850
temp_rank(ens_rank, 2) = temp_rank(ens_rank, 2) + 1;
@@ -937,7 +937,7 @@ function step_ahead()
937937
temp_rank(:, 2) = 0;
938938

939939
% Compute the posterior rank histograms
940-
for i = 1:handles.ens_size
940+
for i = 1:handles.model_size
941941
ens_rank = get_ens_rank(squeeze(handles.posterior(time, i, :)), ...
942942
squeeze(handles.true_state(time, i)));
943943
handles.posterior_rank(ens_rank) = handles.posterior_rank(ens_rank) + 1;

guide/DART_LAB/matlab/run_lorenz_96_inf.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ function step_ahead()
13181318
temp_rank(:, 2) = 0;
13191319

13201320
% Compute the prior rank histograms
1321-
for i = 1:handles.ens_size
1321+
for i = 1:handles.model_size
13221322
ens_rank = get_ens_rank(squeeze(handles.prior(new_time, i, :)), ...
13231323
squeeze(new_truth(i)));
13241324
handles.prior_rank(ens_rank) = handles.prior_rank(ens_rank) + 1;
@@ -1455,7 +1455,7 @@ function step_ahead()
14551455
temp_rank(:, 2) = 0;
14561456

14571457
% Compute the posterior rank histograms
1458-
for i = 1:handles.ens_size
1458+
for i = 1:handles.model_size
14591459
ens_rank = get_ens_rank(squeeze(handles.posterior(time, i, :)), ...
14601460
squeeze(handles.true_state(time, i)));
14611461
handles.posterior_rank(ens_rank) = handles.posterior_rank(ens_rank) + 1;

0 commit comments

Comments
 (0)