Skip to content

Correct minor tutorial typos #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,7 @@ venv.bak/

# mypy
.mypy_cache/

# misc
.DS_Store
.vscode/
2 changes: 1 addition & 1 deletion overview/xarray-in-45-min.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@
"\n",
"<img src=\"https://raw.githubusercontent.com/cupy/cupy.dev/master/images/cupy_logo.png\" width=\"22%\"> [GPU arrays](https://cupy.dev) & [cupy-xarray](https://cupy-xarray.readthedocs.io/)\n",
"\n",
"<img src=\"https://pint.readthedocs.io/en/stable/_images/logo-full.jpg\" width=\"10%\"> **pint** : [unit-aware arrays](https://pint.readthedocs.io) & [pint-xarray](https://github.com/xarray-contrib/pint-xarray)\n"
"<img src=\"https://pint.readthedocs.io/en/stable/_static/logo-full.jpg\" width=\"10%\"> **pint** : [unit-aware arrays](https://pint.readthedocs.io) & [pint-xarray](https://github.com/xarray-contrib/pint-xarray)\n"
]
},
{
Expand Down
14 changes: 7 additions & 7 deletions workshops/online-tutorial-series/01_xarray_fundamentals.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
" Implementing such functionality is left to individual users and\n",
" domain-specific packages.\n",
"\n",
"- xarry expands on the capabilities of NumPy arrays, providing a lot of\n",
"- xarray expands on the capabilities of NumPy arrays, providing a lot of\n",
" streamline data manipulation.\n",
"\n",
"- Xarray's interface is based largely on the netCDF data model (variables,\n",
Expand Down Expand Up @@ -236,7 +236,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Extract the sst variable/datarray\n",
"# Extract the sst Variable/DataArray\n",
"ds[\"sst\"] # Equivalent to ds.sst"
]
},
Expand All @@ -260,7 +260,7 @@
"metadata": {},
"outputs": [],
"source": [
"# dataarray/variable dimensions\n",
"# DataArray/Variable dimensions\n",
"ds.sst.dims"
]
},
Expand All @@ -270,7 +270,7 @@
"metadata": {},
"outputs": [],
"source": [
"# datarray/variable coordinates\n",
"# DataArray/Variable coordinates\n",
"ds.sst.coords"
]
},
Expand All @@ -280,7 +280,7 @@
"metadata": {},
"outputs": [],
"source": [
"# dataarray/variable attributes\n",
"# DataArray/Variable attributes\n",
"ds.sst.attrs"
]
},
Expand Down Expand Up @@ -345,7 +345,7 @@
},
"outputs": [],
"source": [
"# extracting a coorindate variable from .coords\n",
"# extracting a coordinate variable from .coords\n",
"ds.coords[\"time\"]"
]
},
Expand Down Expand Up @@ -389,7 +389,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Set some arbitrary attribute on a data variable/datarray\n",
"# Set some arbitrary attribute on a data Variable/DataArray\n",
"ds.sst.attrs[\"my_custom_attribute\"] = \"Foo Bar\"\n",
"ds.sst.attrs"
]
Expand Down
2 changes: 1 addition & 1 deletion workshops/online-tutorial-series/02_indexing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"metadata": {},
"source": [
"<div class=\"alert alert-block alert-warning\">\n",
"but wait, what labels go with 10 and 20? Was that lat/lon or lon/lat? Where are the timestamps that go along with this time-series?\n",
"but wait, what labels go with 20 and 40? Was that lat/lon or lon/lat? Where are the timestamps that go along with this time-series?\n",
"</div>\n"
]
},
Expand Down
4 changes: 2 additions & 2 deletions workshops/online-tutorial-series/03_computation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
"**Broadcasting** allows an operator or a function to act on two or more arrays\n",
"to operate even if these arrays do not have the same shape. That said, not all\n",
"the dimensions can be subjected to broadcasting; they must meet certain rules.\n",
"The image below t illustrates how performing an operation on arrays with\n",
"differenty coordinates will result in automatic broadcasting\n",
"The image below illustrates how performing an operation on arrays with\n",
"differently coordinates will result in automatic broadcasting\n",
"\n",
"![](../../images/broadcasting.png)\n",
"\n",
Expand Down