Skip to content

Commit

Permalink
updated writing encoding for FutureWarning (closes #18) (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Jul 11, 2019
1 parent 1fcd7ad commit 8605b61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rioxarray/rioxarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,8 @@ def reproject(
coords=_make_coords(self._obj, dst_affine, dst_width, dst_height, dst_crs),
dims=tuple(dst_dims),
attrs=new_attrs,
encoding=self._obj.encoding,
)
xda.encoding = self._obj.encoding
return add_spatial_ref(xda, dst_crs, DEFAULT_GRID_MAP)

def reproject_match(self, match_data_array, resampling=Resampling.nearest):
Expand Down Expand Up @@ -890,8 +890,8 @@ def interpolate_na(self, method="nearest"):
coords=self._obj.coords,
dims=self._obj.dims,
attrs=self._obj.attrs,
encoding=self._obj.encoding,
)
interp_array.encoding = self._obj.encoding

# make sure correct attributes preserved & projection added
_add_attrs_proj(interp_array, self._obj)
Expand Down
1 change: 1 addition & 0 deletions sphinx/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ History
0.0.6
-----
- Add support for scalar coordinates in reproject (issue #15)
- Updated writing encoding for FutureWarning (issue #18)

0.0.5
-----
Expand Down

0 comments on commit 8605b61

Please sign in to comment.