Skip to content

Commit

Permalink
Issue #663 add todos in zonal_statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVerstraelen committed Mar 4, 2024
1 parent 2d92d79 commit 0fb13bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openeogeotrellis/geopysparkdatacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,7 @@ def regions_to_wkt(regions: Union[BaseGeometry, DriverVectorCube]) -> List[str]:
if projected_polygons:
# TODO also add dumping results first to temp json file like with "mean"
if func == 'histogram':
# TODO: This code path is likely never used.
stats = self._compute_stats_geotrellis().compute_histograms_time_series_from_datacube(
scala_data_cube, projected_polygons, from_date.isoformat(), to_date.isoformat(), 0
)
Expand All @@ -1488,6 +1489,7 @@ def regions_to_wkt(regions: Union[BaseGeometry, DriverVectorCube]) -> List[str]:
temp_dir = temp_csv_dir(
message=f"{type(self).__name__}.zonal_statistics (projected_polygons)"
)
# TODO: We lose band names while these can be useful in for example "vector_to_raster".
self._compute_stats_geotrellis().compute_generic_timeseries_from_datacube(
func,
wrapped,
Expand Down

0 comments on commit 0fb13bd

Please sign in to comment.