From 366310be712c5fd5bc71f8877e56039a269dfa67 Mon Sep 17 00:00:00 2001 From: nicolasK Date: Tue, 14 May 2024 09:37:22 +0200 Subject: [PATCH 1/3] chore(release) : prep 0.1.2 --- CHANGELOG.md | 3 +++ earthdaily/__init__.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b58ec074..e91fc0a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.2] - Unreleased + + ## [0.1.1] - 2024-05-13 ### Fixed diff --git a/earthdaily/__init__.py b/earthdaily/__init__.py index c27e0445..e9dcff24 100644 --- a/earthdaily/__init__.py +++ b/earthdaily/__init__.py @@ -5,4 +5,4 @@ # to hide warnings from rioxarray or nano seconds conversion warnings.filterwarnings("ignore") -__version__ = "0.1.1" +__version__ = "0.1.2" From 1170e4baa26e45896961950467992b85395cea4b Mon Sep 17 00:00:00 2001 From: nicolasK Date: Wed, 15 May 2024 17:59:19 +0200 Subject: [PATCH 2/3] fix(cloudmask) : multiple geometries --- CHANGELOG.md | 3 +++ earthdaily/earthdatastore/cube_utils/custom_reducers.py | 4 ++-- earthdaily/earthdatastore/mask/__init__.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e91fc0a5..d6e895b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.1.2] - Unreleased +### Fixed + +- Wrong clear_percent/clear_pixels when having multiple geometries in datacube request ## [0.1.1] - 2024-05-13 diff --git a/earthdaily/earthdatastore/cube_utils/custom_reducers.py b/earthdaily/earthdatastore/cube_utils/custom_reducers.py index 40c5c9f2..c5460017 100644 --- a/earthdaily/earthdatastore/cube_utils/custom_reducers.py +++ b/earthdaily/earthdatastore/cube_utils/custom_reducers.py @@ -30,8 +30,8 @@ def mode(data_array_grouped, optional_arg=None): @staticmethod def register_custom_reducers(): # register custom methods fo DataArrayGroupBy - xr.core.groupby.DataArrayGroupBy.mode = CustomReducers.mode - xr.core.groupby.DatasetGroupBy.mode = CustomReducers.mode + groupby.DataArrayGroupBy.mode = CustomReducers.mode + groupby.DatasetGroupBy.mode = CustomReducers.mode np.mode = CustomReducers._np_mode diff --git a/earthdaily/earthdatastore/mask/__init__.py b/earthdaily/earthdatastore/mask/__init__.py index 646f90e9..8ab1da2a 100644 --- a/earthdaily/earthdatastore/mask/__init__.py +++ b/earthdaily/earthdatastore/mask/__init__.py @@ -48,7 +48,7 @@ def __init__(self, dataset: xr.Dataset, intersects=None, bbox=None): if bbox and intersects is None: intersects = _bbox_to_intersects(bbox) if isinstance(intersects, gpd.GeoDataFrame): - intersects = intersects.to_crs(self._obj.rio.crs).head(1) + intersects = intersects.to_crs(self._obj.rio.crs) self.intersects = intersects def ag_cloud_mask( From 515d39e13d5922d9c4e00d9dad77a0d01cfcafc2 Mon Sep 17 00:00:00 2001 From: nicolasK Date: Wed, 15 May 2024 18:01:07 +0200 Subject: [PATCH 3/3] release(0.1.2) --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6e895b9..2688237c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.1.2] - Unreleased +## [0.1.2] - 2024-05-15 ### Fixed