195195 'Natural Aquatic Vegetated: Woody Closed (> 65 %)' ),
196196 64 : (
197197 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 '
199199 ),
200200 65 : (
201201 25 , 173 , 109 , 255 ,
205205 'Natural Aquatic Vegetated: Woody Open (40 to 65 %)' ),
206206 67 : (
207207 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 '
209209 ),
210210 68 : (
211211 53 , 184 , 132 , 255 ,
215215 'Natural Aquatic Vegetated: Woody Open (15 to 40 %)' ),
216216 70 : (
217217 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 '
219219 ),
220220 71 : (
221221 93 , 195 , 155 , 255 ,
225225 'Natural Aquatic Vegetated: Woody Sparse (4 to 15 %)' ),
226226 73 : (
227227 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 '
229229 ),
230230 74 : (
231231 135 , 206 , 178 , 255 ,
235235 'Natural Aquatic Vegetated: Woody Scattered (1 to 4 %)' ),
236236 76 : (
237237 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 '
239239 ),
240240 77 : (
241241 176 , 218 , 201 , 255 ,
245245 'Natural Aquatic Vegetated: Herbaceous Closed (> 65 %)' ),
246246 79 : (
247247 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 '
249249 ),
250250 80 : (
251251 39 , 204 , 139 , 255 ,
255255 'Natural Aquatic Vegetated: Herbaceous Open (40 to 65 %)' ),
256256 82 : (
257257 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 '
259259 ),
260260 83 : (
261261 66 , 216 , 159 , 255 ,
265265 'Natural Aquatic Vegetated: Herbaceous Open (15 to 40 %)' ),
266266 85 : (
267267 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 '
269269 ),
270270 86 : (
271271 99 , 227 , 180 , 255 ,
275275 'Natural Aquatic Vegetated: Herbaceous Sparse (4 to 15 %)' ),
276276 88 : (
277277 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 '
279279 ),
280280 89 : (
281281 135 , 239 , 201 , 255 ,
285285 'Natural Aquatic Vegetated: Herbaceous Scattered (1 to 4 %)' ),
286286 91 : (
287287 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 '
289289 ),
290290 92 : (
291291 171 , 250 , 221 , 255 ,
402402 '1 to 4 %' : (154 , 199 , 156 , 255 , '1 to 4 %\n cover' )
403403 },
404404 'watersea_veg_cat_l4a_au' : {
405- '(semi-) permenant ' : (25 , 173 , 109 , 255 , '> 3 months' ),
405+ '(semi-) permanent ' : (25 , 173 , 109 , 255 , '> 3 months' ),
406406 '(temporary or seasonal)' : (176 , 218 , 201 , 255 , '< 3 months' )
407407 },
408408 'waterstt_wat_cat_l4a' : {
@@ -713,7 +713,7 @@ def make_colourbar(fig,
713713 [0.62 , 0.05 , 0.02 , 0.90 ]
714714 ) # parameters for add_axes are [left, bottom, width, height], in fractions of total plot
715715 orient = 'vertical'
716- # get level 4 colour bar colour map ect
716+ # get level 4 colour bar colour map
717717 cb_cmap , cb_norm , cb_labels , cb_ticks = _legend_colourmap (
718718 colour_scheme )
719719
@@ -723,7 +723,7 @@ def make_colourbar(fig,
723723 # Settings for axis positions
724724 cax = fig .add_axes ([0.84 , 0.145 , 0.02 , 0.70 ])
725725 orient = 'vertical'
726- # get level 4 colour bar colour map ect
726+ # get level 4 colour bar colour map
727727 cb_cmap , cb_norm , cb_labels , cb_ticks = _legend_colourmap (
728728 colour_scheme )
729729
@@ -742,7 +742,7 @@ def make_colourbar(fig,
742742 cax = fig .add_axes ([0.84 , 0.145 , 0.02 , 0.70 ])
743743 orient = 'vertical'
744744
745- # get measurement colour bar colour map ect
745+ # get measurement colour bar colour map
746746 cb_cmap , cb_norm , cb_labels , cb_ticks = _legend_colourmap (colour_scheme )
747747
748748 img = ax .imshow ([cb_ticks ], cmap = cb_cmap , norm = cb_norm )
@@ -803,7 +803,7 @@ def plot_land_cover(
803803 #plotting protocol if 'year' variable is passed
804804 if int (year ) not in pd .to_datetime (
805805 data .time .values
806- ).year : # check if year selecte is in the datacube
806+ ).year : # check if year selected is in the datacube
807807 raise ValueError (f'Year { year } is not in the data array.' )
808808
809809 year_string = f"{ year } -07-01" # LC collection 3 dates are in July
@@ -818,7 +818,7 @@ def plot_land_cover(
818818 interpolation = "nearest" )
819819
820820 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
822822 fig , ax = plt .subplots ()
823823 fig .set_size_inches (width * scale / 72 , height * scale / 72 )
824824 make_colourbar (fig , ax , measurement , labelsize )
@@ -828,7 +828,7 @@ def plot_land_cover(
828828 interpolation = "nearest" )
829829
830830 else :
831- #plotting protocol if multible time steps are passed to plot
831+ #plotting protocol if multiple time steps are passed to plot
832832 if cols > len (data .time ):
833833 cols = len (data .time )
834834 rows = int ((len (data .time ) + cols - 1 ) / cols )
@@ -866,7 +866,7 @@ def _calc_class_ratio(da, measurement):
866866 # list all class codes in dataset
867867 list_classes = (np .unique (da , return_counts = False )).tolist ()
868868
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
870870 # the following code uses the _descriptors_colours function to get the colours scheme and then the values of the descriptor of interest
871871 if measurement in lc_colours_mapping :
872872 lc_colour_scheme = _descriptors_colours (lc_colours , lc_colours_mapping ,
@@ -1074,15 +1074,15 @@ def _rgb_to_hex(r, g, b):
10741074 wspace = 0 )
10751075
10761076 # 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
10781078 # colourbar will plot on right side beside it
10791079 make_colourbar (fig ,
10801080 ax1 ,
10811081 measurement ,
10821082 labelsize = font_size ,
10831083 animation = True )
10841084
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
10861086 ax2 .set_axis_off ()
10871087
10881088 # plotting any other measurement with or with-out colour bar or level 4 without
0 commit comments