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

Enable netCDF compression by default. #4

Merged
merged 1 commit into from
Jun 30, 2017
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
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