satcube 0.1.10__py3-none-any.whl → 0.1.12__py3-none-any.whl

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.

@@ -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] = []
satcube/download.py CHANGED
@@ -5,12 +5,13 @@ import pandas as pd
5
5
 
6
6
 
7
7
  def download_data(
8
+ *, # keyword-only
8
9
  lon: float,
9
10
  lat: float,
10
- start: str,
11
- end: str,
12
11
  cloud_max: int = 40,
13
12
  edge_size: int = 2_048,
13
+ start: str,
14
+ end: str,
14
15
  output: str = "raw",
15
16
  scale: int = 10,
16
17
  nworks: int = 4,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satcube
3
- Version: 0.1.10
3
+ Version: 0.1.12
4
4
  Summary: A Python package to create cloud-free monthly composites by fusing Landsat and Sentinel-2 data.
5
5
  Home-page: https://github.com/IPL-UV/satcube
6
6
  Author: Cesar Aybar
@@ -1,13 +1,13 @@
1
1
  satcube/__init__.py,sha256=WxfiBldO7YXWJFATRjbhWLOnD1mk0b8Pc6HGQYOJZJA,221
2
- satcube/cloud_detection.py,sha256=QSzeqCF63kJHzejbrXKL10x-kLxK0iorHvJNALoHYbA,5848
2
+ satcube/cloud_detection.py,sha256=qmC_1hQVxdRzA03r6cML9AuSLQw_P8ZNNFz4Uji1hro,6109
3
3
  satcube/cloud_detection_old.py,sha256=7MviF8QlT2tj6QC3seepr8SZU0nHOK9Pji8AU94Z2q0,751
4
4
  satcube/dataclass.py,sha256=TAAKouyTts5eMtVXRmwWgJb5EaUXryEtkKMtt1O8TKM,934
5
- satcube/download.py,sha256=y7NHMSQQg7Vtn-nOlru3fxe4n00sirbG7P31JOfZBn0,1355
5
+ satcube/download.py,sha256=xwPIm6SWN_cev2wM0OzqN18ejPgnjuNVPxfeF7FhI9c,1397
6
6
  satcube/download_old.py,sha256=Y7dUgq7Gl7jVKHZl5x9cpxALN9T6dCjtZwNjBiq1CAA,2647
7
7
  satcube/main.py,sha256=BpQJbPXl6Ydj6X3pX2lFepH7w1-cfJ3LeTTsTmQih6s,14841
8
8
  satcube/utils.py,sha256=wQl4ZSrocSZSSU6hjwCA2CYIv8p3deiX8PUKxJRr3yc,1952
9
9
  satcube/utils_old.py,sha256=UBCI2oaL7E5MEjebobnyqGqgOtK6jU9O3t-c58JqZ0k,35057
10
- satcube-0.1.10.dist-info/LICENSE,sha256=YdB4BQMkMzWuKvXRIpQR4g91IQ_pwA5PSH2lNM97zFI,1070
11
- satcube-0.1.10.dist-info/METADATA,sha256=3hBb9BfFXIi6ZqMKCvJCCrVkFHbLPetMRpmHBr0Atpg,6686
12
- satcube-0.1.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
- satcube-0.1.10.dist-info/RECORD,,
10
+ satcube-0.1.12.dist-info/LICENSE,sha256=YdB4BQMkMzWuKvXRIpQR4g91IQ_pwA5PSH2lNM97zFI,1070
11
+ satcube-0.1.12.dist-info/METADATA,sha256=ta9-NbSV7U3z72K7fPKoSLtqP-TBWPDrCO0YUOXQ-zU,6686
12
+ satcube-0.1.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
+ satcube-0.1.12.dist-info/RECORD,,