File tree 2 files changed +15
-3
lines changed
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
9
9
### Fixed
10
10
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.
13
23
14
24
### Removed
15
25
16
- - ` mode ` for zonal stats ` operations.reducers ` .
26
+ - Typing decorator, expected new typing library .
17
27
18
28
## [ 0.0.13] - 2024-03-06
19
29
Original file line number Diff line number Diff line change @@ -265,11 +265,13 @@ def sel_nearest_dates(
265
265
src_time = self ._obj .sel (time = target .time .dt .date , method = method ).time .dt .date
266
266
target_time = target .time .dt .date
267
267
pos = np .abs (src_time .data - target_time .data )
268
+ pos_delta = [delta .days for delta in pos ]
268
269
pos = [
269
270
src_time .isel (time = i ).time .values
270
271
for i , j in enumerate (pos )
271
272
if j .days <= max_delta
272
273
]
274
+ pos = np .unique (pos )
273
275
if return_target :
274
276
method_convert = {"bfill" : "ffill" , "ffill" : "bfill" , "nearest" : "nearest" }
275
277
return self ._obj .sel (time = pos ), target .sel (
You can’t perform that action at this time.
0 commit comments