From 9b12f02b68febe5ec8cedc364f889a9a09ca2f93 Mon Sep 17 00:00:00 2001 From: Jess <20195932+wrongkindofdoctor@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:27:31 -0500 Subject: [PATCH] change compression to compressor in netCDF.3.translate zarr.create_dataset call --- kerchunk/netCDF3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kerchunk/netCDF3.py b/kerchunk/netCDF3.py index d43b6b97..5df2d9eb 100644 --- a/kerchunk/netCDF3.py +++ b/kerchunk/netCDF3.py @@ -197,7 +197,7 @@ def translate(self): dtype=var.data.dtype, fill_value=fill, chunks=shape, - compression=None, + compressor=None, ) part = ".".join(["0"] * len(shape)) or "0" k = f"{dim}/{part}" @@ -251,7 +251,7 @@ def translate(self): dtype=base, fill_value=fill, chunks=(1,) + dtype.shape, - compression=None, + compressor=None, ) arr.attrs.update( {