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-) permenant '
198
+ 'Natural Aquatic Vegetated: Woody Closed (> 65 %) Water > 3 months (semi-) permanent '
199
199
),
200
200
65 : (
201
201
25 , 173 , 109 , 255 ,
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-) permenant '
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
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-) permenant '
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
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-) permenant '
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
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-) permenant '
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
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-) permenant '
248
+ 'Natural Aquatic Vegetated: Herbaceous Closed (> 65 %) Water > 3 months (semi-) permanent '
249
249
),
250
250
80 : (
251
251
39 , 204 , 139 , 255 ,
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-) permenant '
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
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-) permenant '
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
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-) permenant '
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
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-) permenant '
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
402
'1 to 4 %' : (154 , 199 , 156 , 255 , '1 to 4 %\n cover' )
403
403
},
404
404
'watersea_veg_cat_l4a_au' : {
405
- '(semi-) permenant ' : (25 , 173 , 109 , 255 , '> 3 months' ),
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 ect
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 ect
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 ect
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 selecte is in the datacube
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 timestep is passed and not a year variable
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 multible time steps are passed to plot
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 chnaged to contain only classes of that descriptor
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,15 +1074,15 @@ def _rgb_to_hex(r, g, b):
1074
1074
wspace = 0 )
1075
1075
1076
1076
# make colour bar
1077
- # provide left hand canvas to colour bar fuction which is where the image will go
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 ,
1081
1081
measurement ,
1082
1082
labelsize = font_size ,
1083
1083
animation = True )
1084
1084
1085
- # turn off lines for second plot so it's not ontop of colourbar
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
0 commit comments