dea-tools 0.4.5.dev1__tar.gz → 0.4.5.dev6__tar.gz
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.
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/PKG-INFO +1 -1
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/landcover.py +24 -139
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/.gitignore +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/LICENSE +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/README.md +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/__init__.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/__main__.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/app/__init__.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/app/animations.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/app/changefilmstrips.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/app/crophealth.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/app/deacoastlines.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/app/geomedian.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/app/imageexport.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/app/miningrehab.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/app/wetlandsinsighttool.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/app/widgetconstructors.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/bandindices.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/bom.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/classification.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/coastal.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/dask.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/datahandling.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/maps.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/mosaics/README.md +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/mosaics/__init__.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/mosaics/cog.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/mosaics/styling.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/mosaics/utils.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/mosaics/vrt.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/plotting.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/spatial.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/temporal.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/validation.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/waterbodies.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/Tools/dea_tools/wetlands.py +0 -0
- {dea_tools-0.4.5.dev1 → dea_tools-0.4.5.dev6}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dea-tools
|
|
3
|
-
Version: 0.4.5.
|
|
3
|
+
Version: 0.4.5.dev6
|
|
4
4
|
Summary: Open-source tools for geospatial analysis with Digital Earth Australia, Open Data Cube, and Xarray
|
|
5
5
|
Project-URL: Homepage, https://knowledge.dea.ga.gov.au/notebooks/Tools/
|
|
6
6
|
Project-URL: Repository, https://github.com/GeoscienceAustralia/dea-notebooks
|
|
@@ -19,7 +19,7 @@ on GitHub (https://github.com/GeoscienceAustralia/dea-notebooks/issues/new).
|
|
|
19
19
|
|
|
20
20
|
Last modified: May 2025
|
|
21
21
|
"""
|
|
22
|
-
|
|
22
|
+
import odc.geo.xr
|
|
23
23
|
import matplotlib.pyplot as plt
|
|
24
24
|
import numpy as np
|
|
25
25
|
import pandas as pd
|
|
@@ -135,148 +135,34 @@ lc_colours = {
|
|
|
135
135
|
62: (176, 218, 201, 255, "Natural Aquatic Vegetated: Scattered (1 to 4 %)"),
|
|
136
136
|
63: (25, 173, 109, 255, "Natural Aquatic Vegetated: Woody Closed (> 65 %)"),
|
|
137
137
|
64: (25, 173, 109, 255, "Natural Aquatic Vegetated: Woody Closed (> 65 %) Water > 3 months (semi-) permanent"),
|
|
138
|
-
65: (
|
|
139
|
-
25,
|
|
140
|
-
173,
|
|
141
|
-
109,
|
|
142
|
-
255,
|
|
143
|
-
"Natural Aquatic Vegetated: Woody Closed (> 65 %) Water < 3 months (temporary or seasonal)",
|
|
144
|
-
),
|
|
138
|
+
65: (25, 173,109, 255, "Natural Aquatic Vegetated: Woody Closed (> 65 %) Water < 3 months (temporary or seasonal)" ),
|
|
145
139
|
66: (53, 184, 132, 255, "Natural Aquatic Vegetated: Woody Open (40 to 65 %)"),
|
|
146
|
-
67: (
|
|
147
|
-
|
|
148
|
-
184,
|
|
149
|
-
132,
|
|
150
|
-
255,
|
|
151
|
-
"Natural Aquatic Vegetated: Woody Open (40 to 65 %) Water > 3 months (semi-) permanent",
|
|
152
|
-
),
|
|
153
|
-
68: (
|
|
154
|
-
53,
|
|
155
|
-
184,
|
|
156
|
-
132,
|
|
157
|
-
255,
|
|
158
|
-
"Natural Aquatic Vegetated: Woody Open (40 to 65 %) Water < 3 months (temporary or seasonal)",
|
|
159
|
-
),
|
|
140
|
+
67: (53,184,132,255, "Natural Aquatic Vegetated: Woody Open (40 to 65 %) Water > 3 months (semi-) permanent"),
|
|
141
|
+
68: (53, 184,132,255,"Natural Aquatic Vegetated: Woody Open (40 to 65 %) Water < 3 months (temporary or seasonal)"),
|
|
160
142
|
69: (93, 195, 155, 255, "Natural Aquatic Vegetated: Woody Open (15 to 40 %)"),
|
|
161
|
-
70: (
|
|
162
|
-
|
|
163
|
-
195,
|
|
164
|
-
155,
|
|
165
|
-
255,
|
|
166
|
-
"Natural Aquatic Vegetated: Woody Open (15 to 40 %) Water > 3 months (semi-) permanent",
|
|
167
|
-
),
|
|
168
|
-
71: (
|
|
169
|
-
93,
|
|
170
|
-
195,
|
|
171
|
-
155,
|
|
172
|
-
255,
|
|
173
|
-
"Natural Aquatic Vegetated: Woody Open (15 to 40 %) Water < 3 months (temporary or seasonal)",
|
|
174
|
-
),
|
|
143
|
+
70: (93, 195,155,255, "Natural Aquatic Vegetated: Woody Open (15 to 40 %) Water > 3 months (semi-) permanent"),
|
|
144
|
+
71: (93, 195, 155, 255,"Natural Aquatic Vegetated: Woody Open (15 to 40 %) Water < 3 months (temporary or seasonal)"),
|
|
175
145
|
72: (135, 206, 178, 255, "Natural Aquatic Vegetated: Woody Sparse (4 to 15 %)"),
|
|
176
|
-
73: (
|
|
177
|
-
|
|
178
|
-
206,
|
|
179
|
-
178,
|
|
180
|
-
255,
|
|
181
|
-
"Natural Aquatic Vegetated: Woody Sparse (4 to 15 %) Water > 3 months (semi-) permanent",
|
|
182
|
-
),
|
|
183
|
-
74: (
|
|
184
|
-
135,
|
|
185
|
-
206,
|
|
186
|
-
178,
|
|
187
|
-
255,
|
|
188
|
-
"Natural Aquatic Vegetated: Woody Sparse (4 to 15 %) Water < 3 months (temporary or seasonal)",
|
|
189
|
-
),
|
|
146
|
+
73: (135,206,178,255,"Natural Aquatic Vegetated: Woody Sparse (4 to 15 %) Water > 3 months (semi-) permanent"),
|
|
147
|
+
74: (135,206,178,255,"Natural Aquatic Vegetated: Woody Sparse (4 to 15 %) Water < 3 months (temporary or seasonal)"),
|
|
190
148
|
75: (176, 218, 201, 255, "Natural Aquatic Vegetated: Woody Scattered (1 to 4 %)"),
|
|
191
|
-
76: (
|
|
192
|
-
|
|
193
|
-
218,
|
|
194
|
-
201,
|
|
195
|
-
255,
|
|
196
|
-
"Natural Aquatic Vegetated: Woody Scattered (1 to 4 %) Water > 3 months (semi-) permanent",
|
|
197
|
-
),
|
|
198
|
-
77: (
|
|
199
|
-
176,
|
|
200
|
-
218,
|
|
201
|
-
201,
|
|
202
|
-
255,
|
|
203
|
-
"Natural Aquatic Vegetated: Woody Scattered (1 to 4 %) Water < 3 months (temporary or seasonal)",
|
|
204
|
-
),
|
|
149
|
+
76: (176,218,201,255,"Natural Aquatic Vegetated: Woody Scattered (1 to 4 %) Water > 3 months (semi-) permanent"),
|
|
150
|
+
77: (176,218,201,255,"Natural Aquatic Vegetated: Woody Scattered (1 to 4 %) Water < 3 months (temporary or seasonal)"),
|
|
205
151
|
78: (39, 204, 139, 255, "Natural Aquatic Vegetated: Herbaceous Closed (> 65 %)"),
|
|
206
|
-
79: (
|
|
207
|
-
|
|
208
|
-
204,
|
|
209
|
-
139,
|
|
210
|
-
255,
|
|
211
|
-
"Natural Aquatic Vegetated: Herbaceous Closed (> 65 %) Water > 3 months (semi-) permanent",
|
|
212
|
-
),
|
|
213
|
-
80: (
|
|
214
|
-
39,
|
|
215
|
-
204,
|
|
216
|
-
139,
|
|
217
|
-
255,
|
|
218
|
-
"Natural Aquatic Vegetated: Herbaceous Closed (> 65 %) Water < 3 months (temporary or seasonal)",
|
|
219
|
-
),
|
|
152
|
+
79: (39,204,139,255,"Natural Aquatic Vegetated: Herbaceous Closed (> 65 %) Water > 3 months (semi-) permanent"),
|
|
153
|
+
80: (39,204,139,255,"Natural Aquatic Vegetated: Herbaceous Closed (> 65 %) Water < 3 months (temporary or seasonal)"),
|
|
220
154
|
81: (66, 216, 159, 255, "Natural Aquatic Vegetated: Herbaceous Open (40 to 65 %)"),
|
|
221
|
-
82: (
|
|
222
|
-
|
|
223
|
-
216,
|
|
224
|
-
159,
|
|
225
|
-
255,
|
|
226
|
-
"Natural Aquatic Vegetated: Herbaceous Open (40 to 65 %) Water > 3 months (semi-) permanent",
|
|
227
|
-
),
|
|
228
|
-
83: (
|
|
229
|
-
66,
|
|
230
|
-
216,
|
|
231
|
-
159,
|
|
232
|
-
255,
|
|
233
|
-
"Natural Aquatic Vegetated: Herbaceous Open (40 to 65 %) Water < 3 months (temporary or seasonal)",
|
|
234
|
-
),
|
|
155
|
+
82: (66,216,159,255,"Natural Aquatic Vegetated: Herbaceous Open (40 to 65 %) Water > 3 months (semi-) permanent"),
|
|
156
|
+
83: (66,216,159,255,"Natural Aquatic Vegetated: Herbaceous Open (40 to 65 %) Water < 3 months (temporary or seasonal)"),
|
|
235
157
|
84: (99, 227, 180, 255, "Natural Aquatic Vegetated: Herbaceous Open (15 to 40 %)"),
|
|
236
|
-
85: (
|
|
237
|
-
|
|
238
|
-
227,
|
|
239
|
-
180,
|
|
240
|
-
255,
|
|
241
|
-
"Natural Aquatic Vegetated: Herbaceous Open (15 to 40 %) Water > 3 months (semi-) permanent",
|
|
242
|
-
),
|
|
243
|
-
86: (
|
|
244
|
-
99,
|
|
245
|
-
227,
|
|
246
|
-
180,
|
|
247
|
-
255,
|
|
248
|
-
"Natural Aquatic Vegetated: Herbaceous Open (15 to 40 %) Water < 3 months (temporary or seasonal)",
|
|
249
|
-
),
|
|
158
|
+
85: (99,227,180,255,"Natural Aquatic Vegetated: Herbaceous Open (15 to 40 %) Water > 3 months (semi-) permanent"),
|
|
159
|
+
86: (99,227,180,255,"Natural Aquatic Vegetated: Herbaceous Open (15 to 40 %) Water < 3 months (temporary or seasonal)"),
|
|
250
160
|
87: (135, 239, 201, 255, "Natural Aquatic Vegetated: Herbaceous Sparse (4 to 15 %)"),
|
|
251
|
-
88: (
|
|
252
|
-
|
|
253
|
-
239,
|
|
254
|
-
201,
|
|
255
|
-
255,
|
|
256
|
-
"Natural Aquatic Vegetated: Herbaceous Sparse (4 to 15 %) Water > 3 months (semi-) permanent",
|
|
257
|
-
),
|
|
258
|
-
89: (
|
|
259
|
-
135,
|
|
260
|
-
239,
|
|
261
|
-
201,
|
|
262
|
-
255,
|
|
263
|
-
"Natural Aquatic Vegetated: Herbaceous Sparse (4 to 15 %) Water < 3 months (temporary or seasonal)",
|
|
264
|
-
),
|
|
161
|
+
88: (135,239,201,255,"Natural Aquatic Vegetated: Herbaceous Sparse (4 to 15 %) Water > 3 months (semi-) permanent"),
|
|
162
|
+
89: (135,239, 201, 255, "Natural Aquatic Vegetated: Herbaceous Sparse (4 to 15 %) Water < 3 months (temporary or seasonal)"),
|
|
265
163
|
90: (171, 250, 221, 255, "Natural Aquatic Vegetated: Herbaceous Scattered (1 to 4 %)"),
|
|
266
|
-
91: (
|
|
267
|
-
|
|
268
|
-
250,
|
|
269
|
-
221,
|
|
270
|
-
255,
|
|
271
|
-
"Natural Aquatic Vegetated: Herbaceous Scattered (1 to 4 %) Water > 3 months (semi-) permanent",
|
|
272
|
-
),
|
|
273
|
-
92: (
|
|
274
|
-
171,
|
|
275
|
-
250,
|
|
276
|
-
221,
|
|
277
|
-
255,
|
|
278
|
-
"Natural Aquatic Vegetated: Herbaceous Scattered (1 to 4 %) Water < 3 months (temporary or seasonal)",
|
|
279
|
-
),
|
|
164
|
+
91: (171,250,221,255,"Natural Aquatic Vegetated: Herbaceous Scattered (1 to 4 %) Water > 3 months (semi-) permanent"),
|
|
165
|
+
92: (171, 250, 221, 255, "Natural Aquatic Vegetated: Herbaceous Scattered (1 to 4 %) Water < 3 months (temporary or seasonal)"),
|
|
280
166
|
93: (218, 92, 105, 255, "Artificial Surface:"),
|
|
281
167
|
94: (243, 171, 105, 255, "Natural Surface:"),
|
|
282
168
|
95: (255, 230, 140, 255, "Natural Surface: Sparsely vegetated"),
|
|
@@ -747,7 +633,7 @@ def plot_land_cover(
|
|
|
747
633
|
|
|
748
634
|
cmap, norm = lc_colourmap(colour_scheme)
|
|
749
635
|
|
|
750
|
-
height, width = data.geobox.shape
|
|
636
|
+
height, width = data.odc.geobox.shape
|
|
751
637
|
scale = width_pixels / width
|
|
752
638
|
|
|
753
639
|
if year:
|
|
@@ -902,7 +788,6 @@ def lc_animation(
|
|
|
902
788
|
Determines if animation plot should have tick marks and numbers
|
|
903
789
|
on axes. Also removes white space around plot. Default: True
|
|
904
790
|
|
|
905
|
-
|
|
906
791
|
Returns
|
|
907
792
|
---------
|
|
908
793
|
A GIF (.gif) animation file.
|
|
@@ -921,12 +806,12 @@ def lc_animation(
|
|
|
921
806
|
layer_cmap, layer_norm = lc_colourmap(colour_scheme)
|
|
922
807
|
|
|
923
808
|
# Get info on dataset dimensions and define size of output
|
|
924
|
-
height, width = da.geobox.shape
|
|
809
|
+
height, width = da.odc.geobox.shape
|
|
925
810
|
scale = width_pixels / width
|
|
926
|
-
left, bottom, right, top = da.geobox.extent.boundingbox
|
|
811
|
+
left, bottom, right, top = da.odc.geobox.extent.boundingbox
|
|
927
812
|
extent = [left, right, bottom, top]
|
|
928
813
|
|
|
929
|
-
#
|
|
814
|
+
# Settings for the label showed on top of the images
|
|
930
815
|
annotation_defaults = {
|
|
931
816
|
"xy": (1, 1),
|
|
932
817
|
"xycoords": "axes fraction",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|