File tree 3 files changed +20
-3
lines changed
3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 0.0.15] - 2024-04-11
8
+
9
+ ### Fixed
10
+
11
+ - ` ag_cloud_mask_items ` queries items per batch.
12
+
13
+
7
14
## [ 0.0.14] - 2024-04-11
8
15
9
16
### Fixed
Original file line number Diff line number Diff line change 5
5
# to hide warnings from rioxarray or nano seconds conversion
6
6
warnings .filterwarnings ("ignore" )
7
7
8
- __version__ = "0.0.14 "
8
+ __version__ = "0.0.15 "
Original file line number Diff line number Diff line change @@ -650,6 +650,7 @@ def datacube(
650
650
651
651
if intersects is not None :
652
652
intersects = cube_utils .GeometryManager (intersects ).to_geopandas ()
653
+ self .intersects = intersects
653
654
items = self .search (
654
655
collections = collections ,
655
656
bbox = bbox ,
@@ -941,8 +942,17 @@ def ag_cloud_mask_from_items(items):
941
942
if len (items_id ) == 0 :
942
943
raise ValueError ("Sorry, no ag_cloud_mask available." )
943
944
collections = list (items_id .keys ())
944
- ids = [x for n in (items_id .values ()) for x in n ]
945
- return self .search (collections = collections , ids = ids )
945
+ ids_ = [x for n in (items_id .values ()) for x in n ]
946
+ items_list = []
947
+ step = 100
948
+ for items_start_idx in range (0 , len (ids_ ), step ):
949
+ items = self .search (
950
+ collections = collections ,
951
+ intersects = self .intersects ,
952
+ ids = ids_ [items_start_idx : items_start_idx + step ],
953
+ )
954
+ items_list .extend (items )
955
+ return ItemCollection (items )
946
956
947
957
948
958
def item_property_to_df (
You can’t perform that action at this time.
0 commit comments