Skip to content

examples update, aggregate_spatial and ndvi refactor#134

Merged
PondiB merged 23 commits intomainfrom
dev
Feb 18, 2026
Merged

examples update, aggregate_spatial and ndvi refactor#134
PondiB merged 23 commits intomainfrom
dev

Conversation

@PondiB
Copy link
Owner

@PondiB PondiB commented Feb 17, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates example workflows and refactors core spatial aggregation and NDVI calculation functions. The changes include a new Python notebook example, updates to three R example files, improvements to geometry handling in aggregate_spatial, and corrections to Sentinel-2 band naming conventions.

Changes:

  • Added new Python notebook example (france_example_python.ipynb) demonstrating crop type classification workflow
  • Refactored aggregate_spatial function with enhanced geometry repair logic and better handling of invalid geometries and geometry collections
  • Updated ndvi function to check target_band parameter first (logically equivalent refactor)
  • Added dynamic dx/dy calculation for lat/lon CRS in load_collection
  • Corrected Sentinel-2 band naming from single-digit (B8, B9) to two-digit format (B08, B09)
  • Translated German messages to English in Session-Class.R

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
examples/09-france/france_example_python.ipynb New Python notebook demonstrating the openEO workflow for crop classification using Random Forest
examples/09-france/france_example_01.R Updated temporal extent and refactored NDVI/interpolation workflow
examples/09-france/france_example_02.R Updated file paths, CRS, temporal extents, and workflow structure with aggregate_temporal_period
examples/09-france/france_example_03.R Updated file paths, temporal extents, and job execution workflow
R/processes-cube.R Major refactor: enhanced aggregate_spatial geometry repair, added dx/dy calculation for CRS 4326, minor ndvi refactor
R/Collection-class.R Corrected Sentinel-2 band names from B8/B9 to B08/B09 for consistency
R/Session-Class.R Translated German messages to English for better internationalization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

PondiB and others added 2 commits February 17, 2026 15:37
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Feb 17, 2026

@PondiB I've opened a new pull request, #135, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Feb 17, 2026

@PondiB I've opened a new pull request, #136, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Feb 17, 2026

@PondiB I've opened a new pull request, #137, to work on those changes. Once the pull request is ready, I'll request review from you.

PondiB and others added 9 commits February 17, 2026 15:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: PondiB <16879290+PondiB@users.noreply.github.com>
Co-authored-by: PondiB <16879290+PondiB@users.noreply.github.com>
… aoi_bb_llox to aoi_bbox

Co-authored-by: PondiB <16879290+PondiB@users.noreply.github.com>
Fix variable naming inconsistency in france_example_02.R
Fix incorrect assignment operator in function argument
Fix variable naming typos in france_example_02.R
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@PondiB PondiB requested a review from Copilot February 17, 2026 22:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 9 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



#' aggregate temporal period
#' aggregate spatial
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment at line 233 now correctly says "aggregate spatial", but the summary parameter at line 238 still says "Temporal aggregations based on calendar hierarchies" which is incorrect for this spatial aggregation function. The summary should describe spatial aggregations over geometries instead.

Copilot uses AI. Check for mistakes.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

PondiB and others added 6 commits February 17, 2026 23:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Feb 17, 2026

@PondiB I've opened a new pull request, #138, to work on those changes. Once the pull request is ready, I'll request review from you.

@PondiB PondiB merged commit 2e5fa80 into main Feb 18, 2026
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

Successfully merging this pull request may close these issues.

4 participants