Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable default compression of NetCDF files #2850

Merged
merged 2 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion perf/benchmark_netcdf_io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ for device in keys(timings)
NCDatasets.defDim(nc, "x", NUM)
NCDatasets.defDim(nc, "y", NUM)
NCDatasets.defDim(nc, "z", NUM)
v = NCDatasets.defVar(nc, "rhoa", Float32, ("time", "x", "y", "z"))
v = NCDatasets.defVar(nc, "rhoa", Float64, ("time", "x", "y", "z"))
outarray = Array(netcdf_writer.remappers["rhoa"]._interpolated_values)
v[1, :, :, :] = outarray

Expand Down
2 changes: 1 addition & 1 deletion src/diagnostics/netcdf_writer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ function NetCDFWriter(;
cspace,
num_points = (180, 90, 50),
disable_vertical_interpolation = false,
compression_level = 9,
compression_level = 0,
)
space = cspace
horizontal_space = Spaces.horizontal_space(space)
Expand Down
Loading