From 1d6e4430b87886020c22a56ceb344505489907fe Mon Sep 17 00:00:00 2001 From: dcherian Date: Thu, 30 Jun 2022 20:37:35 -0600 Subject: [PATCH 1/2] Cleaner scipy schedule --- _toc.yml | 23 +------- .../xarray_ecosystem.ipynb | 20 ++++++- workshops/scipy2022/README.md | 57 ++++++++++++++----- 3 files changed, 63 insertions(+), 37 deletions(-) rename {workshops/scipy2022 => intermediate}/xarray_ecosystem.ipynb (83%) diff --git a/_toc.yml b/_toc.yml index 5eb0b5cb..b11c7c8f 100644 --- a/_toc.yml +++ b/_toc.yml @@ -32,6 +32,7 @@ parts: chapters: - file: intermediate/01-high-level-computation-patterns - file: intermediate/xarray_and_dask + - file: intermediate/xarray_ecosystem - file: intermediate/hvplot - caption: Advanced @@ -44,6 +45,7 @@ parts: - caption: Workshops chapters: + - file: workshops/scipy2022/README - file: workshops/oceanhackweek2020/README sections: - url: https://tutorial.xarray.dev/overview/xarray-in-45-min @@ -57,27 +59,6 @@ parts: - file: workshops/online-tutorial-series/01_xarray_fundamentals - file: workshops/online-tutorial-series/02_indexing - file: workshops/online-tutorial-series/03_computation - - file: workshops/scipy2022/README - sections: - - url: https://tutorial.xarray.dev/fundamentals/01_datastructures_and_io - title: Data Structures - - file: workshops/scipy2022/cleaning_real_data - - url: https://tutorial.xarray.dev/fundamentals/02.1_working_with_labeled_data - title: Labeled Data - - url: https://tutorial.xarray.dev/fundamentals/02.2_manipulating_dimensions - title: Manipulating Dimensions - - url: https://tutorial.xarray.dev/fundamentals/02.3_aligning_data_objects - title: Data Alignment - - url: https://tutorial.xarray.dev/fundamentals/03.1_computation_with_xarray - title: Computation - - url: https://tutorial.xarray.dev/fundamentals/03.2_groupby_with_xarray - title: Groupby - - url: https://tutorial.xarray.dev/fundamentals/04.0_plotting.html - title: Plotting and Visualization - - file: workshops/scipy2022/xarray_ecosystem - - url: https://tutorial.xarray.dev/fundamentals/06_xarray_and_dask - title: Xarray and Dask - - caption: Reference chapters: - file: reference/resources diff --git a/workshops/scipy2022/xarray_ecosystem.ipynb b/intermediate/xarray_ecosystem.ipynb similarity index 83% rename from workshops/scipy2022/xarray_ecosystem.ipynb rename to intermediate/xarray_ecosystem.ipynb index fa1b1d07..44d793a9 100644 --- a/workshops/scipy2022/xarray_ecosystem.ipynb +++ b/intermediate/xarray_ecosystem.ipynb @@ -6,17 +6,31 @@ "source": [ "\n", "\n", - "# Xarray Ecosystem\n", + "# A Tour of the Xarray Ecosystem\n", "\n", "Xarray is easily extensible.\n", "This means it is easy to add onto to build custom packages that tackle particular computational problems.\n", "Here we introduce two popular and widely used extensions that are installable as their own packages (via conda and pip).\n", "\n", "- [rioxarray](https://corteva.github.io/rioxarray/stable/index.html), for working with geospatial raster data using rasterio\n", - "- [pint-xarray](https://pint-xarray.readthedocs.io/en/latest/), for unit-aware computations using pint.\n", + "- [pint-xarray](https://pint-xarray.readthedocs.io/en/latest/), for unit-aware computations using pint." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## The accessor interface\n", "\n", + "- Describe what an accessor is before introducting `.rio`, `.pint` etc." + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ "## Rioxarray\n", - "more details about rioxarray here\n" + "more details about rioxarray here" ] }, { diff --git a/workshops/scipy2022/README.md b/workshops/scipy2022/README.md index 11d7df13..189bf4f7 100644 --- a/workshops/scipy2022/README.md +++ b/workshops/scipy2022/README.md @@ -1,4 +1,4 @@ -# SciPy 2022 Xarray Tutorial +# SciPy 2022 ## Xarray: Friendly, Interactive, and Scalable Scientific Data Analysis @@ -6,8 +6,9 @@ To be presented 11 July 2022 by: - Scott Henderson (Univ. Washington) - Jessica Scheick (Univ. New Hampshire) -- Tom Nicholas (Lamont-Doherty) - Emma Marshall (Univ. Utah) +- Anderson Banihirwe (CarbonPlan) +- Tom Nicholas (Lamont-Doherty Earth Observatory) This four hour workshop covers fundamental Xarray concepts with increasingly complex real-world data analysis tasks. @@ -17,14 +18,44 @@ Will be available after the event ## Schedule _These are the rough timings for the tutorial_: -| Topic | Time (min) | -| - | - | -| Introduction | 20 | -| Data structures | 30 | -| Break | 10 | -| Labeled data | 30 | -| Computation | 60 | -| Break | 10 | -| Plotting and visualization | 30 | -| Xarray ecosystem | 30 | -| Oh the places we'll go | 30 | + +```{dropdown} Introduction (20 min) +Logistics; +``` + +```{dropdown} Introduction to Xarray (30 min) +{doc}`../../fundamentals/01_datastructures` + +{doc}`../../fundamentals/01.1_io` +``` + +**Break (10 min)** + +```{dropdown} Working with Labeled Data (30 min) +{doc}`../../fundamentals/02.1_working_with_labeled_data` + +{doc}`../../fundamentals/04.1_basic_plotting` +``` + +```{dropdown} Computation (60 min) +{doc}`../../fundamentals/03.1_computation_with_xarray` + +{doc}`../../fundamentals/02.3_aligning_data_objects` + +{doc}`../../fundamentals/03.2_groupby_with_xarray` +``` + +**Break** + +```{dropdown} Plotting and Visualization (30 min) + +{doc}`../../fundamentals/04.2_faceting` + +{doc}`../../fundamentals/04.3_geographic_plotting` +``` + +```{dropdown} Oh the places we'll go - (60 min) +{doc}`../../intermediate/xarray_ecosystem` + +Demo +``` From 91edb46e4fe91e9a7c969250692f454a8ee79342 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Fri, 1 Jul 2022 11:02:37 -0600 Subject: [PATCH 2/2] Update workshops/scipy2022/README.md Co-authored-by: Scott Henderson --- workshops/scipy2022/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workshops/scipy2022/README.md b/workshops/scipy2022/README.md index 189bf4f7..066793ab 100644 --- a/workshops/scipy2022/README.md +++ b/workshops/scipy2022/README.md @@ -2,9 +2,10 @@ ## Xarray: Friendly, Interactive, and Scalable Scientific Data Analysis -To be presented 11 July 2022 by: +Organized by: - Scott Henderson (Univ. Washington) +- Deepak Cherian (National Center for Atmospheric Research) - Jessica Scheick (Univ. New Hampshire) - Emma Marshall (Univ. Utah) - Anderson Banihirwe (CarbonPlan)