mirror of
https://github.com/heyarne/earth-observation-for-journalism.git
synced 2026-05-06 19:13:40 +02:00
Start re-reading notebooks
This commit is contained in:
parent
cb6015c8ff
commit
6826f59879
4 changed files with 449 additions and 229 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue