I hereby claim:
- I am jhamman on github.
- I am jhamman (https://keybase.io/jhamman) on keybase.
- I have a public key ASCa9ggHDxnpiQiIQJaQu7h3f4z4AwIq9XMtim36XN7Jhwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| distributed: | |
| scheduler: | |
| bandwidth: 1000000000 # GB MB/s estimated worker-worker bandwidth | |
| worker: | |
| memory: | |
| target: 0.90 # Avoid spilling to disk | |
| spill: False # Avoid spilling to disk | |
| pause: 0.80 # fraction at which we pause worker threads | |
| terminate: 0.95 # fraction at which we terminate the worker | |
| comm: |
| { | |
| "metadata": { | |
| "name": "esgf_opendap" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ | |
| { |
| #!/bin/bash | |
| # Create trap to kill notebook when user is done | |
| kill_server() { | |
| if [[ $JNPID != -1 ]]; then | |
| echo -en "\nKilling Jupyter Notebook Server with PID=$JNPID ... " | |
| kill $JNPID | |
| echo "done" | |
| exit 0 | |
| else |
| import numpy as np | |
| from scipy import stats | |
| import dask.array as da | |
| import xarray as xr | |
| def test_quantile_mapping_dask(): | |
| # input datasets -- dims (time, y, x) |
| --------------------------------------------------------------------------- | |
| TypeError Traceback (most recent call last) | |
| <ipython-input-17-2776a0e3d860> in <module>() | |
| ----> 1 test_quantile_mapping_dask() | |
| <ipython-input-16-09fe8c5dfb29> in test_quantile_mapping_dask() | |
| 21 | |
| 22 new = quantile_mapping(input_data, data_to_match) | |
| ---> 23 new.compute() | |
| 24 new.data.visualize() |
| def add_random_effect(ds, ds_rand, pop_thresh=None, t_root=1., p_root=3.): | |
| '''Add random effects to dataset `ds` | |
| Parameters | |
| ---------- | |
| ds : xarray.Dataset | |
| Input dataset with variables `tas` and/or `pr` | |
| ds_rand : xarray.Dataset | |
| Input dataset with random fields with variable names `t_rand` and `p_rand` | |
| pop_thresh : float |