-
Notifications
You must be signed in to change notification settings - Fork 2
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
Biopar masklayer #68
base: main
Are you sure you want to change the base?
Biopar masklayer #68
Conversation
For spatial filtering, is there a reason not to follow this guideline? |
I thought to stick to this suggestion: #37 (comment) , no other specific reason |
That suggestion was indeed confusing, but let's use the guidelines as reference. If there are reasons to change it, we should update that first. |
openeo_udp/biopar/biopar.json
Outdated
@@ -59,8 +59,8 @@ | |||
} | |||
}, | |||
{ | |||
"description": "This geometries defines the bounds of the resulting image. Pixels outside the polygon are set to nodata.", | |||
"name": "geometries", | |||
"description": "This spatial_extent defines the bounds of the resulting image. Pixels outside the polygon are set to nodata.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit confusing: "defines the bounds" seems to suggest that spatial_extent
is a bounding box construct (like in the prototypical load_collection
usage), but the type of this parameter is "geojson", so a bbox isn't even valid
openeo_udp/biopar/biopar.json
Outdated
}, | ||
"extent": { | ||
"from_parameter": "temporal_extent" | ||
"spatial_extent": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the argument of filter_spatial
is "geometries", not "spatial_extent"
"spatial_extent": { | |
"geometries": { |
openeo_udp/biopar/biopar.json
Outdated
"data": { | ||
"from_node": "filtertemporal2" | ||
}, | ||
"spatial_extent": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"spatial_extent": { | |
"geometries": { |
FYI: in that comment I just wanted to mention that "polygon" is not an argument name we use in standard processes, but "geometries" is (e.g. in About the guidelines on spatial filtering: I think there is room for clarification:
argument name In the use case here (openeo_udp/biopar/biopar.json), the parameter Wouldn't it be better to define the |
Yes, @Pratichhya the idea is that you don't have to use filter_spatial anymore, parameter goes straight into load_collection. I also suggest to use this convenience method to declare the parameter in Python: |
ahh, ok, will do that; directly load the extents in load_collection. Indeed, it is an easier solution. However, for Biopar in CDSE, it was suggested that the data be clipped to the spatial extent rather than bbox (remain the same as the VITO version), so I assumed the same might be expected here. |
@Pratichhya that's exactly what this parameter allows: clipping to bbox, geometry, vector cube, or even nothing at all and leaving it open to further downstream processing. |
Here's a PR for that spatial_extent confusion: |
about the failing tests: I already fixed some things on master branch, so I would merge master in this feature branch |
Updated the masking function in the Biopar process graph.
However, there still seems to be unittest failure, particularly in the following files:
@jdries, do you suggest waiting for the above files before merging this PR? So that I can pull from the main again.
Please kindly let me know if I missed any points to correct 😅