You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Added
11
11
12
+
### Changed
13
+
14
+
### Removed
15
+
16
+
### Fixed
17
+
18
+
19
+
## [0.40.0] - 2025-04-14
20
+
21
+
### Added
22
+
12
23
-`sar_backscatter`: try to retrieve coefficient options from backend ([#693](https://github.com/Open-EO/openeo-python-client/issues/693))
13
24
- Improve error message when OIDC provider is unavailable ([#751](https://github.com/Open-EO/openeo-python-client/issues/751))
14
25
- Added `on_response_headers` argument to `DataCube.download()` and related to handle (e.g. `print`) the response headers ([#560](https://github.com/Open-EO/openeo-python-client/issues/560))
15
26
- Added more robust download for large job result files (if supported by the server)
16
27
17
28
### Changed
18
29
19
-
### Removed
30
+
- When the bands provided to `Connection.load_stac(..., bands=[...])` do not fully match the bands the client extracted from the STAC metadata, a warning will be triggered, but the provided band names will still be used during the client-side preparation of the process graph. This is a pragmatic approach to bridge the gap between differing interpretations of band detection in STAC. Note that this might produce process graphs that are technically invalid and might not work on other backends or future versions of the backend you currently use. It is recommended to consult with the provider of the STAC metadata and openEO backend on the correct and future-proof band names. ([#752](https://github.com/Open-EO/openeo-python-client/issues/752))
# Ideal case: bands requested by user correspond with bands extracted from metadata.
451
+
metadata=metadata.filter_bands(band_names=bands)
452
+
else:
453
+
metadata=metadata._ensure_band_dimension(
454
+
bands=bands,
455
+
warning=f"The specified bands {bands} in `load_stac` are not a subset of the bands {metadata.band_dimension.band_names} found in the STAC metadata (unknown bands: {unknown_bands}). Working with specified bands as is.",
456
+
)
457
+
else:
458
+
metadata=metadata._ensure_band_dimension(
459
+
name="bands",
460
+
bands=bands,
461
+
warning=f"Bands {bands} were specified in `load_stac`, but no band dimension was detected in the STAC metadata. Working with band dimension and specified bands.",
462
+
)
463
+
464
+
exceptExceptionase:
448
465
log.warning(f"Failed to extract cube metadata from STAC URL {url}", exc_info=True)
0 commit comments