extends the STACCube functionality to allow the retrieval of a specified data layer even when its asset name is identical to other items' asset names that are provided to the STACCube upon initialisation. This is relevant when multiple data layers with possibly overlapping asset names should be used in one recipe. The implementation of this fix relies on an extra field for assets that is called "semantique:key" which is compared against the currently queried reference to filter relevant items.
fixes issues that are occuring when more than 32 observations of dtype integer are available for a given day and they should be merged into a single observation using group_by_solar_day=True. The previously used function np.choose throws a ValueError in these cases as it can handle at most 32 array objects (e.g. see here for discussion).
updates the exemplary layout_file and documentation of STACCube for the parameter "na_value" and "dtype" (which haven't been described yet)
Type of change
Select one or more relevant options:
[x] Bug fix (change which fixes a bug reported in a specific issue)
[ ] New feature (change which adds a feature requested in a specific issue)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation update (improved documentation for existing functionality in the package)
[ ] Repository update (change related to non-package files or structures in the GitHub repository)
Description
This PR...
extends the STACCube functionality to allow the retrieval of a specified data layer even when its asset name is identical to other items' asset names that are provided to the STACCube upon initialisation. This is relevant when multiple data layers with possibly overlapping asset names should be used in one recipe. The implementation of this fix relies on an extra field for assets that is called "semantique:key" which is compared against the currently queried reference to filter relevant items.
fixes issues that are occuring when more than 32 observations of dtype integer are available for a given day and they should be merged into a single observation using
group_by_solar_day=True
. The previously used function np.choose throws a ValueError in these cases as it can handle at most 32 array objects (e.g. see here for discussion).updates the exemplary layout_file and documentation of STACCube for the parameter "na_value" and "dtype" (which haven't been described yet)
Type of change
Select one or more relevant options:
Checklist: