RadGEEToolbox 1.6.10__py3-none-any.whl → 1.7.0__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.
- RadGEEToolbox/GenericCollection.py +2623 -0
- RadGEEToolbox/LandsatCollection.py +7 -1
- RadGEEToolbox/__init__.py +3 -1
- {radgeetoolbox-1.6.10.dist-info → radgeetoolbox-1.7.0.dist-info}/METADATA +9 -7
- radgeetoolbox-1.7.0.dist-info/RECORD +13 -0
- radgeetoolbox-1.6.10.dist-info/RECORD +0 -12
- {radgeetoolbox-1.6.10.dist-info → radgeetoolbox-1.7.0.dist-info}/WHEEL +0 -0
- {radgeetoolbox-1.6.10.dist-info → radgeetoolbox-1.7.0.dist-info}/licenses/LICENSE.txt +0 -0
- {radgeetoolbox-1.6.10.dist-info → radgeetoolbox-1.7.0.dist-info}/top_level.txt +0 -0
|
@@ -1640,9 +1640,13 @@ class LandsatCollection:
|
|
|
1640
1640
|
collection = self.collection
|
|
1641
1641
|
# Get the start and end dates of the entire collection.
|
|
1642
1642
|
date_range = collection.reduceColumns(ee.Reducer.minMax(), ["system:time_start"])
|
|
1643
|
-
|
|
1643
|
+
original_start_date = ee.Date(date_range.get('min'))
|
|
1644
1644
|
end_date = ee.Date(date_range.get('max'))
|
|
1645
1645
|
|
|
1646
|
+
start_year = original_start_date.get('year')
|
|
1647
|
+
start_month = original_start_date.get('month')
|
|
1648
|
+
start_date = ee.Date.fromYMD(start_year, start_month, 1)
|
|
1649
|
+
|
|
1646
1650
|
# Calculate the total number of months in the date range.
|
|
1647
1651
|
# The .round() is important for ensuring we get an integer.
|
|
1648
1652
|
num_months = end_date.difference(start_date, 'month').round()
|
|
@@ -3422,6 +3426,8 @@ class LandsatCollection:
|
|
|
3422
3426
|
When coordinates are provided, a radial buffer is applied around each coordinate to extract the statistics, where the size of the buffer is determined by the buffer_size argument (defaults to 1 meter).
|
|
3423
3427
|
The function returns a pandas DataFrame with the statistics for each coordinate and date, or optionally exports the data to a table in .csv format.
|
|
3424
3428
|
|
|
3429
|
+
NOTE: The expected input is a singleband image. If a multiband image is provided, the first band will be used for zonal statistic extraction, unless `band` is specified.
|
|
3430
|
+
|
|
3425
3431
|
Args:
|
|
3426
3432
|
geometries (ee.Geometry, ee.Feature, ee.FeatureCollection, list, or tuple): Input geometries for which to extract statistics. Can be a single ee.Geometry, an ee.Feature, an ee.FeatureCollection, a list of (lon, lat) tuples, or a list of ee.Geometry objects. Be careful to NOT provide coordinates as (lat, lon)!
|
|
3427
3433
|
band (str, optional): The name of the band to use for statistics. If None, the first band is used. Defaults to None.
|
RadGEEToolbox/__init__.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
GenericCollection__version__ = "1.7.0"
|
|
2
2
|
|
|
3
3
|
from .CollectionStitch import CollectionStitch, MosaicByDate
|
|
4
4
|
from .GetPalette import get_palette
|
|
5
5
|
from .LandsatCollection import LandsatCollection
|
|
6
6
|
from .Sentinel1Collection import Sentinel1Collection
|
|
7
7
|
from .Sentinel2Collection import Sentinel2Collection
|
|
8
|
+
from .GenericCollection import GenericCollection
|
|
8
9
|
from .VisParams import get_visualization_params
|
|
9
10
|
|
|
10
11
|
__all__ = [
|
|
@@ -14,5 +15,6 @@ __all__ = [
|
|
|
14
15
|
"LandsatCollection",
|
|
15
16
|
"Sentinel1Collection",
|
|
16
17
|
"Sentinel2Collection",
|
|
18
|
+
"GenericCollection",
|
|
17
19
|
"get_visualization_params",
|
|
18
20
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: RadGEEToolbox
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7.0
|
|
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,6 +43,8 @@ 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.0`, `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
|
+
|
|
46
48
|
***Table 1.*** *Comparison of functionality between RadGEEToolbox, eemont, and geetools.*
|
|
47
49
|
|
|
48
50
|
| Capability | **RadGEEToolbox** | **eemont** | **geetools** |
|
|
@@ -134,7 +136,7 @@ _________
|
|
|
134
136
|
- Efficient filtering, **cloud/shadow/water masking, threshold masking, spectral classification, and mosaicking** of Earth Engine image collections
|
|
135
137
|
- Collection management such as **collection merging and band renaming**
|
|
136
138
|
- Built-in support for computing **spectral indices** (see below for complete list)
|
|
137
|
-
- **Temporal reductions** (mean, median, min, etc.) and **monthly median** functionality
|
|
139
|
+
- **Temporal reductions** (mean, median, min, etc.) and **monthly median/mean/min/max** functionality
|
|
138
140
|
- Image anomaly calculation
|
|
139
141
|
- SAR utilities for **multilooking**, **speckle filtering**, and **backscatter conversion**
|
|
140
142
|
- Automated and flexible extraction of **transect and zonal statistics (supporting multiple coordinates or geometries)** across image collections
|
|
@@ -179,15 +181,15 @@ _____________
|
|
|
179
181
|
|
|
180
182
|
### Installing via pip
|
|
181
183
|
|
|
182
|
-
To install `RadGEEToolbox` version 1.
|
|
184
|
+
To install `RadGEEToolbox` version 1.7.0 using pip (NOTE: it is recommended to create a new virtual environment):
|
|
183
185
|
|
|
184
186
|
```bash
|
|
185
|
-
pip install RadGEEToolbox==1.
|
|
187
|
+
pip install RadGEEToolbox==1.7.0
|
|
186
188
|
```
|
|
187
189
|
|
|
188
190
|
### Installing via Conda
|
|
189
191
|
|
|
190
|
-
To install `RadGEEToolbox` version 1.
|
|
192
|
+
To install `RadGEEToolbox` version 1.7.0 using conda-forge (NOTE: it is recommended to create a new virtual environment):
|
|
191
193
|
|
|
192
194
|
```bash
|
|
193
195
|
conda install conda-forge::radgeetoolbox
|
|
@@ -218,7 +220,7 @@ To verify that `RadGEEToolbox` was installed correctly:
|
|
|
218
220
|
python -c "import RadGEEToolbox; print(RadGEEToolbox.__version__)"
|
|
219
221
|
```
|
|
220
222
|
|
|
221
|
-
You should see `1.
|
|
223
|
+
You should see `1.7.0` printed as the version number.
|
|
222
224
|
|
|
223
225
|
### Want to Visualize Data? Install These Too
|
|
224
226
|
|
|
@@ -258,7 +260,7 @@ from RadGEEToolbox import LandsatCollection
|
|
|
258
260
|
|
|
259
261
|
# 2. Authenticate & Initialize GEE API
|
|
260
262
|
ee.Authenticate()
|
|
261
|
-
ee.Initialize(project='my-cloud-project-ID) #replace with your Google Cloud project ID
|
|
263
|
+
ee.Initialize(project='my-cloud-project-ID') #replace with your Google Cloud project ID
|
|
262
264
|
|
|
263
265
|
# 3. Define study area boundary - in this case Lake Powell, Utah
|
|
264
266
|
study_area = ee.Geometry.Polygon(
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
RadGEEToolbox/CollectionStitch.py,sha256=dLRzJZLZ1QTJqqbWPElyTjxb1m0T_WuBTo6wNzcCXq4,3884
|
|
2
|
+
RadGEEToolbox/GenericCollection.py,sha256=jEges6kTn4JXA7dBLrByYhKVli4LIlMS3ndh4ME6xNg,130817
|
|
3
|
+
RadGEEToolbox/GetPalette.py,sha256=YpAE9lzI5aXWHJKs1SXwZ62e8nKo8zfjKSpz5oJQSA8,2872
|
|
4
|
+
RadGEEToolbox/LandsatCollection.py,sha256=Zc0vlFoCE7UuhBKSODpOIEC3oG4RmdJEXFnedSnK6B8,178197
|
|
5
|
+
RadGEEToolbox/Sentinel1Collection.py,sha256=w18ebXjhgBgh2_ZBbThd1xlT-C3gGtREFUpcqWlbdh0,93333
|
|
6
|
+
RadGEEToolbox/Sentinel2Collection.py,sha256=V1N8q4sk_GvoJUUonEcBYEvHI4beTaNFl2GBbG03ozY,147513
|
|
7
|
+
RadGEEToolbox/VisParams.py,sha256=4aQV4l_IA-CjMBUXYDDLQ2fQyA3USSRN0A3VY07dGQ8,8571
|
|
8
|
+
RadGEEToolbox/__init__.py,sha256=ISa20_SfGMR-B4GMsoRMhi8QJF6rSEjOfxR8fwKSt90,623
|
|
9
|
+
radgeetoolbox-1.7.0.dist-info/licenses/LICENSE.txt,sha256=5Xj9dwVkawz6d8zhCwJy0SmXvm0U4K_msJnOrkHLO1w,1089
|
|
10
|
+
radgeetoolbox-1.7.0.dist-info/METADATA,sha256=97vdZE6HZfatWd-Tu0kUUxncYEO-_i8yFUITNaiOZyk,16891
|
|
11
|
+
radgeetoolbox-1.7.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
radgeetoolbox-1.7.0.dist-info/top_level.txt,sha256=W2E520tugQoptDkhctKFbzsheL2l_DyYLKqKXkD9G_E,14
|
|
13
|
+
radgeetoolbox-1.7.0.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
RadGEEToolbox/CollectionStitch.py,sha256=dLRzJZLZ1QTJqqbWPElyTjxb1m0T_WuBTo6wNzcCXq4,3884
|
|
2
|
-
RadGEEToolbox/GetPalette.py,sha256=YpAE9lzI5aXWHJKs1SXwZ62e8nKo8zfjKSpz5oJQSA8,2872
|
|
3
|
-
RadGEEToolbox/LandsatCollection.py,sha256=F7h-xthoulnrFgGHn3V9rrldwEZ7V5KPKIlAHvOirm4,177817
|
|
4
|
-
RadGEEToolbox/Sentinel1Collection.py,sha256=w18ebXjhgBgh2_ZBbThd1xlT-C3gGtREFUpcqWlbdh0,93333
|
|
5
|
-
RadGEEToolbox/Sentinel2Collection.py,sha256=V1N8q4sk_GvoJUUonEcBYEvHI4beTaNFl2GBbG03ozY,147513
|
|
6
|
-
RadGEEToolbox/VisParams.py,sha256=4aQV4l_IA-CjMBUXYDDLQ2fQyA3USSRN0A3VY07dGQ8,8571
|
|
7
|
-
RadGEEToolbox/__init__.py,sha256=1b4xRQPEFKSIXvhaeEK_HehUb3kifb8goj6crRR_QyQ,531
|
|
8
|
-
radgeetoolbox-1.6.10.dist-info/licenses/LICENSE.txt,sha256=5Xj9dwVkawz6d8zhCwJy0SmXvm0U4K_msJnOrkHLO1w,1089
|
|
9
|
-
radgeetoolbox-1.6.10.dist-info/METADATA,sha256=jixh30J6joFrz0kUCfnQw_A-1HtUPQTxHoM13NBjeP8,16394
|
|
10
|
-
radgeetoolbox-1.6.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
-
radgeetoolbox-1.6.10.dist-info/top_level.txt,sha256=W2E520tugQoptDkhctKFbzsheL2l_DyYLKqKXkD9G_E,14
|
|
12
|
-
radgeetoolbox-1.6.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|