Skip to content

Instantly share code, notes, and snippets.

@dcherian
dcherian / tree-reduce-mfdataset.ipynb
Created November 10, 2023 00:19
Attempt a tree reduction for combining datasets in open_mfdataaset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dcherian
dcherian / groupby-shuffle.ipynb
Last active September 9, 2021 22:55
smarter time grouping with dask
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dcherian
dcherian / tao-simple-mi.ipynb
Last active August 27, 2019 15:52
pump/notebooks/tao-simple-mi.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dcherian
dcherian / parallel-animations.ipynb
Created June 5, 2019 14:46
parallel-animations.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dcherian
dcherian / dask-plotting.py
Created June 3, 2019 22:30
dask with matplotlib
import xarray as xr
import numpy as np
import dask.bag as db
from dask.diagnostics import ProgressBar
da = xr.DataArray(np.random.randn(50, 60, 100)).chunk({'dim_2': 1})
da.attrs['long_name'] = "what's in a name?"
da.attrs['units'] = 'units'
@dcherian
dcherian / aquarius_wrangling.ipynb
Last active May 31, 2019 20:27
tutorial on data wrangling to fit xarray's data model
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
From 3e0429cb3b43db8e74ece681e6b1d2f5f2b638d9 Mon Sep 17 00:00:00 2001
From: dcherian <dcherian@mit.edu>
Date: Sat, 2 Jun 2018 07:14:51 -0600
Subject: [PATCH] Fix merge. All tests pass now.
---
xarray/plot/facetgrid.py | 2 +-
xarray/plot/plot.py | 38 ++++++++++++++++++++++----------------
2 files changed, 23 insertions(+), 17 deletions(-)