From 1b2130c582619d029102306439b58981bd34a360 Mon Sep 17 00:00:00 2001 From: Charlie Marshak Date: Fri, 2 Feb 2024 08:56:55 -0800 Subject: [PATCH] remove zlib from string and iterable writes --- isce2_topsapp/packaging_utils/nc_packaging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isce2_topsapp/packaging_utils/nc_packaging.py b/isce2_topsapp/packaging_utils/nc_packaging.py index 1fa2a35f..4648ac58 100755 --- a/isce2_topsapp/packaging_utils/nc_packaging.py +++ b/isce2_topsapp/packaging_utils/nc_packaging.py @@ -133,7 +133,7 @@ def write_dataset(fid,data,properties_data): else: if isinstance(data,str): - dset = fid.createVariable(properties_data.name, str, ('matchup',), zlib=True) + dset = fid.createVariable(properties_data.name, str, ('matchup',)) dset[0]=data elif isinstance(data,np.ndarray): # make sure the _fillvalue is formatted the same as the data_type @@ -156,7 +156,7 @@ def write_dataset(fid,data,properties_data): dset[:] = data elif isinstance(data, collections.abc.Iterable): if isinstance(data[0],str): - dset = fid.createVariable(properties_data.name, str, ('matchup',), zlib=True) + dset = fid.createVariable(properties_data.name, str, ('matchup',)) count = 0 for data_line in data: dset[count]=data_line