Skip to content

Commit

Permalink
Merge pull request #242 from ceblanton/241.split-ncvars-diurnal
Browse files Browse the repository at this point in the history
Include 4-dimensional (i.e. diurnal) output in default split-vars processing
  • Loading branch information
ceblanton authored Sep 11, 2023
2 parents dcbfc10 + a494852 commit a504349
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions postprocessing/split_ncvars/split_ncvars.pl
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@
# generate variable list (if not user supplied)
if (!@varlist) {
if (!$Opt{STATIC}) {
print tailname($list_ncvars)." -t0123 $file\n" if $Opt{VERBOSE} > 1;
@varlist = split /\n/, `$list_ncvars -t0123 $file`;
print tailname($list_ncvars)." -t01234 $file\n" if $Opt{VERBOSE} > 1;
@varlist = split /\n/, `$list_ncvars -t01234 $file`;
} else {
print tailname($list_ncvars)." -s0123 $file\n" if $Opt{VERBOSE} > 1;
@varlist = split /\n/, `$list_ncvars -s0123 $file`;
Expand Down Expand Up @@ -789,7 +789,7 @@ sub variable_log {

open (OUT,"> $prtfile") || die "Cannot open $prtfile for output";

foreach my $var (split /\n/, `$list_ncvars -t0123 $ncfile`) {
foreach my $var (split /\n/, `$list_ncvars -t01234 $ncfile`) {
my @out;
$var =~ s/^\s+//; $var =~ s/\s+$//;
push @out, $var;
Expand Down

0 comments on commit a504349

Please sign in to comment.