Skip to content

Commit a9f46ce

Browse files
authored
release(v0.0.16)
release(v0.0.16)
2 parents 23685ab + 223d721 commit a9f46ce

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ 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] - 2024-04-15
8+
9+
### Fixed
10+
11+
- Issue with time when resample between datacube and cloudmask datacube.
12+
713
## [0.0.15] - 2024-04-11
814

915
### Fixed

earthdaily/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# to hide warnings from rioxarray or nano seconds conversion
66
warnings.filterwarnings("ignore")
77

8-
__version__ = "0.0.15"
8+
__version__ = "0.0.16"

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

+8
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,11 @@ 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 (
73+
self._obj.to_crs(crs=crs_meters)
74+
.buffer(distance=distance, **kwargs)
75+
.to_crs(crs=self._obj.crs)
76+
.geometry
77+
)

0 commit comments

Comments
 (0)