RadGEEToolbox 1.7.3__py3-none-any.whl → 1.7.5__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.
@@ -1,7 +1,7 @@
1
1
  import ee
2
+ import warnings
2
3
 
3
-
4
- def CollectionStitch(img_col1, img_col2, copy_properties_from=1):
4
+ def collectionStitch(img_col1, img_col2, copy_properties_from=1):
5
5
  """
6
6
  Function to mosaic two RadGEETools image collection objects which share image dates.
7
7
  Mosaics are only formed for dates where both image collections have images. Server-side friendly.
@@ -42,8 +42,14 @@ def CollectionStitch(img_col1, img_col2, copy_properties_from=1):
42
42
  new_col = ee.ImageCollection.fromImages(image_list)
43
43
  return new_col
44
44
 
45
+ def CollectionStitch(img_col1, img_col2, copy_properties_from=1):
46
+ warnings.warn(
47
+ "CollectionStitch is deprecated. Please use collectionStitch instead.",
48
+ DeprecationWarning,
49
+ stacklevel=2)
50
+ return collectionStitch(img_col1, img_col2, copy_properties_from)
45
51
 
46
- def MosaicByDate(img_col):
52
+ def mosaicByDate(img_col):
47
53
  """
48
54
  Function to mosaic collection images that share the same date. Server-side friendly. Requires images to have date property of "Date_Filter"
49
55
 
@@ -80,3 +86,10 @@ def MosaicByDate(img_col):
80
86
 
81
87
  # Convert the list of mosaics to an ImageCollection
82
88
  return new_col
89
+
90
+ def MosaicByDate(img_col):
91
+ warnings.warn(
92
+ "MosaicByDate is deprecated. Please use mosaicByDate instead.",
93
+ DeprecationWarning,
94
+ stacklevel=2)
95
+ return mosaicByDate(img_col)
RadGEEToolbox/Export.py CHANGED
@@ -11,6 +11,22 @@ class ExportToDrive:
11
11
  `.dates` property for naming files, ensuring readable filenames (e.g., 'MyExport_2023-06-01')
12
12
  instead of long system IDs.
13
13
 
14
+ IMPORTANT: After creating an instance of this class, you must call the `export()` method
15
+ to initiate the export process.
16
+
17
+ For example, to export a RadGEEToolbox collection:
18
+ ```python
19
+ collection = LandsatCollection(...) # Assume this is a RadGEEToolbox object
20
+ exporter = ExportToDrive(
21
+ input_data=collection,
22
+ description="Landsat_Export",
23
+ folder="GEE_Exports",
24
+ scale=30,
25
+ name_pattern="{date}",
26
+ )
27
+ exporter.export()
28
+ ```
29
+
14
30
  Args:
15
31
  input_data (ee.Image, ee.ImageCollection, or RadGEEToolbox object): The data to export.
16
32
  Can be a single image, a collection, or a RadGEEToolbox wrapper object.