Skip to content

Instantly share code, notes, and snippets.

View bradyrx's full-sized avatar

Riley Brady bradyrx

View GitHub Profile
@bradyrx
bradyrx / block_bootstrap_numpy.ipynb
Created November 4, 2019 20:28
Uses numpy and apply_ufunc to block bootstrap over a grid.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bradyrx
bradyrx / sea_ice_curvilinear_demo.ipynb
Created November 2, 2019 23:31
Demo of plotting, area-weighting, and regridding with a curvilinear sea ice grid (e.g. CESM/CICE)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bradyrx
bradyrx / shapefile_xarray_demo.ipynb
Last active August 1, 2025 10:59
Masking with shapefiles and xarray
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bradyrx
bradyrx / compute_slopes_globally_with_dask.ipynb
Created October 16, 2019 20:52
Computes linear regression slopes at every grid cell for a full ensemble using intake-esm, xarray, and dask.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bradyrx
bradyrx / global_regression_esmtools.ipynb
Created September 27, 2019 20:53
Grid-based linear regression
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bradyrx
bradyrx / demo_notebook_autocorr.ipynb
Created September 26, 2019 22:28
Autocorr with dask for a big array.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bradyrx
bradyrx / demo_notebook_apply_ufunc.ipynb
Last active September 26, 2019 22:16
Why is apply ufunc so weird?!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bradyrx
bradyrx / sea_ice_plotting.ipynb
Created September 20, 2019 19:59
Regridding tripolar sea ice grid to 1x1.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bradyrx
bradyrx / dask_jobqueue_demo.ipynb
Created August 16, 2019 19:31
Demo of dask jobqueue on RC Summit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.