|
150 | 150 | "name": "stderr", |
151 | 151 | "output_type": "stream", |
152 | 152 | "text": [ |
153 | | - "QUEUEING TASKS | : 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31/31 [00:00<00:00, 3367.87it/s]\n", |
154 | | - "PROCESSING TASKS | : 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31/31 [00:00<00:00, 218894.65it/s]\n", |
155 | | - "COLLECTING RESULTS | : 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31/31 [00:00<00:00, 218160.11it/s]\n" |
| 153 | + "QUEUEING TASKS | : 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31/31 [00:00<00:00, 5377.76it/s]\n", |
| 154 | + "PROCESSING TASKS | : 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31/31 [00:51<00:00, 1.65s/it]\n", |
| 155 | + "COLLECTING RESULTS | : 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31/31 [00:00<00:00, 228512.17it/s]\n" |
156 | 156 | ] |
157 | 157 | } |
158 | 158 | ], |
|
1430 | 1430 | "source": [ |
1431 | 1431 | "x, _ = transform * (column, 0.5)\n", |
1432 | 1432 | "_, y = transform * (0.5, row)\n", |
1433 | | - "igbp_class = np.arange(nclass) # Add attributes" |
| 1433 | + "igbp_class = np.arange(nclass)" |
1434 | 1434 | ] |
1435 | 1435 | }, |
1436 | 1436 | { |
|
2588 | 2588 | "\n", |
2589 | 2589 | "We can now plot the data on a map using cartopy.\n", |
2590 | 2590 | "\n", |
2591 | | - "We use `cartopy.crs.epsg` method to define a cartopy projection from the EPSG we just assigned to the dataset. " |
| 2591 | + "We use `cartopy.crs.epsg` method to define a cartopy projection from the EPSG we just assigned to the dataset.\n", |
| 2592 | + "\n", |
| 2593 | + "The map projection we use to display the data is passed to the `subplot_kws` keyword as a dictionary. We also set the background of the plot to `lightgrey` using this dictionary.\n", |
| 2594 | + "\n", |
| 2595 | + "We also need a colorbar to interpret the colors used in the plot. We use the `cbar_kwargs` keyword to scale the size of the colorbar using `shrink` and set the units of the colorbar using `label`. In this case, we get the correct units from the units attribute of the data variable. " |
2592 | 2596 | ] |
2593 | 2597 | }, |
2594 | 2598 | { |
|
0 commit comments