Skip to content

Commit

Permalink
Add option to use netcdf quantization (#1990)
Browse files Browse the repository at this point in the history
* Convert tests to use netcdf quantize options
  • Loading branch information
DusanJovic-NOAA authored Nov 27, 2023
1 parent f431fbe commit f6918a1
Show file tree
Hide file tree
Showing 18 changed files with 12,395 additions and 6,841 deletions.
2 changes: 1 addition & 1 deletion FV3
2 changes: 1 addition & 1 deletion tests/bl_date.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export BL_DATE=20231117
export BL_DATE=20231122
4 changes: 2 additions & 2 deletions tests/default_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export OUTPUT_GRID="'cubed_sphere_grid'"
export OUTPUT_FILE="'netcdf'"
export ZSTANDARD_LEVEL=0
export IDEFLATE=0
export NBITS=0
export QUANTIZE_NSD=0
export ICHUNK2D=0
export JCHUNK2D=0
export ICHUNK3D=0
Expand Down Expand Up @@ -1172,7 +1172,7 @@ export FILENAME_BASE="'atm' 'sfc'"
export OUTPUT_GRID="'regional_latlon'"
export OUTPUT_FILE="'netcdf'"
export IDEFLATE=0
export NBITS=0
export QUANTIZE_NSD=0
export NFHOUT=3
export NFHMAX_HF=-1
export NFHOUT_HF=3
Expand Down
2,204 changes: 1,023 additions & 1,181 deletions tests/logs/RegressionTests_acorn.log

Large diffs are not rendered by default.

1,699 changes: 869 additions & 830 deletions tests/logs/RegressionTests_gaea.log

Large diffs are not rendered by default.

2,327 changes: 1,183 additions & 1,144 deletions tests/logs/RegressionTests_hera.log

Large diffs are not rendered by default.

8,026 changes: 6,812 additions & 1,214 deletions tests/logs/RegressionTests_hercules.log

Large diffs are not rendered by default.

1,420 changes: 710 additions & 710 deletions tests/logs/RegressionTests_jet.log

Large diffs are not rendered by default.

2,105 changes: 1,068 additions & 1,037 deletions tests/logs/RegressionTests_orion.log

Large diffs are not rendered by default.

1,426 changes: 713 additions & 713 deletions tests/logs/RegressionTests_wcoss2.log

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion tests/parm/model_configure.IN
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ output_grid: @[OUTPUT_GRID]
output_file: @[OUTPUT_FILE]
zstandard_level: @[ZSTANDARD_LEVEL]
ideflate: @[IDEFLATE]
nbits: @[NBITS]
quantize_mode: 'quantize_bitround'
quantize_nsd: @[QUANTIZE_NSD]
ichunk2d: @[ICHUNK2D]
jchunk2d: @[JCHUNK2D]
ichunk3d: @[ICHUNK3D]
Expand Down
3 changes: 2 additions & 1 deletion tests/parm/model_configure_atmaq.IN
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ dt_atmos: @[DT_ATMOS]
restart_interval: @[RESTART_INTERVAL]
write_dopost: @[WRITE_DOPOST]
ideflate: @[IDEFLATE]
nbits: @[NBITS]
quantize_mode: 'quantize_bitround'
quantize_nsd: @[QUANTIZE_NSD]
quilting: @[QUILTING]

write_groups: @[WRITE_GROUP]
Expand Down
3 changes: 2 additions & 1 deletion tests/parm/model_configure_fhout.IN
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ filename_base: @[FILENAME_BASE]
output_grid: @[OUTPUT_GRID]
output_file: @[OUTPUT_FILE]
ideflate: @[IDEFLATE]
nbits: @[NBITS]
quantize_mode: 'quantize_bitround'
quantize_nsd: @[QUANTIZE_NSD]
imo: @[IMO]
jmo: @[JMO]

Expand Down
3 changes: 2 additions & 1 deletion tests/parm/model_configure_hafs.IN
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ ichunk3d: -1
jchunk3d: -1
kchunk3d: -1
ideflate: @[IDEFLATE]
nbits: @[NBITS]
quantize_mode: 'quantize_bitround'
quantize_nsd: @[QUANTIZE_NSD]

output_grid: @[OUTPUT_GRID] # gaussian_grid, global_latlon, regional_latlon[_moving], rotated_latlon[_moving], lambert_conformal, cubed_sphere_grid
imo: @[IMO] # number of grid points along longitude/latitude direction
Expand Down
3 changes: 2 additions & 1 deletion tests/parm/model_configure_rrfs_conus13km.IN
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ num_files: @[NUM_FILES]
filename_base: @[FILENAME_BASE]
output_file: @[OUTPUT_FILE]
ideflate: @[IDEFLATE]
nbits: @[NBITS]
quantize_mode: 'quantize_bitround'
quantize_nsd: @[QUANTIZE_NSD]
ichunk3d: @[ICHUNK3D]
jchunk3d: @[JCHUNK3D]
kchunk3d: @[KCHUNK3D]
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/control_c768
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export IOVR=3
export IMO=3072
export JMO=1536
export IDEFLATE=1
export NBITS=14
export QUANTIZE_NSD=14
export ICHUNK3D=${IMO}
export JCHUNK3D=${JMO}
export KCHUNK3D=1
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/control_wrtGauss_netcdf_parallel
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export IAER=5111
export IOVR=3
export OUTPUT_FILE="'netcdf_parallel' 'netcdf_parallel'"
export IDEFLATE=1
export NBITS=14
export QUANTIZE_NSD=14

export FV3_RUN=control_run.IN
export CCPP_SUITE=FV3_GFS_v16
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/control_wrtGauss_netcdf_parallel_debug
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export IAER=5111
export IOVR=3
export OUTPUT_FILE="'netcdf_parallel' 'netcdf_parallel'"
export IDEFLATE=1
export NBITS=14
export QUANTIZE_NSD=14
export OUTPUT_FH="0 1"

export FV3_RUN=control_run.IN
Expand Down

0 comments on commit f6918a1

Please sign in to comment.