diff --git a/CHANGELOG.md b/CHANGELOG.md index ca573ab9..c8f4d8b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ 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.2.9] - 2024-09-24 + +### Fixed + +- `prefer_alternate` is set by default to `download` in datacube is order to +have presigned url. + ## [0.2.8] - 2024-09-23 ### Added diff --git a/earthdaily/__init__.py b/earthdaily/__init__.py index 44aae57c..cc1752ca 100644 --- a/earthdaily/__init__.py +++ b/earthdaily/__init__.py @@ -7,7 +7,7 @@ # to hide warnings from rioxarray or nano seconds conversion # warnings.filterwarnings("ignore") -__version__ = "0.2.8" +__version__ = "0.2.9" def EarthDataStore( diff --git a/earthdaily/earthdatastore/__init__.py b/earthdaily/earthdatastore/__init__.py index b48f1394..38231430 100644 --- a/earthdaily/earthdatastore/__init__.py +++ b/earthdaily/earthdatastore/__init__.py @@ -1303,6 +1303,8 @@ def ag_cloud_mask_from_items(items): ids_ = [x for n in (items_id.values()) for x in n] items_list = [] step = 100 + kwargs.setdefault("prefer_alternate", "download") + for items_start_idx in range(0, len(ids_), step): items = self.search( collections=collections,