From 00b393948f6d73c2822a1378aa17ad5da683c3c6 Mon Sep 17 00:00:00 2001 From: heyarne Date: Thu, 4 Mar 2021 16:06:02 +0000 Subject: [PATCH] Remove scihub_normalize_range --- sources/sentinel_helpers.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sources/sentinel_helpers.py b/sources/sentinel_helpers.py index cc3f8bd..eb8eb61 100644 --- a/sources/sentinel_helpers.py +++ b/sources/sentinel_helpers.py @@ -157,17 +157,6 @@ def scihub_cloud_mask(product_path, **kwargs): else: return mask -# TODO: Unused?? - -def scihub_normalize_range(v): - ''' - Raster files downloaded from the Copernicus Open Access Hub can contain - pixels with reflectance values outside of the allowed range. This function - discards those values and normalizes the range of the returned raster file - to be [0...1]. - ''' - return np.clip(v, 0, 2000) / 2000 - def scihub_band_date(band): '''