satcube 0.1.11__tar.gz → 0.1.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of satcube might be problematic. Click here for more details.
- {satcube-0.1.11 → satcube-0.1.12}/PKG-INFO +1 -1
- {satcube-0.1.11 → satcube-0.1.12}/pyproject.toml +1 -1
- {satcube-0.1.11 → satcube-0.1.12}/satcube/cloud_detection.py +13 -3
- {satcube-0.1.11 → satcube-0.1.12}/LICENSE +0 -0
- {satcube-0.1.11 → satcube-0.1.12}/README.md +0 -0
- {satcube-0.1.11 → satcube-0.1.12}/satcube/__init__.py +0 -0
- {satcube-0.1.11 → satcube-0.1.12}/satcube/cloud_detection_old.py +0 -0
- {satcube-0.1.11 → satcube-0.1.12}/satcube/dataclass.py +0 -0
- {satcube-0.1.11 → satcube-0.1.12}/satcube/download.py +0 -0
- {satcube-0.1.11 → satcube-0.1.12}/satcube/download_old.py +0 -0
- {satcube-0.1.11 → satcube-0.1.12}/satcube/main.py +0 -0
- {satcube-0.1.11 → satcube-0.1.12}/satcube/utils.py +0 -0
- {satcube-0.1.11 → satcube-0.1.12}/satcube/utils_old.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "satcube"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.12"
|
|
4
4
|
description = "A Python package to create cloud-free monthly composites by fusing Landsat and Sentinel-2 data."
|
|
5
5
|
authors = ["Cesar Aybar <fcesar.aybar@uv.es>"]
|
|
6
6
|
repository = "https://github.com/IPL-UV/satcube"
|
|
@@ -32,7 +32,7 @@ def cloud_masking(
|
|
|
32
32
|
pad: int = 64,
|
|
33
33
|
save_mask: bool = False,
|
|
34
34
|
device: str = "cpu",
|
|
35
|
-
max_pix_cpu: float = 7.0e7
|
|
35
|
+
max_pix_cpu: float = 7.0e7
|
|
36
36
|
) -> List[Path]:
|
|
37
37
|
"""Write cloud-masked Sentinel-2 images.
|
|
38
38
|
|
|
@@ -52,7 +52,7 @@ def cloud_masking(
|
|
|
52
52
|
Tile images larger than this when running on CPU.
|
|
53
53
|
|
|
54
54
|
Returns
|
|
55
|
-
|
|
55
|
+
------
|
|
56
56
|
list[pathlib.Path]
|
|
57
57
|
Paths to the generated masked images.
|
|
58
58
|
"""
|
|
@@ -75,8 +75,18 @@ def cloud_masking(
|
|
|
75
75
|
if not tif_paths:
|
|
76
76
|
print(f"[cloud_masking] No .tif files found in {src}")
|
|
77
77
|
return []
|
|
78
|
+
|
|
79
|
+
dir = Path("SEN2CloudEnsemble")
|
|
80
|
+
|
|
81
|
+
if not dir.exists():
|
|
82
|
+
|
|
83
|
+
mlstac.download(
|
|
84
|
+
file = "https://huggingface.co/tacofoundation/CloudSEN12-models/resolve/main/SEN2CloudEnsemble/mlm.json",
|
|
85
|
+
output_dir = "SEN2CloudEnsemble",
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
experiment = mlstac.load(dir.as_posix())
|
|
78
89
|
|
|
79
|
-
experiment = mlstac.load("SEN2CloudEnsemble")
|
|
80
90
|
dm = DeviceManager(experiment, init_device=device)
|
|
81
91
|
|
|
82
92
|
masked_paths: list[Path] = []
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|