Skip to content

Commit

Permalink
🚸 Walkthrough on handling multi-resolution climate data (#91)
Browse files Browse the repository at this point in the history
Tutorial on loading time-series climate datasets with different spatial resolutions for a super-resolution task. Looking at one of the CMIP6 global coupled ocean-atmosphere general circulation model (GCM) outputs and CarbonPlan's super-resolution (DeepSD) product.

* 🚸 Walkthrough on handling multi-resolution climate data

Initial draft tutorial on loading climate datasets with different spatial resolutions for a super-resolution task. Will be looking at one of the CMIP6 model outputs and CarbonPlan's super-resolution (DeepSD) product.

* ➕ Add xarray-datatree

Hierarchical tree-like data structures for xarray!

* 💫 Plot GCM and GARD-MV projected max temperature over South Asia

Show a side by side comparison of daily maximum near-surface air temperature in Aug 2089 over South Asia from the Global Climate Model (GCM) and GARD-MV dowscaled product. Adapted from Figure 1 of https://carbonplan.org/research/cmip6-downscaling-explainer

Also converted arc degree units to arc minutes and fixed a broken link to the Zarr docs.

* 📝 Writeup section on stacking datasets into a DataTree stucture

Show how to stack xarray.Dataset objects with different spatial resolutions into a nested DataTree structure. Showing the DataPipe graph too for good measure. Also added intersphinx link for xarray-datatree.

* 📝 Writeup section on spatiotemporal subsetting of multires datasets

Show how to select data from a DataTree object that fits within a particular geographical bounding box and time range. Had to convert the low-resolution GCM's longitude coordinates from 0-360 to -180-180 first to match the DeepSD grid. Plotted the subsetted output for the Philippines on Dec 2030, and added a note about how one should approach pixel alignment and reprojection/resampling before performing spatial subsets.

* 📝 Writeup final section on time-series slicing and dataloading

Completing the multi-resolution tutorial hastily. Binning the temperature data in a monthly manner and chucking it into DataLoader2. Hopefully able to do multi-resolution spatial subsetting some day with changes in xbatcher!

* ✏️ Reword lesson outline and fix some typos

Clarify that the climate dataset slicing is only on the time dimension and not the spatial dimensions for now. Also fixed a few typos here and there.
  • Loading branch information
weiji14 authored Apr 17, 2023
1 parent f5e1704 commit bdd21e8
Show file tree
Hide file tree
Showing 5 changed files with 453 additions and 10 deletions.
3 changes: 3 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ sphinx:
datashader:
- 'https://datashader.org/'
- null
datatree:
- 'https://xarray-datatree.readthedocs.io/en/latest/'
- null
geopandas:
- 'https://geopandas.org/en/latest/'
- null
Expand Down
2 changes: 2 additions & 0 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ chapters:
file: object-detection-boxes
- title: 🏳️‍🌈 Stacking layers
file: stacking
- title: 📶 Multi-resolution
file: multi-resolution
- title: 📖 API Reference
file: api
- title: 📆 Changelog
Expand Down
Loading

0 comments on commit bdd21e8

Please sign in to comment.