Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions openeo/rest/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down