Skip to content

Commit b92ea70

Browse files
committed
local malaria figure, update default links
1 parent 5d2f3dd commit b92ea70

File tree

6 files changed

+19
-31
lines changed

6 files changed

+19
-31
lines changed

.devcontainer/scipy2024/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"customizations": {
1414
"codespaces": {
15-
"openFiles": ["workshops/scipy2024/README.md"]
15+
"openFiles": ["workshops/scipy2024/index.ipynb"]
1616
},
1717
"vscode": {
1818
"extensions": ["ms-toolsai.jupyter", "ms-python.python"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CI](https://github.com/xarray-contrib/xarray-tutorial/workflows/CI/badge.svg?branch=main)](https://github.com/xarray-contrib/xarray-tutorial/actions?query=branch%3Amain)
44
[![Jupyter Book Badge](https://jupyterbook.org/badge.svg)](https://tutorial.xarray.dev)
5-
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/xarray-contrib/xarray-tutorial/HEAD?labpath=overview/fundamental-path/index.ipynb)
5+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/xarray-contrib/xarray-tutorial/HEAD?labpath=workshops/scipy2024/index.ipynb)
66

77
This is the repository for a Jupyter Book website with tutorial material for [Xarray](https://github.com/pydata/xarray), _an open source project and Python package that makes working with labelled multi-dimensional arrays simple, efficient, and fun!_
88

fundamentals/01_data_structures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ powerful and concise interface. For example:
5454

5555
Although the Xarray library was originally developed with Earth Science datasets in mind, the datastructures work well across many other domains! For example, below is a side-by-side view of a data schematic on the left and Xarray Dataset representation on the right taken from a mosquito genetics analysis:
5656

57-
<img src="https://vobs-resources.cog.sanger.ac.uk/training/img/workshop-4/mosquito-genotype-array.png" align="center" width="80%">
57+
![malaria_dataset](../images/malaria_dataset.png)
5858

5959
The data can be stored as a 3-dimensional array, where one dimension of the array corresponds to positions (**variants**) within a reference genome, another dimension corresponds to the individual mosquitoes that were sequenced (**samples**), and a third dimension corresponds to the number of genomes within each individual (**ploidy**)."
6060

fundamentals/01_datastructures.ipynb

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66
"source": [
77
"# Xarray's Data structures\n",
88
"\n",
9-
"In this lesson, we cover the basics of Xarray data structures. Our\n",
10-
"learning goals are as follows. By the end of the lesson, we will be able to:\n",
9+
"In this lesson, we cover the basics of Xarray data structures. By the end of the lesson, we will be able to:\n",
1110
"\n",
1211
":::{admonition} Learning Goals\n",
13-
"- Understand the basic data structures (`DataArray` and `Dataset` objects) in Xarray\n",
14-
"- Customize the display of Xarray objects\n",
15-
"- Access variables, coordinates, and arbitrary metadata\n",
16-
"- Transform to tabular Pandas data structures\n",
12+
"- Understand the basic Xarray data structures `DataArray` and `Dataset` \n",
13+
"- Customize the display of Xarray data structures\n",
14+
"- The connection between Pandas and Xarray data structures\n",
1715
":::"
1816
]
1917
},
@@ -130,18 +128,13 @@
130128
"cell_type": "markdown",
131129
"metadata": {},
132130
"source": [
133-
"The output consists of:\n",
131+
"☝️ From top to bottom the output consists of:\n",
134132
"\n",
135-
"- a summary of all *dimensions* of the `Dataset` `(lat: 25, time: 2920, lon: 53)`: this tells us that the first\n",
136-
" dimension is named `lat` and has a size of `25`, the second dimension is named\n",
137-
" `time` and has a size of `2920`, and the third dimension is named `lon` and has a size\n",
138-
" of `53`. Because we will access the dimensions by name, the order doesn't matter.\n",
139-
"- an unordered list of *coordinates* or dimensions with coordinates with one item\n",
140-
" per line. Each item has a name, one or more dimensions in parentheses, a dtype\n",
141-
" and a preview of the values. Also, if it is a dimension coordinate, it will be\n",
142-
" printed in **bold** font.\n",
143-
"- an alphabetically sorted list of *dimensions without coordinates* (if there are any)\n",
144-
"- an unordered list of *attributes*, or metadata"
133+
"- **Dimensions**: summary of all *dimensions* of the `Dataset` `(lat: 25, time: 2920, lon: 53)`: this tells us that the first dimension is named `lat` and has a size of `25`, the second dimension is named `time` and has a size of `2920`, and the third dimension is named `lon` and has a size of `53`. Because we will access the dimensions by name, the order doesn't matter.\n",
134+
"- **Coordinates**: an unordered list of *coordinates* or dimensions with coordinates with one item per line. Each item has a name, one or more dimensions in parentheses, a dtype and a preview of the values. Also, if it is a dimension coordinate, it will be printed in **bold** font. *dimensions without coordinates* appear in plain font (there are none in this example, but you might imagine a 'mask' coordinate that has a value assigned at every point).\n",
135+
"- **Data variables**: names of each nD *measurement* in the dataset, followed by its dimensions `(time, lat, lon)`, dtype, and a preview of values.\n",
136+
"- **Indexes**: Each dimension with coordinates is backed by an \"Index\". In this example, each dimension is backed by a `PandasIndex`\n",
137+
"- **Attributes**: an unordered list of metadata (for example, a paragraph describing the dataset)"
145138
]
146139
},
147140
{

images/malaria_dataset.png

429 KB
Loading

workshops/scipy2024/index.ipynb

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"\n",
1414
"**Xarray**: *Friendly, Interactive, and Scalable Scientific Data Analysis*\n",
1515
"\n",
16-
"July 8, 13:30–17:30 (US/Pacific), Room 317\n",
16+
"July 8, 13:30–17:30 (US/Pacific), Tacoma Convention Center Ballroom B/C\n",
1717
"\n",
1818
"This *4-hour* workshop will explore content from [the Xarray tutorial](https://tutorial.xarray.dev), which contains a comprehensive collection of hands-on tutorial Jupyter Notebooks. We will review a curated set of examples that will prepare you for increasingly complex real-world data analysis tasks!\n",
1919
"\n",
@@ -33,13 +33,13 @@
3333
"| Topic | Time | Notebook Links | \n",
3434
"| :- | - | - | \n",
3535
"| Introduction and Setup | 1:30 (10 min) | --- | \n",
36-
"| The Xarray Data Model | 1:40 (40 min) | [Data structures](../../fundamentals/01_datastructures.ipynb) <br> [Basic Indexing](../../fundamentals/02.1_indexing_Basic.ipynb) | \n",
36+
"| The Xarray Data Model | 1:40 (40 min) | [Data structures](../../fundamentals/01_data_structures.md) <br> [Basic Indexing](../../fundamentals/02.1_indexing_Basic.ipynb) | \n",
3737
"| *10 minute Break* \n",
3838
"| Indexing & Computational Patterns | 2:30 (50 min) | [Advanced Indexing](../../intermediate/indexing/indexing.md) <br> [Computational Patterns](../../intermediate/01-high-level-computation-patterns.ipynb) <br> | \n",
3939
"| *10 minute Break* | \n",
4040
"| Xarray Integrations and Extensions | 3:30 (50 min) | [The Xarray Ecosystem](../../intermediate/xarray_ecosystem.ipynb) | \n",
4141
"| *10 minute Break* | \n",
42-
"| Backends & Practice with your Data | 4:30 (50 min) | TODO: [Backends](../../advanced/backends/1.Backend_without_Lazy_Loading.ipynb) or Luis' remote data notebook |\n",
42+
"| Backends & Remote data| 4:30 (50 min) | [Remote Data](../../intermediate/remote_data/remote-data.ipynb) |\n",
4343
"| | End 5:30 | |\n",
4444
"\n",
4545
"\n",
@@ -66,6 +66,9 @@
6666
"- Once you see a url to click within the terminal, simply `cmd + click` the given url.\n",
6767
"- This will open up another tab in your browser, leading to a [Jupyter Lab](https://jupyterlab.readthedocs.io/en/latest/) Interface.\n",
6868
"\n",
69+
":::{warning}\n",
70+
"Consider Codespaces as ephemeral environments. You may lose your connection and any edits you make.\n",
71+
":::\n",
6972
"\n",
7073
"\n",
7174
"## Thanks for attending!\n",
@@ -81,14 +84,6 @@
8184
"- Max Jones (CarbonPlan)\n",
8285
"- Wietze Suijker (Space Intelligence)"
8386
]
84-
},
85-
{
86-
"cell_type": "code",
87-
"execution_count": null,
88-
"id": "1",
89-
"metadata": {},
90-
"outputs": [],
91-
"source": []
9287
}
9388
],
9489
"metadata": {

0 commit comments

Comments
 (0)