Remove scihub_normalize_range

This commit is contained in:
heyarne 2021-03-04 16:06:02 +00:00
commit 00b393948f

View file

@ -157,17 +157,6 @@ def scihub_cloud_mask(product_path, **kwargs):
else: else:
return mask 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): def scihub_band_date(band):
''' '''