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

Filter labels not working with S1BackscatterOrfeo #320

Closed
EmileSonneveld opened this issue Sep 16, 2024 · 2 comments
Closed

Filter labels not working with S1BackscatterOrfeo #320

EmileSonneveld opened this issue Sep 16, 2024 · 2 comments
Assignees

Comments

@EmileSonneveld
Copy link
Contributor

https://discuss.eodc.eu/t/filter-multiple-dates-with-filter-labels/753/9

@EmileSonneveld EmileSonneveld self-assigned this Sep 16, 2024
@EmileSonneveld EmileSonneveld changed the title Filter labels Valentina Filter labels not working with S1BackscatterOrfeo Sep 16, 2024
@EmileSonneveld
Copy link
Contributor Author

The OpenEOProcessScriptBuilder object is difficult to construct from Scala alone. It wil be easier to add an integration test.

Here a snippet of incomplete unit test:
@Test
def loadSpatialFeatureJsonRDDTest(): Unit = {
 val client = OpenSearchClient.apply(
   "https://catalogue.dataspace.copernicus.eu/resto", false, "", new java.util.ArrayList[String](), ""
 )
 val attributeValues = Map[String, Any](("processingLevel", "LEVEL1"), ("productType", "IW_GRDH_1S-COG")).asJava
 val file_rdd_factory = new FileRDDFactory(client, "Sentinel1", attributeValues, "unknown-job", CellSize(10, 10))
 val from_date = "2022-12-01T00:00:00+00:00"
 val to_date = "2022-12-30T00:00:00+00:00"
 val projected_polygons = ProjectedPolygons.fromExtent(Extent(11.23, 46.9, 11.45, 47), "EPSG:4326")
 val polygons_32632 = projected_polygons.extent.reproject(CRS.fromEpsgCode(32632))
 val projected_polygons_32632 = ProjectedPolygons.fromExtent(polygons_32632, "EPSG:32632")
 val res = file_rdd_factory.loadSpatialFeatureJsonRDD(projected_polygons_32632, from_date, to_date, 0, 256, new DataCubeParameters())
 print(res)
}

@jdries
Copy link
Contributor

jdries commented Sep 16, 2024

Here's an example of a ProcessScriptBuilder that could work for filter_labels:

Another idea would be to actually add a unit test in openeo-geopyspark-driver.

EmileSonneveld added a commit to Open-EO/openeo-geopyspark-driver that referenced this issue Sep 17, 2024
EmileSonneveld added a commit to Open-EO/openeo-geopyspark-driver that referenced this issue Sep 19, 2024
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

2 participants