mirror of
https://github.com/heyarne/earth-observation-for-journalism.git
synced 2026-05-06 19:13:40 +02:00
Remove scihub_normalize_range
This commit is contained in:
parent
212d84882a
commit
00b393948f
1 changed files with 0 additions and 11 deletions
|
|
@ -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):
|
||||||
'''
|
'''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue