dea-tools 0.3.7.dev2__tar.gz → 0.3.7.dev3__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.3.7.dev2/dea_tools.egg-info → dea_tools-0.3.7.dev3}/PKG-INFO +1 -1
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/landcover.py +20 -20
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3/dea_tools.egg-info}/PKG-INFO +1 -1
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/.gitignore +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/LICENSE +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/MANIFEST.in +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/README.rst +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/__init__.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/__main__.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/app/__init__.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/app/animations.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/app/changefilmstrips.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/app/crophealth.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/app/deacoastlines.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/app/geomedian.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/app/imageexport.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/app/miningrehab.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/app/wetlandsinsighttool.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/app/widgetconstructors.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/bandindices.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/bom.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/classification.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/coastal.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/dask.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/datahandling.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/maps.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/plotting.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/pyfes_model.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/spatial.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/temporal.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/validation.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/waterbodies.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/wetlands.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools/wit_app.py +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools.egg-info/SOURCES.txt +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools.egg-info/dependency_links.txt +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools.egg-info/requires.txt +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/dea_tools.egg-info/top_level.txt +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/index.rst +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/mock_imports.txt +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/pyproject.toml +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/setup.cfg +0 -0
- {dea_tools-0.3.7.dev2 → dea_tools-0.3.7.dev3}/setup.py +0 -0
|
@@ -195,7 +195,7 @@ lc_colours = {
|
|
|
195
195
|
'Natural Aquatic Vegetated: Woody Closed (> 65 %)'),
|
|
196
196
|
64: (
|
|
197
197
|
25, 173, 109, 255,
|
|
198
|
-
'Natural Aquatic Vegetated: Woody Closed (> 65 %) Water > 3 months (semi-)
|
|
198
|
+
'Natural Aquatic Vegetated: Woody Closed (> 65 %) Water > 3 months (semi-) permanent'
|
|
199
199
|
),
|
|
200
200
|
65: (
|
|
201
201
|
25, 173, 109, 255,
|
|
@@ -205,7 +205,7 @@ lc_colours = {
|
|
|
205
205
|
'Natural Aquatic Vegetated: Woody Open (40 to 65 %)'),
|
|
206
206
|
67: (
|
|
207
207
|
53, 184, 132, 255,
|
|
208
|
-
'Natural Aquatic Vegetated: Woody Open (40 to 65 %) Water > 3 months (semi-)
|
|
208
|
+
'Natural Aquatic Vegetated: Woody Open (40 to 65 %) Water > 3 months (semi-) permanent'
|
|
209
209
|
),
|
|
210
210
|
68: (
|
|
211
211
|
53, 184, 132, 255,
|
|
@@ -215,7 +215,7 @@ lc_colours = {
|
|
|
215
215
|
'Natural Aquatic Vegetated: Woody Open (15 to 40 %)'),
|
|
216
216
|
70: (
|
|
217
217
|
93, 195, 155, 255,
|
|
218
|
-
'Natural Aquatic Vegetated: Woody Open (15 to 40 %) Water > 3 months (semi-)
|
|
218
|
+
'Natural Aquatic Vegetated: Woody Open (15 to 40 %) Water > 3 months (semi-) permanent'
|
|
219
219
|
),
|
|
220
220
|
71: (
|
|
221
221
|
93, 195, 155, 255,
|
|
@@ -225,7 +225,7 @@ lc_colours = {
|
|
|
225
225
|
'Natural Aquatic Vegetated: Woody Sparse (4 to 15 %)'),
|
|
226
226
|
73: (
|
|
227
227
|
135, 206, 178, 255,
|
|
228
|
-
'Natural Aquatic Vegetated: Woody Sparse (4 to 15 %) Water > 3 months (semi-)
|
|
228
|
+
'Natural Aquatic Vegetated: Woody Sparse (4 to 15 %) Water > 3 months (semi-) permanent'
|
|
229
229
|
),
|
|
230
230
|
74: (
|
|
231
231
|
135, 206, 178, 255,
|
|
@@ -235,7 +235,7 @@ lc_colours = {
|
|
|
235
235
|
'Natural Aquatic Vegetated: Woody Scattered (1 to 4 %)'),
|
|
236
236
|
76: (
|
|
237
237
|
176, 218, 201, 255,
|
|
238
|
-
'Natural Aquatic Vegetated: Woody Scattered (1 to 4 %) Water > 3 months (semi-)
|
|
238
|
+
'Natural Aquatic Vegetated: Woody Scattered (1 to 4 %) Water > 3 months (semi-) permanent'
|
|
239
239
|
),
|
|
240
240
|
77: (
|
|
241
241
|
176, 218, 201, 255,
|
|
@@ -245,7 +245,7 @@ lc_colours = {
|
|
|
245
245
|
'Natural Aquatic Vegetated: Herbaceous Closed (> 65 %)'),
|
|
246
246
|
79: (
|
|
247
247
|
39, 204, 139, 255,
|
|
248
|
-
'Natural Aquatic Vegetated: Herbaceous Closed (> 65 %) Water > 3 months (semi-)
|
|
248
|
+
'Natural Aquatic Vegetated: Herbaceous Closed (> 65 %) Water > 3 months (semi-) permanent'
|
|
249
249
|
),
|
|
250
250
|
80: (
|
|
251
251
|
39, 204, 139, 255,
|
|
@@ -255,7 +255,7 @@ lc_colours = {
|
|
|
255
255
|
'Natural Aquatic Vegetated: Herbaceous Open (40 to 65 %)'),
|
|
256
256
|
82: (
|
|
257
257
|
66, 216, 159, 255,
|
|
258
|
-
'Natural Aquatic Vegetated: Herbaceous Open (40 to 65 %) Water > 3 months (semi-)
|
|
258
|
+
'Natural Aquatic Vegetated: Herbaceous Open (40 to 65 %) Water > 3 months (semi-) permanent'
|
|
259
259
|
),
|
|
260
260
|
83: (
|
|
261
261
|
66, 216, 159, 255,
|
|
@@ -265,7 +265,7 @@ lc_colours = {
|
|
|
265
265
|
'Natural Aquatic Vegetated: Herbaceous Open (15 to 40 %)'),
|
|
266
266
|
85: (
|
|
267
267
|
99, 227, 180, 255,
|
|
268
|
-
'Natural Aquatic Vegetated: Herbaceous Open (15 to 40 %) Water > 3 months (semi-)
|
|
268
|
+
'Natural Aquatic Vegetated: Herbaceous Open (15 to 40 %) Water > 3 months (semi-) permanent'
|
|
269
269
|
),
|
|
270
270
|
86: (
|
|
271
271
|
99, 227, 180, 255,
|
|
@@ -275,7 +275,7 @@ lc_colours = {
|
|
|
275
275
|
'Natural Aquatic Vegetated: Herbaceous Sparse (4 to 15 %)'),
|
|
276
276
|
88: (
|
|
277
277
|
135, 239, 201, 255,
|
|
278
|
-
'Natural Aquatic Vegetated: Herbaceous Sparse (4 to 15 %) Water > 3 months (semi-)
|
|
278
|
+
'Natural Aquatic Vegetated: Herbaceous Sparse (4 to 15 %) Water > 3 months (semi-) permanent'
|
|
279
279
|
),
|
|
280
280
|
89: (
|
|
281
281
|
135, 239, 201, 255,
|
|
@@ -285,7 +285,7 @@ lc_colours = {
|
|
|
285
285
|
'Natural Aquatic Vegetated: Herbaceous Scattered (1 to 4 %)'),
|
|
286
286
|
91: (
|
|
287
287
|
171, 250, 221, 255,
|
|
288
|
-
'Natural Aquatic Vegetated: Herbaceous Scattered (1 to 4 %) Water > 3 months (semi-)
|
|
288
|
+
'Natural Aquatic Vegetated: Herbaceous Scattered (1 to 4 %) Water > 3 months (semi-) permanent'
|
|
289
289
|
),
|
|
290
290
|
92: (
|
|
291
291
|
171, 250, 221, 255,
|
|
@@ -402,7 +402,7 @@ lc_colours_mapping = {
|
|
|
402
402
|
'1 to 4 %': (154, 199, 156, 255, '1 to 4 %\ncover')
|
|
403
403
|
},
|
|
404
404
|
'watersea_veg_cat_l4a_au': {
|
|
405
|
-
'(semi-)
|
|
405
|
+
'(semi-) permanent': (25, 173, 109, 255, '> 3 months'),
|
|
406
406
|
'(temporary or seasonal)': (176, 218, 201, 255, '< 3 months')
|
|
407
407
|
},
|
|
408
408
|
'waterstt_wat_cat_l4a': {
|
|
@@ -713,7 +713,7 @@ def make_colourbar(fig,
|
|
|
713
713
|
[0.62, 0.05, 0.02, 0.90]
|
|
714
714
|
) # parameters for add_axes are [left, bottom, width, height], in fractions of total plot
|
|
715
715
|
orient = 'vertical'
|
|
716
|
-
# get level 4 colour bar colour map
|
|
716
|
+
# get level 4 colour bar colour map
|
|
717
717
|
cb_cmap, cb_norm, cb_labels, cb_ticks = _legend_colourmap(
|
|
718
718
|
colour_scheme)
|
|
719
719
|
|
|
@@ -723,7 +723,7 @@ def make_colourbar(fig,
|
|
|
723
723
|
# Settings for axis positions
|
|
724
724
|
cax = fig.add_axes([0.84, 0.145, 0.02, 0.70])
|
|
725
725
|
orient = 'vertical'
|
|
726
|
-
# get level 4 colour bar colour map
|
|
726
|
+
# get level 4 colour bar colour map
|
|
727
727
|
cb_cmap, cb_norm, cb_labels, cb_ticks = _legend_colourmap(
|
|
728
728
|
colour_scheme)
|
|
729
729
|
|
|
@@ -742,7 +742,7 @@ def make_colourbar(fig,
|
|
|
742
742
|
cax = fig.add_axes([0.84, 0.145, 0.02, 0.70])
|
|
743
743
|
orient = 'vertical'
|
|
744
744
|
|
|
745
|
-
# get measurement colour bar colour map
|
|
745
|
+
# get measurement colour bar colour map
|
|
746
746
|
cb_cmap, cb_norm, cb_labels, cb_ticks = _legend_colourmap(colour_scheme)
|
|
747
747
|
|
|
748
748
|
img = ax.imshow([cb_ticks], cmap=cb_cmap, norm=cb_norm)
|
|
@@ -803,7 +803,7 @@ def plot_land_cover(
|
|
|
803
803
|
#plotting protocol if 'year' variable is passed
|
|
804
804
|
if int(year) not in pd.to_datetime(
|
|
805
805
|
data.time.values
|
|
806
|
-
).year: # check if year
|
|
806
|
+
).year: # check if year selected is in the datacube
|
|
807
807
|
raise ValueError(f'Year {year} is not in the data array.')
|
|
808
808
|
|
|
809
809
|
year_string = f"{year}-07-01" # LC collection 3 dates are in July
|
|
@@ -818,7 +818,7 @@ def plot_land_cover(
|
|
|
818
818
|
interpolation="nearest")
|
|
819
819
|
|
|
820
820
|
elif len(data.time) == 1:
|
|
821
|
-
#plotting protocol if only one
|
|
821
|
+
#plotting protocol if only one time step is passed and not a year variable
|
|
822
822
|
fig, ax = plt.subplots()
|
|
823
823
|
fig.set_size_inches(width * scale / 72, height * scale / 72)
|
|
824
824
|
make_colourbar(fig, ax, measurement, labelsize)
|
|
@@ -828,7 +828,7 @@ def plot_land_cover(
|
|
|
828
828
|
interpolation="nearest")
|
|
829
829
|
|
|
830
830
|
else:
|
|
831
|
-
#plotting protocol if
|
|
831
|
+
#plotting protocol if multiple time steps are passed to plot
|
|
832
832
|
if cols > len(data.time):
|
|
833
833
|
cols = len(data.time)
|
|
834
834
|
rows = int((len(data.time) + cols - 1) / cols)
|
|
@@ -866,7 +866,7 @@ def _calc_class_ratio(da, measurement):
|
|
|
866
866
|
# list all class codes in dataset
|
|
867
867
|
list_classes = (np.unique(da, return_counts=False)).tolist()
|
|
868
868
|
|
|
869
|
-
# if a descriptor colour scheme is required, list_classes need to be
|
|
869
|
+
# if a descriptor colour scheme is required, list_classes need to be changed to contain only classes of that descriptor
|
|
870
870
|
# the following code uses the _descriptors_colours function to get the colours scheme and then the values of the descriptor of interest
|
|
871
871
|
if measurement in lc_colours_mapping:
|
|
872
872
|
lc_colour_scheme = _descriptors_colours(lc_colours, lc_colours_mapping,
|
|
@@ -1074,7 +1074,7 @@ def lc_animation(
|
|
|
1074
1074
|
wspace=0)
|
|
1075
1075
|
|
|
1076
1076
|
# make colour bar
|
|
1077
|
-
# provide left hand canvas to colour bar
|
|
1077
|
+
# provide left hand canvas to colour bar function which is where the image will go
|
|
1078
1078
|
# colourbar will plot on right side beside it
|
|
1079
1079
|
make_colourbar(fig,
|
|
1080
1080
|
ax1,
|
|
@@ -1082,7 +1082,7 @@ def lc_animation(
|
|
|
1082
1082
|
labelsize=font_size,
|
|
1083
1083
|
animation=True)
|
|
1084
1084
|
|
|
1085
|
-
# turn off lines for second plot so it's not
|
|
1085
|
+
# turn off lines for second plot so it's not on top of colourbar
|
|
1086
1086
|
ax2.set_axis_off()
|
|
1087
1087
|
|
|
1088
1088
|
# plotting any other measurement with or with-out colour bar or level 4 without
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|