Skip to content

Commit

Permalink
Per #2665, update logic of mode_conv.pl to handle newly added MODE CT…
Browse files Browse the repository at this point in the history
…S columns.
  • Loading branch information
JohnHalleyGotway committed Aug 23, 2023
1 parent 704d805 commit a199e4e
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions internal/test_unit/perl/mode_conv.pl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# tools
#
# last revised: 2016-09-17 for MET version 6.0
# last revised: 2023-08-22 for MET version 12.0
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

Expand Down Expand Up @@ -38,7 +39,7 @@ ()
CURVATURE_RATIO COMPLEXITY_RATIO PERCENTILE_INTENSITY_RATIO INTEREST);

my @fld_ctss = qw(N_VALID GRID_RES FIELD TOTAL FY_OY FY_ON FN_OY FN_ON BASER FMEAN ACC FBIAS PODY PODN POFD FAR
CSI GSS HK HSS ODDS);
CSI GSS HK HSS ODDS LODDS ORSS EDS SEDS EDI SEDI BAGSS);

my $fmt_hdr =
"%-8s" . # VERSION
Expand Down Expand Up @@ -133,7 +134,14 @@ ()
"%12s" . # GSS
"%12s" . # HK
"%12s" . # HSS
"%12s"; # ODDS
"%12s" . # ODDS
"%12s" . # LODDS
"%12s" . # ORSS
"%12s" . # EDS
"%12s" . # SEDS
"%12s" . # EDI
"%12s" . # SEDI
"%12s"; # BAGSS


if( 1 > @ARGV && 2 < @ARGV ){ die "ERROR: unexpected number of arguments\n\n" . usage() }
Expand Down Expand Up @@ -202,7 +210,7 @@ ()
# write a cts line
my $fmt_val;
if( $type eq "c" ){
push @outs, (" MODE_CTS ", @vals[2,3,22 .. 40]);
push @outs, (" MODE_CTS ", @vals[2,3,22 .. 47]);
$fmt_val = $fmt_cts;
}

Expand Down Expand Up @@ -307,3 +315,11 @@ ()
# 38 - HK
# 39 - HSS
# 40 - ODDS
# 41 - LODDS
# 42 - ORSS
# 43 - EDS
# 44 - SEDS
# 45 - EDI
# 46 - SEDI
# 47 - BAGSS

0 comments on commit a199e4e

Please sign in to comment.