From 9f78b22c48d51aa39a2e9efdb0d7991551c8c773 Mon Sep 17 00:00:00 2001 From: dsamaey Date: Wed, 21 Jan 2026 14:46:56 +0100 Subject: [PATCH] fix: add missing processes (aspect, slope) --- openeo/rest/datacube.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/openeo/rest/datacube.py b/openeo/rest/datacube.py index 113fb7105..a6537f51c 100644 --- a/openeo/rest/datacube.py +++ b/openeo/rest/datacube.py @@ -3072,6 +3072,34 @@ def unflatten_dimension(self, dimension: str, target_dimensions: List[str], labe ), ) + @openeo_process + def aspect(self) -> DataCube: + """ + Converts every band in the datacube to a band with suffix "_aspect" containing the aspect. + + :return: A data cube with the same dimensions but containing the computed aspect values. + """ + return self.process( + process_id="aspect", + arguments=dict_no_none( + data=THIS + ), + ) + + @openeo_process + def slope(self) -> DataCube: + """ + Converts every band in the datacube to a band with suffix "_slope" containing the slope. + + :return: A data cube with the same dimensions but containing the computed slope values. + """ + return self.process( + process_id="slope", + arguments=dict_no_none( + data=THIS + ), + ) + @openeo_process def convert_data_type( self,