Skip to content

Commit

Permalink
Fix ordering of models in perfmetrics (#3275)
Browse files Browse the repository at this point in the history
  • Loading branch information
LisaBock authored Jul 6, 2023
1 parent c694d4c commit dfc7884
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions esmvaltool/diag_scripts/perfmetrics/collect.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ begin
end if
if (n_proj .gt. 1) then
id2 = ind(projectnames.eq.diag_script_info@project_order(1))
id2_mm = (/ind(data_all&models(id2) .eq. \
id2_mm = (/ind(data_temp&models(id2) .eq. \
diag_script_info@project_order(1) + "_mean"), \
ind(data_all&models(id2) .eq. \
ind(data_temp&models(id2) .eq. \
diag_script_info@project_order(1) + "_median") /)
if (any(ismissing(id2_mm))) then
id2_mm = -1
Expand All @@ -368,9 +368,9 @@ begin
end if
if (n_proj .gt. 2) then
id3 = ind(projectnames.eq.diag_script_info@project_order(2))
id3_mm = (/ind(data_all&models(id3) .eq. \
id3_mm = (/ind(data_temp&models(id3) .eq. \
diag_script_info@project_order(2) + "_mean"), \
ind(data_all&models(id3) .eq. \
ind(data_temp&models(id3) .eq. \
diag_script_info@project_order(2) + "_median") /)
if (any(ismissing(id3_mm))) then
id3_mm = -1
Expand Down

0 comments on commit dfc7884

Please sign in to comment.