Skip to content

Commit

Permalink
Merge pull request #571 from Telespazio-UK/master
Browse files Browse the repository at this point in the history
Add missing np.
  • Loading branch information
constantinius authored Apr 12, 2024
2 parents e47d134 + 75ea098 commit 3f643d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eoxserver/services/ows/wps/processes/get_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def execute(bbox, collection, **kwarg):
# if the image is empty GetStatistics will throw an error
# so we check if the number of the image pixels is greater
# than the number of noData pixels
nodata_number = sum(no_data_list).item()
nodata_number = np.sum(no_data_list).item()
if ((image_array.size - nodata_number) > 0):
stats = ds.GetRasterBand(band_number).GetStatistics(0, 1)
interval = (np.amax(data_array) - np.amin(data_array)) / 25
Expand Down

0 comments on commit 3f643d0

Please sign in to comment.