Skip to content

Commit

Permalink
Enable netCDF compression by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Paulik authored and cpaulik committed Jun 30, 2017
1 parent 674a0fd commit 5385b87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

Version 0.4
===========

- Enable compression by default.

Version 0.3
===========

Expand Down
4 changes: 2 additions & 2 deletions repurpose/img2ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class that uses the read_img iterator of the input_data dataset
automatically, for images with irregular timestamp this will be ignored for now
zlib: boolean, optional
if True the saved netCDF files will be compressed
Default: False
Default: True
"""

def __init__(self, input_dataset, outputpath, startdate, enddate,
Expand All @@ -159,7 +159,7 @@ def __init__(self, input_dataset, outputpath, startdate, enddate,
r_methods='nn', r_weightf=None, r_min_n=1, r_radius=18000,
r_neigh=8, r_fill_values=None, filename_templ='%04d.nc',
gridname='grid.nc', global_attr=None, ts_attributes=None,
ts_dtypes=None, time_units="days since 1858-11-17 00:00:00", zlib=False):
ts_dtypes=None, time_units="days since 1858-11-17 00:00:00", zlib=True):

self.imgin = input_dataset
self.zlib = zlib
Expand Down

0 comments on commit 5385b87

Please sign in to comment.