Skip to content

Commit cdb4b6a

Browse files
authored
fixed a few typos (#74)
* fixed a few typos
1 parent 2d4db5a commit cdb4b6a

5 files changed

+17
-13
lines changed

fundamentals/01_datastructures_and_io.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"\n",
99
"# Data structures for multi-dimensional data\n",
1010
"\n",
11-
"In this lesson, we discuss cover the basics of Xarray data structures. Our\n",
11+
"In this lesson, we cover the basics of Xarray data structures. Our\n",
1212
"learning goals are as follows. By the end of the lesson, we will be able to:\n",
1313
"\n",
1414
"- Understand the basic data structures in Xarray\n",

fundamentals/02.1_working_with_labeled_data.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"cell_type": "markdown",
138138
"metadata": {},
139139
"source": [
140-
"see also `tail` and `thin`.\n"
140+
"see also [tail()](https://docs.xarray.dev/en/latest/generated/xarray.Dataset.tail.html) and [thin()](https://xarray.pydata.org/en/stable/generated/xarray.Dataset.thin.html).\n"
141141
]
142142
},
143143
{

fundamentals/03.1_computation_with_xarray.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@
5656
"### things might not go so well! Recommended to use the Google Cloud copy instead.\n",
5757
"\n",
5858
"# url = \"http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/noaa.ersst.v5/sst.mnmean.nc\"\n",
59+
"# url emma added:\n",
60+
"url = \"http://psl.noaa.gov/thredds/dodsC/Datasets/noaa.ersst.v5/sst.mnmean.nc\"\n",
5961
"# # drop an unnecessary variable which complicates some operations\n",
60-
"# ds = xr.open_dataset(url, drop_variables=[\"time_bnds\"])\n",
62+
"ds = xr.open_dataset(url, drop_variables=[\"time_bnds\"])\n",
6163
"# # will take a minute or two to complete\n",
62-
"# ds = ds.sel(time=slice(\"1960\", \"2018\")).load()\n",
63-
"# ds"
64+
"ds = ds.sel(time=slice(\"1960\", \"2018\")).load()\n",
65+
"ds"
6466
]
6567
},
6668
{
@@ -403,7 +405,7 @@
403405
"name": "python",
404406
"nbconvert_exporter": "python",
405407
"pygments_lexer": "ipython3",
406-
"version": "3.9.12"
408+
"version": "3.10.4"
407409
},
408410
"widgets": {
409411
"application/vnd.jupyter.widget-state+json": {

fundamentals/03.2_groupby_with_xarray.ipynb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"(called the \"climatology\") in order to better see the long-term variaitions in\n",
126126
"temperature. We can accomplish this using **groupby**.\n",
127127
"\n",
128-
"Before moving forward, w note that xarray correctly parsed the time index,\n",
128+
"Before moving forward, we note that xarray correctly parsed the time index,\n",
129129
"resulting in a Pandas datetime index on the time dimension.\n"
130130
]
131131
},
@@ -162,7 +162,7 @@
162162
"\n",
163163
"The most important argument is `group`: this defines the unique values we will\n",
164164
"us to \"split\" the data for grouped analysis. We can pass either a DataArray or a\n",
165-
"name of a variable in the dataset. Lets first use a DataArray. Just like with\n",
165+
"name of a variable in the dataset. Let's first use a DataArray. Just like with\n",
166166
"Pandas, we can use the time index to extract specific components of dates and\n",
167167
"times. Xarray uses a special syntax for this `.dt`, called the\n",
168168
"`DatetimeAccessor`.\n"
@@ -187,10 +187,12 @@
187187
]
188188
},
189189
{
190-
"cell_type": "markdown",
190+
"cell_type": "code",
191+
"execution_count": null,
191192
"metadata": {},
193+
"outputs": [],
192194
"source": [
193-
"ds.time.dt.year\n"
195+
"ds.time.dt.year"
194196
]
195197
},
196198
{
@@ -327,7 +329,7 @@
327329
"So we did what we wanted to do: calculate the climatology at every point in the\n",
328330
"dataset. Let's look at the data a bit.\n",
329331
"\n",
330-
"_Climatlogy at a specific point in the North Atlantic_\n"
332+
"_Climatology at a specific point in the North Atlantic_\n"
331333
]
332334
},
333335
{
@@ -343,7 +345,7 @@
343345
"cell_type": "markdown",
344346
"metadata": {},
345347
"source": [
346-
"_Zonal Mean Climatolgoy_\n"
348+
"_Zonal Mean Climatology_\n"
347349
]
348350
},
349351
{

fundamentals/04_plotting_and_visualization.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"source": [
6565
"## Load data\n",
6666
"\n",
67-
"First lets load up a tutorial dataset to visualize.\n"
67+
"First let's load up a tutorial dataset to visualize.\n"
6868
]
6969
},
7070
{

0 commit comments

Comments
 (0)