RadGEEToolbox 1.6.10__py3-none-any.whl → 1.7.1__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 +2711 -0
- RadGEEToolbox/GetPalette.py +136 -87
- RadGEEToolbox/LandsatCollection.py +468 -37
- RadGEEToolbox/Sentinel1Collection.py +603 -18
- RadGEEToolbox/Sentinel2Collection.py +464 -30
- RadGEEToolbox/VisParams.py +112 -194
- RadGEEToolbox/__init__.py +3 -1
- {radgeetoolbox-1.6.10.dist-info → radgeetoolbox-1.7.1.dist-info}/METADATA +11 -7
- radgeetoolbox-1.7.1.dist-info/RECORD +13 -0
- radgeetoolbox-1.6.10.dist-info/RECORD +0 -12
- {radgeetoolbox-1.6.10.dist-info → radgeetoolbox-1.7.1.dist-info}/WHEEL +0 -0
- {radgeetoolbox-1.6.10.dist-info → radgeetoolbox-1.7.1.dist-info}/licenses/LICENSE.txt +0 -0
- {radgeetoolbox-1.6.10.dist-info → radgeetoolbox-1.7.1.dist-info}/top_level.txt +0 -0
RadGEEToolbox/VisParams.py
CHANGED
|
@@ -1,221 +1,139 @@
|
|
|
1
1
|
import ee
|
|
2
2
|
from .GetPalette import get_palette
|
|
3
3
|
|
|
4
|
-
|
|
5
4
|
def get_visualization_params(
|
|
6
5
|
satellite, index, min_val=None, max_val=None, palette=None, scaled_bands=False
|
|
7
6
|
):
|
|
8
7
|
"""
|
|
9
|
-
Function to define visualization
|
|
8
|
+
Function to define visualization parameters for image visualization. Outputs a vis_params dictionary.
|
|
10
9
|
|
|
11
10
|
Args:
|
|
12
|
-
satellite (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
satellite (str): Denote satellite/source for visualization.
|
|
12
|
+
Options: 'Landsat', 'Sentinel2', 'Sentinel1', 'Generic' (for DEMs, Precip, etc.).
|
|
13
|
+
Case-insensitive.
|
|
14
|
+
index (str): Multispectral index or band to visualize.
|
|
15
|
+
Options include: 'TrueColor', 'NDVI', 'NDWI', 'MNDWI', 'EVI', 'SAVI', 'MSAVI', 'NDMI',
|
|
16
|
+
'NBR', 'NDSI', 'halite', 'gypsum', 'LST', 'NDTI', 'KIVU', '2BDA', 'Elevation',
|
|
17
|
+
'Precipitation', 'Evapotranspiration'.
|
|
18
|
+
min_val (int or float): Optional override for minimum value to stretch raster.
|
|
19
|
+
max_val (int or float): Optional override for maximum value to stretch raster.
|
|
20
|
+
palette (str or list): Optional override for color palette. Can be a list of hex codes or
|
|
21
|
+
a string name from GetPalette (e.g., 'ndvi', 'viridis', 'magma').
|
|
22
|
+
scaled_bands (bool): If True, indicates that surface reflectance bands are scaled (0-1) rather than raw DNs. Defaults to False.
|
|
17
23
|
|
|
18
24
|
Returns:
|
|
19
|
-
|
|
25
|
+
dict: vis_params dictionary to be used when visualizing an image on a map. Supplies min, max, bands, and palette.
|
|
20
26
|
"""
|
|
21
|
-
#
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"bands": ["gypsum"],
|
|
94
|
-
"palette": get_palette("ylord"),
|
|
95
|
-
},
|
|
96
|
-
"LST": {
|
|
97
|
-
"min": 0,
|
|
98
|
-
"max": 40,
|
|
99
|
-
"bands": ["LST"],
|
|
100
|
-
"palette": get_palette("thermal"),
|
|
101
|
-
},
|
|
102
|
-
"NDTI": {
|
|
103
|
-
"min": -0.2,
|
|
104
|
-
"max": 0.2,
|
|
105
|
-
"bands": ["ndti"],
|
|
106
|
-
"palette": get_palette("turbid"),
|
|
107
|
-
},
|
|
108
|
-
"KIVU": {
|
|
109
|
-
"min": -0.5,
|
|
110
|
-
"max": 0.2,
|
|
111
|
-
"bands": ["kivu"],
|
|
112
|
-
"palette": get_palette("algae"),
|
|
113
|
-
},
|
|
114
|
-
}
|
|
115
|
-
elif satellite == "Sentinel2" or satellite == "sentinel2":
|
|
116
|
-
if scaled_bands == False:
|
|
117
|
-
params_dict = {
|
|
118
|
-
"TrueColor": {"min": 0, "max": 3500, "bands": ["B4", "B3", "B2"]},
|
|
119
|
-
"NDVI": {
|
|
120
|
-
"min": 0.5,
|
|
121
|
-
"max": 0.9,
|
|
122
|
-
"bands": ["ndvi"],
|
|
123
|
-
"palette": get_palette("greens"),
|
|
124
|
-
},
|
|
125
|
-
"NDWI": {
|
|
126
|
-
"min": -0.2,
|
|
127
|
-
"max": 0.2,
|
|
128
|
-
"bands": ["ndwi"],
|
|
129
|
-
"palette": get_palette("inferno"),
|
|
130
|
-
},
|
|
131
|
-
"halite": {
|
|
132
|
-
"min": 0.1,
|
|
133
|
-
"max": 0.7,
|
|
134
|
-
"bands": ["halite"],
|
|
135
|
-
"palette": get_palette("haline"),
|
|
136
|
-
},
|
|
137
|
-
"gypsum": {
|
|
138
|
-
"min": 0.0,
|
|
139
|
-
"max": 0.7,
|
|
140
|
-
"bands": ["gypsum"],
|
|
141
|
-
"palette": get_palette("ylord"),
|
|
142
|
-
},
|
|
143
|
-
"NDTI": {
|
|
144
|
-
"min": -0.2,
|
|
145
|
-
"max": 0.5,
|
|
146
|
-
"bands": ["ndti"],
|
|
147
|
-
"palette": get_palette("turbid"),
|
|
148
|
-
},
|
|
149
|
-
"2BDA": {
|
|
150
|
-
"min": 0.5,
|
|
151
|
-
"max": 1.75,
|
|
152
|
-
"bands": ["2BDA"],
|
|
153
|
-
"palette": get_palette("algae"),
|
|
154
|
-
},
|
|
155
|
-
}
|
|
156
|
-
else:
|
|
157
|
-
params_dict = {
|
|
158
|
-
"TrueColor": {"min": 0, "max": 1, "bands": ["B4", "B3", "B2"]},
|
|
159
|
-
"NDVI": {
|
|
160
|
-
"min": 0.5,
|
|
161
|
-
"max": 0.9,
|
|
162
|
-
"bands": ["ndvi"],
|
|
163
|
-
"palette": get_palette("greens"),
|
|
164
|
-
},
|
|
165
|
-
"NDWI": {
|
|
166
|
-
"min": -0.2,
|
|
167
|
-
"max": 0.2,
|
|
168
|
-
"bands": ["ndwi"],
|
|
169
|
-
"palette": get_palette("inferno"),
|
|
170
|
-
},
|
|
171
|
-
"halite": {
|
|
172
|
-
"min": 0.1,
|
|
173
|
-
"max": 0.7,
|
|
174
|
-
"bands": ["halite"],
|
|
175
|
-
"palette": get_palette("haline"),
|
|
176
|
-
},
|
|
177
|
-
"gypsum": {
|
|
178
|
-
"min": 0.0,
|
|
179
|
-
"max": 0.7,
|
|
180
|
-
"bands": ["gypsum"],
|
|
181
|
-
"palette": get_palette("ylord"),
|
|
182
|
-
},
|
|
183
|
-
"NDTI": {
|
|
184
|
-
"min": -0.2,
|
|
185
|
-
"max": 0.5,
|
|
186
|
-
"bands": ["ndti"],
|
|
187
|
-
"palette": get_palette("turbid"),
|
|
188
|
-
},
|
|
189
|
-
"2BDA": {
|
|
190
|
-
"min": 0.5,
|
|
191
|
-
"max": 1.75,
|
|
192
|
-
"bands": ["2BDA"],
|
|
193
|
-
"palette": get_palette("algae"),
|
|
194
|
-
},
|
|
195
|
-
}
|
|
27
|
+
# Normalize input
|
|
28
|
+
satellite_lower = satellite.lower() if satellite else "generic"
|
|
29
|
+
|
|
30
|
+
# --- Landsat ---
|
|
31
|
+
if "landsat" in satellite_lower:
|
|
32
|
+
tc_min = 0
|
|
33
|
+
tc_max = 1 if scaled_bands else 30000
|
|
34
|
+
|
|
35
|
+
params_dict = {
|
|
36
|
+
"TrueColor": {"min": tc_min, "max": tc_max, "bands": ["SR_B4", "SR_B3", "SR_B2"]},
|
|
37
|
+
"NDVI": {"min": 0, "max": 1, "bands": ["ndvi"], "palette": get_palette("ndvi")},
|
|
38
|
+
"NDWI": {"min": -0.5, "max": 0.5, "bands": ["ndwi"], "palette": get_palette("ndwi")},
|
|
39
|
+
"MNDWI": {"min": -0.5, "max": 0.5, "bands": ["mndwi"], "palette": get_palette("ndwi")},
|
|
40
|
+
"EVI": {"min": 0, "max": 1, "bands": ["evi"], "palette": get_palette("ndvi")},
|
|
41
|
+
"SAVI": {"min": 0, "max": 1, "bands": ["savi"], "palette": get_palette("ndvi")},
|
|
42
|
+
"MSAVI": {"min": 0, "max": 1, "bands": ["msavi"], "palette": get_palette("ndvi")},
|
|
43
|
+
"NDMI": {"min": -0.8, "max": 0.8, "bands": ["ndmi"], "palette": get_palette("ocean")},
|
|
44
|
+
"NBR": {"min": -0.5, "max": 1, "bands": ["nbr"], "palette": get_palette("magma")},
|
|
45
|
+
"NDSI": {"min": -0.5, "max": 1, "bands": ["ndsi"], "palette": get_palette("blues")},
|
|
46
|
+
"halite": {"min": 0.1, "max": 0.5, "bands": ["halite"], "palette": get_palette("haline")},
|
|
47
|
+
"gypsum": {"min": 0.0, "max": 0.5, "bands": ["gypsum"], "palette": get_palette("ylord")},
|
|
48
|
+
"LST": {"min": 0, "max": 40, "bands": ["LST"], "palette": get_palette("thermal")},
|
|
49
|
+
"NDTI": {"min": -0.2, "max": 0.2, "bands": ["ndti"], "palette": get_palette("turbid")},
|
|
50
|
+
"KIVU": {"min": -0.5, "max": 0.2, "bands": ["kivu"], "palette": get_palette("algae")},
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
# --- Sentinel-2 ---
|
|
54
|
+
elif "sentinel2" in satellite_lower:
|
|
55
|
+
tc_min = 0
|
|
56
|
+
tc_max = 1 if scaled_bands else 3500
|
|
57
|
+
|
|
58
|
+
params_dict = {
|
|
59
|
+
"TrueColor": {"min": tc_min, "max": tc_max, "bands": ["B4", "B3", "B2"]},
|
|
60
|
+
"NDVI": {"min": 0, "max": 1, "bands": ["ndvi"], "palette": get_palette("ndvi")},
|
|
61
|
+
"NDWI": {"min": -0.5, "max": 0.5, "bands": ["ndwi"], "palette": get_palette("ndwi")},
|
|
62
|
+
"MNDWI": {"min": -0.5, "max": 0.5, "bands": ["mndwi"], "palette": get_palette("ndwi")},
|
|
63
|
+
"EVI": {"min": 0, "max": 1, "bands": ["evi"], "palette": get_palette("ndvi")},
|
|
64
|
+
"SAVI": {"min": 0, "max": 1, "bands": ["savi"], "palette": get_palette("ndvi")},
|
|
65
|
+
"MSAVI": {"min": 0, "max": 1, "bands": ["msavi"], "palette": get_palette("ndvi")},
|
|
66
|
+
"NDMI": {"min": -0.8, "max": 0.8, "bands": ["ndmi"], "palette": get_palette("ocean")},
|
|
67
|
+
"NBR": {"min": -0.5, "max": 1, "bands": ["nbr"], "palette": get_palette("magma")},
|
|
68
|
+
"NDSI": {"min": -0.5, "max": 1, "bands": ["ndsi"], "palette": get_palette("blues")},
|
|
69
|
+
"halite": {"min": 0.1, "max": 0.7, "bands": ["halite"], "palette": get_palette("haline")},
|
|
70
|
+
"gypsum": {"min": 0.0, "max": 0.7, "bands": ["gypsum"], "palette": get_palette("ylord")},
|
|
71
|
+
"NDTI": {"min": -0.2, "max": 0.5, "bands": ["ndti"], "palette": get_palette("turbid")},
|
|
72
|
+
"2BDA": {"min": 0, "max": 2, "bands": ["2BDA"], "palette": get_palette("algae")},
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
# --- Sentinel-1 ---
|
|
76
|
+
elif "sentinel1" in satellite_lower:
|
|
77
|
+
params_dict = {
|
|
78
|
+
"VV": {"min": -25, "max": 0, "bands": ["VV"]},
|
|
79
|
+
"VH": {"min": -30, "max": -5, "bands": ["VH"]},
|
|
80
|
+
"HH": {"min": -25, "max": 0, "bands": ["HH"]},
|
|
81
|
+
"HV": {"min": -30, "max": -5, "bands": ["HV"]},
|
|
82
|
+
"RGB": {"min": [-20, -25, 1], "max": [0, -5, 15], "bands": ["VV", "VH", "VV/VH"]},
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
# --- Generic (DEM, Precipitation, ET, etc.) ---
|
|
86
|
+
elif "generic" in satellite_lower or satellite is None:
|
|
87
|
+
params_dict = {
|
|
88
|
+
"Elevation": {"min": 0, "max": 3000, "bands": ["elevation"], "palette": get_palette("dem")},
|
|
89
|
+
"DEM": {"min": 0, "max": 3000, "bands": ["elevation"], "palette": get_palette("dem")},
|
|
90
|
+
"Terrain": {"min": 0, "max": 3000, "bands": ["elevation"], "palette": get_palette("terrain")},
|
|
91
|
+
"Precipitation": {"min": 0, "max": 2000, "bands": ["precipitation"], "palette": get_palette("precipitation")},
|
|
92
|
+
"Evapotranspiration": {"min": 0, "max": 1000, "bands": ["et"], "palette": get_palette("evapotranspiration")},
|
|
93
|
+
"ET": {"min": 0, "max": 1000, "bands": ["et"], "palette": get_palette("evapotranspiration")},
|
|
94
|
+
"NDVI": {"min": 0, "max": 1, "bands": ["ndvi"], "palette": get_palette("ndvi")},
|
|
95
|
+
"NDWI": {"min": -0.5, "max": 0.5, "bands": ["ndwi"], "palette": get_palette("ndwi")},
|
|
96
|
+
"Temperature": {"min": 270, "max": 310, "bands": ["temperature"], "palette": get_palette("thermal")},
|
|
97
|
+
}
|
|
98
|
+
|
|
196
99
|
else:
|
|
197
100
|
raise ValueError(
|
|
198
|
-
"Incorrect definition of satellite. Options: 'Landsat', '
|
|
101
|
+
f"Incorrect definition of satellite '{satellite}'. Options: 'Landsat', 'Sentinel2', 'Sentinel1', or 'Generic'."
|
|
199
102
|
)
|
|
200
103
|
|
|
201
|
-
#
|
|
104
|
+
# --- Retrieval & Override Logic ---
|
|
105
|
+
|
|
106
|
+
# Get default params for the requested index
|
|
202
107
|
params = params_dict.get(index, None)
|
|
203
108
|
if params is None:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
109
|
+
# Fallback: If index isn't a known key, create a basic config assuming 'index' is the band name
|
|
110
|
+
# This makes the function flexible for unknown bands
|
|
111
|
+
params = {"bands": [index]}
|
|
112
|
+
# Default min/max/palette if creating a generic fallback (user overrides encouraged)
|
|
113
|
+
if min_val is None: params["min"] = 0
|
|
114
|
+
if max_val is None: params["max"] = 1
|
|
115
|
+
|
|
116
|
+
print(f"Warning: Index '{index}' not explicitly defined for '{satellite}'. Using '{index}' as band name with default 0-1 stretch.")
|
|
207
117
|
|
|
208
|
-
# Override
|
|
118
|
+
# Override values if provided
|
|
209
119
|
if min_val is not None:
|
|
210
120
|
params["min"] = min_val
|
|
211
121
|
if max_val is not None:
|
|
212
122
|
params["max"] = max_val
|
|
123
|
+
|
|
213
124
|
if palette is not None:
|
|
214
|
-
#
|
|
125
|
+
# If palette is a string name, look it up; otherwise assume it's a list of colors
|
|
215
126
|
if isinstance(palette, str):
|
|
216
|
-
|
|
217
|
-
if
|
|
218
|
-
|
|
219
|
-
|
|
127
|
+
fetched_palette = get_palette(palette)
|
|
128
|
+
if fetched_palette is not None:
|
|
129
|
+
params["palette"] = fetched_palette
|
|
130
|
+
else:
|
|
131
|
+
# Assume user provided a custom string that isn't in our dictionary?
|
|
132
|
+
# Actually, GEE usually expects a list. If it's a string not in our dict,
|
|
133
|
+
# it might be a single hex code or error.
|
|
134
|
+
# We'll assume it's a custom palette name we don't know, or just pass it through if valid.
|
|
135
|
+
pass
|
|
136
|
+
else:
|
|
137
|
+
params["palette"] = palette
|
|
220
138
|
|
|
221
139
|
return params
|
RadGEEToolbox/__init__.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
GenericCollection__version__ = "1.7.1"
|
|
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.1
|
|
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.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`.
|
|
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.1 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.1
|
|
186
188
|
```
|
|
187
189
|
|
|
188
190
|
### Installing via Conda
|
|
189
191
|
|
|
190
|
-
To install `RadGEEToolbox` version 1.
|
|
192
|
+
To install `RadGEEToolbox` version 1.7.1 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.1` 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(
|
|
@@ -320,6 +322,8 @@ Then, directly plot `water_area_time_series` using Matplotlib as shown below
|
|
|
320
322
|
|
|
321
323
|
For details about Sentinel-1 SAR and Sentinel-2 MSI modules, and all other available Landsat or cross-module functions, please refer to the [RadGEEToolbox documentation](https://radgeetoolbox.readthedocs.io/en/latest/). You can also explore [`/Example Notebooks`](https://github.com/radwinskis/RadGEEToolbox/tree/main/Example%20Notebooks) for more usage examples.
|
|
322
324
|
|
|
325
|
+
> NOTE for those newer to Python: when you see ***`property`*** next to the function name in the [RadGEEToolbox documentation](https://radgeetoolbox.readthedocs.io/en/latest/), you do not need to add parentheses at the end of the function when calling the function. For example: ```my_image_collection.add_date_property``` calls the `add_date_property` property function upon the `my_image_collection` image collection - no parentheses needed. All other non-property functions require one or more arguments to be specified by the user, and will require the use of parentheses to define the function arguments.
|
|
326
|
+
|
|
323
327
|
________
|
|
324
328
|
|
|
325
329
|
|
|
@@ -0,0 +1,13 @@
|
|
|
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,,
|
|
@@ -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
|