Skip to content

Commit 79de92b

Browse files
author
nicolasK
committed
chore(changelog)
1 parent 687cc79 commit 79de92b

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Diff for: CHANGELOG.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Fixed
1010

11-
- `GeoSeries`in GeometryManager.
12-
- Bugs when managing multiple indices with accessor `xr.ed`.
11+
- `GeoSeries` supported in GeometryManager.
12+
- `ed.sel_nearest_dates` accessor avoid duplicated times.
13+
- Issue when managing multiple indices with accessor `xr.ed`.
14+
- Issue when same datetime when rescaling dataset.
15+
16+
### Added
17+
18+
- `mode` for zonal stats in `operations.reducers`.
19+
20+
### Changed
21+
22+
- `ag_cloud_mask_items` queries items per batch.
1323

1424
### Removed
1525

16-
- `mode` for zonal stats `operations.reducers`.
26+
- Typing decorator, expected new typing library.
1727

1828
## [0.0.13] - 2024-03-06
1929

Diff for: earthdaily/accessor/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,13 @@ def sel_nearest_dates(
265265
src_time = self._obj.sel(time=target.time.dt.date, method=method).time.dt.date
266266
target_time = target.time.dt.date
267267
pos = np.abs(src_time.data - target_time.data)
268+
pos_delta = [delta.days for delta in pos]
268269
pos = [
269270
src_time.isel(time=i).time.values
270271
for i, j in enumerate(pos)
271272
if j.days <= max_delta
272273
]
274+
pos = np.unique(pos)
273275
if return_target:
274276
method_convert = {"bfill": "ffill", "ffill": "bfill", "nearest": "nearest"}
275277
return self._obj.sel(time=pos), target.sel(

0 commit comments

Comments
 (0)