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

openEO Cookbook #16

Open
m-mohr opened this issue Aug 7, 2020 · 7 comments
Open

openEO Cookbook #16

m-mohr opened this issue Aug 7, 2020 · 7 comments
Assignees

Comments

@m-mohr
Copy link
Member

m-mohr commented Aug 7, 2020

The examples are outdated: https://openeo.org/documentation/1.0/developers/examples/
Doesn't even use the new processes, but simply shows process graphs in the old pre 1.0.0-rc.2 state.

@m-mohr m-mohr self-assigned this Aug 28, 2020
m-mohr added a commit that referenced this issue Sep 2, 2020
@m-mohr
Copy link
Member Author

m-mohr commented Dec 10, 2020

People sometimes "complain" that there should be more examples, smaller examples derived from real world examples you can go through, to understand how the processes work. Like how to work with reducers, merging, generally how to approach issues. Many have no experience with data cubes and related processes. We could have a guide for all languages at once, showing the code snippets for all languages in tabs or so and then go through various things.

@m-mohr m-mohr assigned jonathom and unassigned m-mohr Jan 8, 2021
@jonathom jonathom changed the title Examples outdated openEO Cookbook Mar 27, 2021
@jonathom
Copy link
Member

I want to open a discussion about this idea of having more organized examples, so if you have any comments and ideas on what should be explained there, please post! Please also mention people you feel could add something. @m-mohr @christophfriedrich @edzer

Outcome: An openEO cookbook users can refer to to get a first idea on how to solve their problems with the openEO API in the three languages Python, R and JavaScript (as described above). It should not replace the getting started guides nor go as much into API details as API documentation (e.g. python) or go through multiple complete use cases, but should describe how to implement simple use cases in a very pragmatic way.

Content:

  • Input Data: How to upload and use locally stored data?
  • Output: Formats etc., How to create a PNG?
  • Datacube core functions: haven't thought of specific uses yet, e.g. How to apply a moving average process?
  • Bandmath: How to do bandmath, how to select bands, how to make use of predefined processes like normalized_difference?
  • Combine Sensors: How to integrate different data sources?
  • Masking: How to mask, How to construct a mask?
  • Classification: How to make a classification?
  • Change Detection: How to do a simple change detection?
  • Zonal statistics: How to create and download a vector cube?
  • UDFs: How to make use of UDFs, how and when to write a UDF?
  • ...

@m-mohr
Copy link
Member Author

m-mohr commented Apr 13, 2021

See #28 for a Code Switcher example.

@jonathom
Copy link
Member

jonathom commented Apr 13, 2021

very nice, code switcher example works like a charm @m-mohr.

@jonathom
Copy link
Member

jonathom commented May 6, 2021

just a note to myself: should the cookbook contain FAQs with links to where these questions are explained (might make navigation, topics easier to find) and/or tasks at the end of a chapter to explore the used processes (a la what happens when you do this and that).

@clausmichele
Copy link
Member

just a note to myself: should the cookbook contain FAQs with links to where these questions are explained (might make navigation, topics easier to find) and/or tasks at the end of a chapter to explore the used processes (a la what happens when you do this and that).

Maybe a nice addition could be, after the correct example, some common mistakes to avoid. Like forgetting to insert the dimension in a reduce_spatial process. Since the logs from the back-ends are not always so informative, it's important to know what could go wrong.

@jonathom
Copy link
Member

jonathom commented Jun 4, 2021

@clausmichele yes, great idea! it is already in the making - if you have anything else that strikes you as a common mistake, let me know!

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

No branches or pull requests

3 participants