diff --git a/openeo/rest/datacube.py b/openeo/rest/datacube.py index 307313393..00d850d09 100644 --- a/openeo/rest/datacube.py +++ b/openeo/rest/datacube.py @@ -3095,6 +3095,27 @@ def unflatten_dimension(self, dimension: str, target_dimensions: List[str], labe ), ) + @openeo_process + def convert_data_type( + self, + data_type: str, + ) -> DataCube: + """ + Converts the datacube data to another data type. + + :param data_type: The desired data type, as a string e.g. 'uint8', 'int16ud32767', ... + + :return: A data cube with the same dimensions but converted to the new data type. + """ + return self.process( + process_id="convert_data_type", + arguments=dict_no_none( + data=THIS, + data_type=data_type + ), + ) + + def _get_geometry_argument( argument: Union[