Start re-reading notebooks

This commit is contained in:
heyarne 2021-02-24 17:59:09 +00:00
commit 6826f59879
4 changed files with 449 additions and 229 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -159,6 +159,10 @@ def scihub_cloud_mask(product_path, **kwargs):
'to construct a rasterized cloud mask.'
raise ValueError(error_msg)
# completely empty cloud masks have to be handled separately
if mask.is_empty:
return np.full(target_shape, True)
return geometry_mask(mask,
out_shape=target_shape,
transform=target_transform)