From 83215b7f38e7718dcb96949f0919f18d8315a753 Mon Sep 17 00:00:00 2001 From: Chris Blanton Date: Tue, 24 Sep 2024 15:27:38 -0400 Subject: [PATCH 1/3] #311 Remove 64-bit/NC3 output format options so that output format == input format --- postprocessing/split_ncvars/split_ncvars.pl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/postprocessing/split_ncvars/split_ncvars.pl b/postprocessing/split_ncvars/split_ncvars.pl index 69fe4600..91cc0fc2 100755 --- a/postprocessing/split_ncvars/split_ncvars.pl +++ b/postprocessing/split_ncvars/split_ncvars.pl @@ -66,17 +66,14 @@ my $ncrcat = `which ncrcat 2>&1`; die "Unable to locate ncrcat, cannot continue.\n" if $ncrcat =~ /(: no)|(not found)/; -chomp $ncrcat; $ncrcat .= " --64 -t 2 --header_pad 16384"; +chomp $ncrcat; $ncrcat .= " -t 2 --header_pad 16384"; my $ncks = `which ncks 2>&1`; die "Unable to locate ncks, cannot continue.\n" if $ncks =~ /(: no)|(not found)/; chomp $ncks; # NCO changed options between 4.5.4 and 4.5.5 and 4.6. Hopefully they stopped those schenanigans. my $tmp = qx{$ncks --version 2>&1}; -$ncks .= ($tmp =~ /4\.5\.4/ ? ' --64bit' - : $tmp =~ /4\.5\.5/ ? ' --64bit_offset' - : ' --fl_fmt=64bit_offset') - . ' --header_pad 16384'; +$ncks .= ' --header_pad 16384'; my $list_ncvars = `which list_ncvars.csh 2>&1`; die "Unable to locate list_ncvars.csh, cannot continue.\n" if $list_ncvars =~ /(: no)|(not found)/; From 7e74eb9c088d39ab6a3188dceb9febe5fbdee29d Mon Sep 17 00:00:00 2001 From: Chris Blanton Date: Tue, 24 Sep 2024 15:31:43 -0400 Subject: [PATCH 2/3] Increase split_ncvars Netcdf header pad to 64k 16k is probably too small and we used 128k in cmip6 --- postprocessing/split_ncvars/split_ncvars.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postprocessing/split_ncvars/split_ncvars.pl b/postprocessing/split_ncvars/split_ncvars.pl index 91cc0fc2..41967ddb 100755 --- a/postprocessing/split_ncvars/split_ncvars.pl +++ b/postprocessing/split_ncvars/split_ncvars.pl @@ -66,14 +66,14 @@ my $ncrcat = `which ncrcat 2>&1`; die "Unable to locate ncrcat, cannot continue.\n" if $ncrcat =~ /(: no)|(not found)/; -chomp $ncrcat; $ncrcat .= " -t 2 --header_pad 16384"; +chomp $ncrcat; $ncrcat .= " -t 2 --header_pad 65536"; my $ncks = `which ncks 2>&1`; die "Unable to locate ncks, cannot continue.\n" if $ncks =~ /(: no)|(not found)/; chomp $ncks; # NCO changed options between 4.5.4 and 4.5.5 and 4.6. Hopefully they stopped those schenanigans. my $tmp = qx{$ncks --version 2>&1}; -$ncks .= ' --header_pad 16384'; +$ncks .= ' --header_pad 65536'; my $list_ncvars = `which list_ncvars.csh 2>&1`; die "Unable to locate list_ncvars.csh, cannot continue.\n" if $list_ncvars =~ /(: no)|(not found)/; From 4d6bfd0e50a1cf367b5b4f85a210f756f0387cbc Mon Sep 17 00:00:00 2001 From: Chris Blanton Date: Mon, 30 Sep 2024 12:01:03 -0400 Subject: [PATCH 3/3] #311 remove unneeded check for ncks version --- postprocessing/split_ncvars/split_ncvars.pl | 2 -- 1 file changed, 2 deletions(-) diff --git a/postprocessing/split_ncvars/split_ncvars.pl b/postprocessing/split_ncvars/split_ncvars.pl index 41967ddb..ffdd89c6 100755 --- a/postprocessing/split_ncvars/split_ncvars.pl +++ b/postprocessing/split_ncvars/split_ncvars.pl @@ -71,8 +71,6 @@ my $ncks = `which ncks 2>&1`; die "Unable to locate ncks, cannot continue.\n" if $ncks =~ /(: no)|(not found)/; chomp $ncks; -# NCO changed options between 4.5.4 and 4.5.5 and 4.6. Hopefully they stopped those schenanigans. -my $tmp = qx{$ncks --version 2>&1}; $ncks .= ' --header_pad 65536'; my $list_ncvars = `which list_ncvars.csh 2>&1`;