Skip to content
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

imagecollection vs datacube #108

Closed
m-mohr opened this issue Jan 22, 2020 · 4 comments
Closed

imagecollection vs datacube #108

m-mohr opened this issue Jan 22, 2020 · 4 comments

Comments

@m-mohr
Copy link
Member

m-mohr commented Jan 22, 2020

From what I see in examples, the Python client currently uses "imagecollection" to create processing instructions. Wouldn't it be more aligned with what we do to call this datacube? So to replace con.imagecollection("s2", ...) with something like con.datacube("s2", ...)? I got to think about this when updating https://openeo.org/documentation/draft/developers/clients/library-guidelines.html

@soxofaan
Copy link
Member

FYI: in 6fc4cee I already sort of deprecated Connection.imagecollection and added the method Connection.load_collection to be more in line with the API.
But there is indeed a lot of example code floating around using old approaches (there have already been a lot of API changes of course)

@soxofaan
Copy link
Member

However, what we could also put up for discussion is renaming the class ImageCollection (and related) to DataCube

To me it sounds indeed better because the thing acts more like a homogeneous cube than a collection of images. However it would require quite a large "diff" to address this, and I'm not sure if it is worth that trouble. A normal user should not use the class directly to create an instance anyway (but Connection.load_collection instead).

On the other hand, when using the documentation of the python client, the user is still confronted with this ImageCollection class name (ImageCollectionClient actually, which is quite a mouth full to be honest).

what do you think @jdries ?

@jdries
Copy link
Collaborator

jdries commented Feb 1, 2020

This all makes a lot of sense, especially now that the API is supposed to be stable.
I propose to align the renaming of classes with the new code that we'll need anyway to support 1.0.0, and a new approach to building process graphs, which should solve some issues with the implementation we have for 0.4.0.

soxofaan added a commit that referenced this issue Mar 3, 2020
soxofaan added a commit that referenced this issue Mar 3, 2020
soxofaan added a commit that referenced this issue Mar 10, 2020
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Mar 11, 2020
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Mar 11, 2020
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Mar 13, 2020
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Mar 16, 2020
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Mar 16, 2020
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Mar 17, 2020
soxofaan added a commit to soxofaan/openeo-python-client that referenced this issue Mar 17, 2020
@soxofaan
Copy link
Member

the just merged PR #126 introduced new DataCube class meant to handle API 1.0 usage
The old 0.4 style logic is still under ImageCollectionClient (to be removed when support for 0.4 API is not necessary anymore)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants