File tree 2 files changed +12
-3
lines changed
earthdaily/earthdatastore
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ 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] - Unreleased
7
+ ## [ 0.0.15] - 2024-04-11
8
8
9
+ ### Fixed
10
+
11
+ - ` ag_cloud_mask_items ` queries items per batch.
9
12
10
13
11
14
## [ 0.0.14] - 2024-04-11
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,13 @@ 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 (collections = collections , intersects = self .intersects , ids = ids_ [items_start_idx :items_start_idx + step ])
950
+ items_list .extend (items )
951
+ return ItemCollection (items )
946
952
947
953
948
954
def item_property_to_df (
You can’t perform that action at this time.
0 commit comments