-
Notifications
You must be signed in to change notification settings - Fork 4
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
Comments
EmileSonneveld
changed the title
Filter labels Valentina
Filter labels not working with S1BackscatterOrfeo
Sep 16, 2024
EmileSonneveld
added a commit
that referenced
this issue
Sep 16, 2024
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)
}
|
Here's an example of a ProcessScriptBuilder that could work for filter_labels: Line 2193 in 84d59d3
Another idea would be to actually add a unit test in openeo-geopyspark-driver. |
EmileSonneveld
added a commit
that referenced
this issue
Sep 17, 2024
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
https://discuss.eodc.eu/t/filter-multiple-dates-with-filter-labels/753/9
The text was updated successfully, but these errors were encountered: