Skip to content

Instantly share code, notes, and snippets.

View jbusecke's full-sized avatar

Julius Busecke jbusecke

View GitHub Profile
@jbusecke
jbusecke / xr_cumsum_on_chunked_core_dims.ipynb
Last active March 31, 2022 17:35
Checking that xarray computes the correct cumulative sum on chunked core dimensions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jbusecke
jbusecke / compare_index_nodes.ipynb
Created February 22, 2022 18:08
Investigate differing retraction info on different ESGF nodes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jbusecke
jbusecke / llc4320.ipynb
Created February 18, 2022 19:12
Snippet to test stuff on LLC4320 in the cloud
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jbusecke
jbusecke / ufunc_testing.ipynb
Created February 16, 2022 17:30
Playing around with grid_ufuncs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jbusecke
jbusecke / heuze_cmip6_section_example
Created February 4, 2022 22:56
A demo of how to use xarrays interpolation to extract a section of velocity.
{
"cells": [
{
"cell_type": "markdown",
"id": "1db47484",
"metadata": {},
"source": [
"# Example how to use pangeo to process CMIP6 models for Céline Heuzé\n",
"\n",
"[Inspiration](https://twitter.com/ClnHz/status/1442852277463785482)"
@jbusecke
jbusecke / crawl_retracted_cmip6.ipynb
Created February 2, 2022 21:08
Trying to crawl the entire CMIP6 cloud catalog and check for retractions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jbusecke
jbusecke / tom_example.ipynb
Created October 1, 2021 16:49
Example Dataset for Tom (DataTree and CMIP6)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jbusecke
jbusecke / gist:9a2be41abef1528adf20765631f43db6
Created September 14, 2021 19:54
recipe pickle hack for charles
@contextmanager
def open_input(
input_key: InputKey,
file_pattern: FilePattern,
input_cache: Optional[CacheFSSpecTarget],
cache_inputs: bool,
copy_input_to_local_file: bool,
xarray_open_kwargs: dict,
delete_input_encoding: bool,
process_input: Optional[Callable[[xr.Dataset, str], xr.Dataset]],
@jbusecke
jbusecke / how_to_update_xarray_properly_pangeo_cloud-2.ipynb
Last active July 26, 2021 22:35
Quick example how to work with a newer xarray version in the pangeo cloud
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jbusecke
jbusecke / interpolate_or_combine.ipynb
Created July 13, 2021 17:54
Comparison between reconstruction methods for ocean metrics using GFDL OM025
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.