Skip to content

Instantly share code, notes, and snippets.

View rutgerhofste's full-sized avatar

Rutger Hofste rutgerhofste

  • WRI
  • Washington DC
View GitHub Profile
@rutgerhofste
rutgerhofste / index.html
Last active February 1, 2018 11:05
D3 V4 zoom with Axis explained
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style.css">
<body></body>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="script.js"></script>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "code",
"execution_count": 64,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
@rutgerhofste
rutgerhofste / geopandasSolved
Created August 24, 2017 21:25
geopandasSolved
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
@rutgerhofste
rutgerhofste / gist:529cd658967243ff6f89fb7df91a3986
Last active September 6, 2017 15:13
Earth engine Dimensions not working
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Calculate average PCRGlobWB supply using EE\n",
"\n",
"* Purpose of script: This script will calculate baseline supply based on runoff for 1960-2014 at 5min resolution\n",
"* Author: Rutger Hofste\n",
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Calculate average PCRGlobWB supply using EE\n",
"\n",
"* Purpose of script: This script will calculate baseline supply based on runoff for 1960-2014 at 5min resolution\n",
"* Author: Rutger Hofste\n",
@rutgerhofste
rutgerhofste / gist:c6216f1506a8b41b350e01a5b5265b16
Created November 10, 2017 11:45
Geopandas and Cartopy question
{
"cells": [
{
"cell_type": "code",
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"import cartopy.crs as ccrs\n",
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
{
"cells": [
{
"cell_type": "code",
"execution_count": 36,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [