Commit d29f1f8c authored by benjaminpillot's avatar benjaminpillot
Browse files

Remove no_data argument from zonal_stats method

parent 17bc0f0a
...@@ -609,7 +609,7 @@ class RasterBase: ...@@ -609,7 +609,7 @@ class RasterBase:
return _xy_to_2d_index(self, x, y) return _xy_to_2d_index(self, x, y)
def zonal_stats(self, layer, band=1, stats=None, customized_stats=None, def zonal_stats(self, layer, band=1, stats=None, customized_stats=None,
no_data=-999, all_touched=True, show_progressbar=True, all_touched=True, show_progressbar=True,
nb_processes=mp.cpu_count()): nb_processes=mp.cpu_count()):
""" Compute zonal statistics """ Compute zonal statistics
...@@ -628,8 +628,6 @@ class RasterBase: ...@@ -628,8 +628,6 @@ class RasterBase:
customized_stats: dict customized_stats: dict
User's own customized statistic functions User's own customized statistic functions
as {'your_function_name': function} as {'your_function_name': function}
no_data: int or float
No data value
all_touched: bool all_touched: bool
Whether to include every raster cell touched by a geometry, or only Whether to include every raster cell touched by a geometry, or only
those having a center point within the polygon. those having a center point within the polygon.
...@@ -647,7 +645,7 @@ class RasterBase: ...@@ -647,7 +645,7 @@ class RasterBase:
""" """
if stats is not None: if stats is not None:
return _zonal_stats(self, layer, band, stats, customized_stats, return _zonal_stats(self, layer, band, stats, customized_stats,
no_data, all_touched, show_progressbar, nb_processes) all_touched, show_progressbar, nb_processes)
@property @property
def crs(self): def crs(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment