Skip to content

Commit df6cc86

Browse files
author
Andy Barrett
committed
update text.
1 parent aefdb4b commit df6cc86

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

notebooks/SMAP/working_with_smap_in_xarray.ipynb

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@
150150
"name": "stderr",
151151
"output_type": "stream",
152152
"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"
156156
]
157157
}
158158
],
@@ -1430,7 +1430,7 @@
14301430
"source": [
14311431
"x, _ = transform * (column, 0.5)\n",
14321432
"_, y = transform * (0.5, row)\n",
1433-
"igbp_class = np.arange(nclass) # Add attributes"
1433+
"igbp_class = np.arange(nclass)"
14341434
]
14351435
},
14361436
{
@@ -2588,7 +2588,11 @@
25882588
"\n",
25892589
"We can now plot the data on a map using cartopy.\n",
25902590
"\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. "
25922596
]
25932597
},
25942598
{

0 commit comments

Comments
 (0)