Skip to content

Commit 8cd6187

Browse files
author
nicolasK
committed
release(v0.0.16)
1 parent b17c34f commit 8cd6187

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [0.0.16] - Unreleased
7+
## [0.0.16] - 2024-04-15
8+
9+
### Fixed
10+
11+
- Issue with time when resample between datacube and cloudmask datacube.
812

913
## [0.0.15] - 2024-04-11
1014

earthdaily/earthdatastore/cube_utils/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _impl(self, *args, **kwargs):
4242

4343

4444
def _match_xy_dims(src, dst, resampling=Resampling.nearest):
45-
if src.sizes != dst.sizes:
45+
if (src.sizes['x'],src.sizes['y']) != (dst.sizes['x'],dst.sizes['y']):
4646
src = src.rio.reproject_match(dst, resampling=resampling)
4747
return src
4848

earthdaily/earthdatastore/cube_utils/geometry_manager.py

+3
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,6 @@ def _unknow_geometry_to_geodataframe(self, geometry):
6767
)
6868
else:
6969
raise NotImplementedError("Couldn't guess your geometry type")
70+
71+
def buffer_in_meter(self, distance:int, crs_meters:str="EPSG:3857", **kwargs):
72+
return self._obj.to_crs(crs=crs_meters).buffer(distance=distance, **kwargs).to_crs(crs=self._obj.crs).geometry

0 commit comments

Comments
 (0)