Skip to content

Short demo of Dask, Numba, and Xarray for Herman Group meeting.

License

Notifications You must be signed in to change notification settings

ekblad/dask_numba_xarray

Repository files navigation

dask_numba_xarray

Short demo of Dask, Numba, and Xarray for Herman Group meeting. If you want to download the data that was used to run the Xarray notebook, it can be found here. I used these four files from the atmospheric variables:

  1. huss_day_CanESM2_historical_rcp85_r1i1p1_19500101-21001231.nc (from the daily atmospheric data - 1.37 GB)
  2. pr_day_CanESM2_historical_rcp85_r1i1p1_19500101-21001231.nc (from the daily atmospheric data - 1.54 GB)
  3. tas_day_CanESM2_historical_rcp85_r1i1p1_19500101-21001231.nc (from the daily atmospheric data - 1.09 GB)
  4. zg_Amon_CanESM2_historical_rcp85_r1i1p1_195001-210012.nc (from the monthly atmospheric data - 694 MB)

These scripts need the Dask, Xarray, and Numba libraries (particularly dask.distributed) and the usual Numpy/Pandas/Matplotlib. In addition, the Dask demo uses NetworkX for visualizing the task graph, and the Xarray demo also requires Cartopy for adding countries/states/coastlines to the maps. Lastly, working in Jupyter Lab is the best way to visualize when using Dask, as there is an extension that implements Dask diagnostic widgets alongside your Notebook in the same browser tab. Oh, yeah, I also used a Seaborn color palette in the Xarray script, sorry! I will containerize a python install with all necessary libraries for this type of thing in the future, so you can run this in a temporary environment and delete it after.

About

Short demo of Dask, Numba, and Xarray for Herman Group meeting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published