-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up band handling/filtering #76
Comments
…mes and indices
Allows to get a image collection band using common name ("red", "nir", ...): e.g. `im.band("red")` related to Open-EO#76 Open-EO#77 and EP-3053
Allows to get a image collection band using common name ("red", "nir", ...): e.g. `im.band("red")` related to Open-EO#76 Open-EO#77 and EP-3053
Allows to get a image collection band using common name ("red", "nir", ...): e.g. `im.band("red")` related to Open-EO#76 Open-EO#77 and EP-3053
Allows to get a image collection band using common name ("red", "nir", ...): e.g. `im.band("red")` related to Open-EO#76 Open-EO#77 and EP-3053
Allows to get a image collection band using common name ("red", "nir", ...): e.g. `im.band("red")` related to Open-EO#76 Open-EO#77 and EP-3053
Allows to get a image collection band using common name ("red", "nir", ...): e.g. `im.band("red")` related to Open-EO#76 Open-EO#77 and EP-3053
…builders also related to Open-EO/openeo-python-client#76
…ters are applied, this way we might succeed in providing the right index to array_element
Not sure what the progress of this ticket is, but I still receive errors when using |
Most original issues should be covered by now.
|
results in: |
@Jaapel : First of all, your script seems to work against the dev instance of the VITO backend (https://openeo-dev.vito.be/openeo/1.0). Secondly and more importantly, the way you are computing
This will be translated to a With |
I think it's fine to close this old/outdated issue now. |
The python client is currently quite confusing concerning band handling/filtering:
ImageCollection.band_filter(bands)
expects a list of band names according to the docs. However the only way I actually get this function to work is with a single integer0
. When specifying a list of strings I getjava.lang.String cannot be cast to java.lang.Integer
, when specifying a single string I get error('band must be an int, tuple, or list. Recieved', <class 'str'>, 'instead.')
, when specifying an int other than 0 I getBand 1 does not exist
ImageCollection.band(name)
expects a band name (string) and works properlyfilter_bands
(notband_filter
) and defines three possible arguments for band selection:bands
,common_names
andwavelengths
https://open-eo.github.io/openeo-api/processreference/#filter_bandsI think it's best to get these things more in harmony
The text was updated successfully, but these errors were encountered: