RadGEEToolbox 1.7.1__py3-none-any.whl → 1.7.2__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.
@@ -365,17 +365,18 @@ class GenericCollection:
365
365
  # Storing the result in the instance variable to avoid redundant calculations
366
366
  self._PixelAreaSumCollection = AreaCollection
367
367
 
368
+ prop_names = band_name if isinstance(band_name, list) else [band_name]
369
+
368
370
  # If an export path is provided, the area data will be exported to a CSV file
369
371
  if area_data_export_path:
370
- GenericCollection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=[band_name], file_path=area_data_export_path+'.csv')
371
-
372
+ GenericCollection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=prop_names, file_path=area_data_export_path+'.csv')
372
373
  # Returning the result in the desired format based on output_type argument or raising an error for invalid input
373
374
  if output_type == 'ImageCollection' or output_type == 'ee.ImageCollection':
374
375
  return self._PixelAreaSumCollection
375
376
  elif output_type == 'GenericCollection':
376
377
  return GenericCollection(collection=self._PixelAreaSumCollection)
377
378
  elif output_type == 'DataFrame' or output_type == 'Pandas' or output_type == 'pd' or output_type == 'dataframe' or output_type == 'df':
378
- return GenericCollection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=[band_name])
379
+ return GenericCollection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=prop_names)
379
380
  else:
380
381
  raise ValueError("Incorrect `output_type`. The `output_type` argument must be one of the following: 'ImageCollection', 'ee.ImageCollection', 'GenericCollection', 'DataFrame', 'Pandas', 'pd', 'dataframe', or 'df'.")
381
382
 
@@ -552,6 +553,8 @@ class GenericCollection:
552
553
  # Ensure property_names is a list for consistent processing
553
554
  if isinstance(property_names, str):
554
555
  property_names = [property_names]
556
+ elif isinstance(property_names, list):
557
+ property_names = property_names
555
558
 
556
559
  # Ensure properties are included without duplication, including 'Date_Filter'
557
560
  all_properties_to_fetch = list(set(['Date_Filter'] + property_names))
@@ -1260,17 +1260,18 @@ class LandsatCollection:
1260
1260
  # Storing the result in the instance variable to avoid redundant calculations
1261
1261
  self._PixelAreaSumCollection = AreaCollection
1262
1262
 
1263
+ prop_names = band_name if isinstance(band_name, list) else [band_name]
1264
+
1263
1265
  # If an export path is provided, the area data will be exported to a CSV file
1264
1266
  if area_data_export_path:
1265
- LandsatCollection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=[band_name], file_path=area_data_export_path+'.csv')
1266
-
1267
+ LandsatCollection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=prop_names, file_path=area_data_export_path+'.csv')
1267
1268
  # Returning the result in the desired format based on output_type argument or raising an error for invalid input
1268
1269
  if output_type == 'ImageCollection' or output_type == 'ee.ImageCollection':
1269
1270
  return self._PixelAreaSumCollection
1270
1271
  elif output_type == 'LandsatCollection':
1271
1272
  return LandsatCollection(collection=self._PixelAreaSumCollection)
1272
1273
  elif output_type == 'DataFrame' or output_type == 'Pandas' or output_type == 'pd' or output_type == 'dataframe' or output_type == 'df':
1273
- return LandsatCollection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=[band_name])
1274
+ return LandsatCollection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=prop_names)
1274
1275
  else:
1275
1276
  raise ValueError("Incorrect `output_type`. The `output_type` argument must be one of the following: 'ImageCollection', 'ee.ImageCollection', 'LandsatCollection', 'DataFrame', 'Pandas', 'pd', 'dataframe', or 'df'.")
1276
1277
 
@@ -1518,6 +1519,8 @@ class LandsatCollection:
1518
1519
  # Ensure property_names is a list for consistent processing
1519
1520
  if isinstance(property_names, str):
1520
1521
  property_names = [property_names]
1522
+ elif isinstance(property_names, list):
1523
+ property_names = property_names
1521
1524
 
1522
1525
  # Ensure properties are included without duplication, including 'Date_Filter'
1523
1526
  all_properties_to_fetch = list(set(['Date_Filter'] + property_names))
@@ -339,17 +339,18 @@ class Sentinel1Collection:
339
339
  # Storing the result in the instance variable to avoid redundant calculations
340
340
  self._PixelAreaSumCollection = AreaCollection
341
341
 
342
+ prop_names = band_name if isinstance(band_name, list) else [band_name]
343
+
342
344
  # If an export path is provided, the area data will be exported to a CSV file
343
345
  if area_data_export_path:
344
- Sentinel1Collection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=[band_name], file_path=area_data_export_path+'.csv')
345
-
346
+ Sentinel1Collection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=prop_names, file_path=area_data_export_path+'.csv')
346
347
  # Returning the result in the desired format based on output_type argument or raising an error for invalid input
347
348
  if output_type == 'ImageCollection' or output_type == 'ee.ImageCollection':
348
349
  return self._PixelAreaSumCollection
349
350
  elif output_type == 'Sentinel1Collection':
350
351
  return Sentinel1Collection(collection=self._PixelAreaSumCollection)
351
352
  elif output_type == 'DataFrame' or output_type == 'Pandas' or output_type == 'pd' or output_type == 'dataframe' or output_type == 'df':
352
- return Sentinel1Collection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=[band_name])
353
+ return Sentinel1Collection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=prop_names)
353
354
  else:
354
355
  raise ValueError("Incorrect `output_type`. The `output_type` argument must be one of the following: 'ImageCollection', 'ee.ImageCollection', 'Sentinel1Collection', 'DataFrame', 'Pandas', 'pd', 'dataframe', or 'df'.")
355
356
 
@@ -853,6 +854,8 @@ class Sentinel1Collection:
853
854
  # Ensure property_names is a list for consistent processing
854
855
  if isinstance(property_names, str):
855
856
  property_names = [property_names]
857
+ elif isinstance(property_names, list):
858
+ property_names = property_names
856
859
 
857
860
  # Ensure properties are included without duplication, including 'Date_Filter'
858
861
  all_properties_to_fetch = list(set(['Date_Filter'] + property_names))
@@ -844,17 +844,18 @@ class Sentinel2Collection:
844
844
  # Storing the result in the instance variable to avoid redundant calculations
845
845
  self._PixelAreaSumCollection = AreaCollection
846
846
 
847
+ prop_names = band_name if isinstance(band_name, list) else [band_name]
848
+
847
849
  # If an export path is provided, the area data will be exported to a CSV file
848
850
  if area_data_export_path:
849
- Sentinel2Collection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=[band_name], file_path=area_data_export_path+'.csv')
850
-
851
+ Sentinel2Collection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=prop_names, file_path=area_data_export_path+'.csv')
851
852
  # Returning the result in the desired format based on output_type argument or raising an error for invalid input
852
853
  if output_type == 'ImageCollection' or output_type == 'ee.ImageCollection':
853
854
  return self._PixelAreaSumCollection
854
855
  elif output_type == 'Sentinel2Collection':
855
856
  return Sentinel2Collection(collection=self._PixelAreaSumCollection)
856
857
  elif output_type == 'DataFrame' or output_type == 'Pandas' or output_type == 'pd' or output_type == 'dataframe' or output_type == 'df':
857
- return Sentinel2Collection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=[band_name])
858
+ return Sentinel2Collection(collection=self._PixelAreaSumCollection).ExportProperties(property_names=prop_names)
858
859
  else:
859
860
  raise ValueError("Incorrect `output_type`. The `output_type` argument must be one of the following: 'ImageCollection', 'ee.ImageCollection', 'Sentinel2Collection', 'DataFrame', 'Pandas', 'pd', 'dataframe', or 'df'.")
860
861
 
@@ -1010,6 +1011,8 @@ class Sentinel2Collection:
1010
1011
  # Ensure property_names is a list for consistent processing
1011
1012
  if isinstance(property_names, str):
1012
1013
  property_names = [property_names]
1014
+ elif isinstance(property_names, list):
1015
+ property_names = property_names
1013
1016
 
1014
1017
  # Ensure properties are included without duplication, including 'Date_Filter'
1015
1018
  all_properties_to_fetch = list(set(['Date_Filter'] + property_names))
RadGEEToolbox/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- GenericCollection__version__ = "1.7.1"
1
+ __version__ = "1.7.2"
2
2
 
3
3
  from .CollectionStitch import CollectionStitch, MosaicByDate
4
4
  from .GetPalette import get_palette
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RadGEEToolbox
3
- Version: 1.7.1
3
+ Version: 1.7.2
4
4
  Summary: Streamlined Multispectral & SAR Analysis for Google Earth Engine Python API
5
5
  Home-page: https://github.com/radwinskis/RadGEEToolbox
6
6
  Author: Mark Radwin
@@ -43,7 +43,7 @@ Designed for both new and advanced users of Google Earth Engine, RadGEEToolbox m
43
43
 
44
44
  Although similar packages exist (eemont, geetools, etc.), `RadGEEToolbox` extends functionality and provides cohesive, chainable methods for research oriented projects working with Landsat TM & OLI, Sentinel-1 SAR, and/or Sentinel-2 MSI datasets (Table 1). The ultimate goal of `RadGEEToolbox` is to make satellite image processing easier and faster for real world applications relying on the most commonly utilized remote sensing platforms.
45
45
 
46
- As of version `1.7.1`, `RadGEEToolbox` supports any generic image collection via the `GenericCollection` module which allows for utilization of the same data management, temporal reduction, zonal statistics, and data export tools available for the `LandsatCollection`, `Sentinel1Collection`, and `Sentinel2Collection` modules. This allows users to provide their own image collection of choice, such as PRISM or MODIS data, to benefit from the tools available with `RadGEEToolbox`.
46
+ As of version `1.7.2`, `RadGEEToolbox` supports any generic image collection via the `GenericCollection` module which allows for utilization of the same data management, temporal reduction, zonal statistics, and data export tools available for the `LandsatCollection`, `Sentinel1Collection`, and `Sentinel2Collection` modules. This allows users to provide their own image collection of choice, such as PRISM or MODIS data, to benefit from the tools available with `RadGEEToolbox`.
47
47
 
48
48
  ***Table 1.*** *Comparison of functionality between RadGEEToolbox, eemont, and geetools.*
49
49
 
@@ -181,15 +181,15 @@ _____________
181
181
 
182
182
  ### Installing via pip
183
183
 
184
- To install `RadGEEToolbox` version 1.7.1 using pip (NOTE: it is recommended to create a new virtual environment):
184
+ To install `RadGEEToolbox` version 1.7.2 using pip (NOTE: it is recommended to create a new virtual environment):
185
185
 
186
186
  ```bash
187
- pip install RadGEEToolbox==1.7.1
187
+ pip install RadGEEToolbox==1.7.2
188
188
  ```
189
189
 
190
190
  ### Installing via Conda
191
191
 
192
- To install `RadGEEToolbox` version 1.7.1 using conda-forge (NOTE: it is recommended to create a new virtual environment):
192
+ To install `RadGEEToolbox` version 1.7.2 using conda-forge (NOTE: it is recommended to create a new virtual environment):
193
193
 
194
194
  ```bash
195
195
  conda install conda-forge::radgeetoolbox
@@ -220,7 +220,7 @@ To verify that `RadGEEToolbox` was installed correctly:
220
220
  python -c "import RadGEEToolbox; print(RadGEEToolbox.__version__)"
221
221
  ```
222
222
 
223
- You should see `1.7.1` printed as the version number.
223
+ You should see `1.7.2` printed as the version number.
224
224
 
225
225
  ### Want to Visualize Data? Install These Too
226
226
 
@@ -0,0 +1,13 @@
1
+ RadGEEToolbox/CollectionStitch.py,sha256=dLRzJZLZ1QTJqqbWPElyTjxb1m0T_WuBTo6wNzcCXq4,3884
2
+ RadGEEToolbox/GenericCollection.py,sha256=7ykideokw3zRi27Hiq6PwhgQeAs9Ju_3-HY8UInnWjo,136872
3
+ RadGEEToolbox/GetPalette.py,sha256=Ve7vYzs0EYHZyvFwaB_k8FR4uo5RRDy4pcq7eBK9yM0,7145
4
+ RadGEEToolbox/LandsatCollection.py,sha256=nJOwA_vNOFV_cVrLEbV-BOoDwbhMiOY1T2ryeIS4kOM,201385
5
+ RadGEEToolbox/Sentinel1Collection.py,sha256=zKc3oKcglYjXyV856u40Jc9ldm-zBNA79tQgq7NhiRQ,125524
6
+ RadGEEToolbox/Sentinel2Collection.py,sha256=69cGZxkbZdpQQB9UatSUrYc8b3CzTw6ynOwe4E9nFV8,171243
7
+ RadGEEToolbox/VisParams.py,sha256=ONjnJd83jfaM1r-hbtlcIxiBOGMoJGtdHF0mw1iaw5c,8183
8
+ RadGEEToolbox/__init__.py,sha256=4Rfpi4T4AyZMfK4TujNXdlCqCWdlvdHItwPWgkqypDk,606
9
+ radgeetoolbox-1.7.2.dist-info/licenses/LICENSE.txt,sha256=5Xj9dwVkawz6d8zhCwJy0SmXvm0U4K_msJnOrkHLO1w,1089
10
+ radgeetoolbox-1.7.2.dist-info/METADATA,sha256=0L-GFe_BUd_pp3nAIySE3u88bGyuzR7zUs8Na0Bie6k,17504
11
+ radgeetoolbox-1.7.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ radgeetoolbox-1.7.2.dist-info/top_level.txt,sha256=W2E520tugQoptDkhctKFbzsheL2l_DyYLKqKXkD9G_E,14
13
+ radgeetoolbox-1.7.2.dist-info/RECORD,,
@@ -1,13 +0,0 @@
1
- RadGEEToolbox/CollectionStitch.py,sha256=dLRzJZLZ1QTJqqbWPElyTjxb1m0T_WuBTo6wNzcCXq4,3884
2
- RadGEEToolbox/GenericCollection.py,sha256=bzsywaoq3tdpmvLsICI_Te3nbgYQmcfVwir-Eo_7SHQ,136701
3
- RadGEEToolbox/GetPalette.py,sha256=Ve7vYzs0EYHZyvFwaB_k8FR4uo5RRDy4pcq7eBK9yM0,7145
4
- RadGEEToolbox/LandsatCollection.py,sha256=w8Y5FHZPEw6mGi_xzE9xtBQCmhe7wPmTICfU_dWLjEU,201214
5
- RadGEEToolbox/Sentinel1Collection.py,sha256=1fH4JgROjSD73nUhkfOw-erpnMCsAhhqpaHSNL99u1o,125353
6
- RadGEEToolbox/Sentinel2Collection.py,sha256=B8LWgCuzbpf9mGLcH4wnLx7jdjadbb0AisPnFFtTJvs,171072
7
- RadGEEToolbox/VisParams.py,sha256=ONjnJd83jfaM1r-hbtlcIxiBOGMoJGtdHF0mw1iaw5c,8183
8
- RadGEEToolbox/__init__.py,sha256=gIzVzpUzTD9_5lvvXNCD8aLx91FUBXUhVgUEDEV_534,623
9
- radgeetoolbox-1.7.1.dist-info/licenses/LICENSE.txt,sha256=5Xj9dwVkawz6d8zhCwJy0SmXvm0U4K_msJnOrkHLO1w,1089
10
- radgeetoolbox-1.7.1.dist-info/METADATA,sha256=krn1-S8sIElabSBRHHuORU6XJJmqG2DDy3aUxSIggEI,17504
11
- radgeetoolbox-1.7.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- radgeetoolbox-1.7.1.dist-info/top_level.txt,sha256=W2E520tugQoptDkhctKFbzsheL2l_DyYLKqKXkD9G_E,14
13
- radgeetoolbox-1.7.1.dist-info/RECORD,,