Comments (4)
load_stac: solution could be to retrieve metadata client side
from openeo-python-client.
as noted at #501:
I now also added a new argument platform
to append_index
, compute_index
, ... to explicitly specify the satellite platform if the cube metadata has no id (or it's unhandled). e.g.
cube = compute_index(cube, index="NDVI", platform="Sentinel2")
This platform parameter will be used to determine the band name mapping
Does this already address this issue @mbuchhorn or do you also need the following?
... an optional parameter to the functions to provide a custom dictionary mapping the band names of the input DataCube to the standardized band names used by the awesome package.
from openeo-python-client.
@soxofaan yes.. the optional parameter would be helpfull since sometimes we generate "Frankenstein" input datacube which are already S1+S2 data. then to hand over a dictionary to map the band names to standard awesome package band names would be good.
BTW: have to also adapted the current band names for Sentinel-2 (in your CONSTANT dictionary) --> B8A should be N2 and not RE4
Also: please add the CollectionID Sentinel1_GRD to the Sentinel1 handling
from openeo-python-client.
I now added option to manually specify the band mapping (instead of being guessed from collection id that might be missing). Documented at https://open-eo.github.io/openeo-python-client/cookbook/spectral_indices.html#band-mapping
band names for Sentinel-2 (in your CONSTANT dictionary) --> B8A should be N2 and not RE4
is also fixed now
please add the CollectionID Sentinel1_GRD to the Sentinel1 handling
This should be picked up correctly too
from openeo-python-client.
Related Issues (20)
- Avoid setting default values for process arguments HOT 3
- improvement spectral indices functions HOT 3
- resolve warnings in doc build
- add DOI to python client repo HOT 2
- Option to disable printing error logs on failed job
- drop `extra-indices-dict.json` (and provide alternative mechanism for custom indices) HOT 6
- Spectral indices: support sensor specific constants
- Also try to refresh access token on HTTP status 401 HOT 2
- Type hint for spatial_extent in load_collection does not include Parameter
- OpenEoApiError: [400] JobNotFinished: batch job has not finished computing the results yet HOT 7
- oidc-agent integration
- Better error insights on CDSE firewall blocking HOT 2
- Allow '_ensure_save_result' to be skipped with a flag in any place it is called. HOT 4
- Add context support to `execute_local_udf` HOT 1
- band name support in `DataCube.band()` HOT 3
- metadata is None after `aggregate_spatial` HOT 4
- docs: add logging for multi backend job manager HOT 1
- apply_neighborhood causes crash when overlap parameter is left undefined HOT 1
- Context parameter in openeo.UDF.from_file() causes confusion HOT 5
- `merge_cubes` returns a `ValueError` when not specifying an `overlap_resolver` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openeo-python-client.