Skip to content

Instantly share code, notes, and snippets.

View pelson's full-sized avatar

Phil Elson pelson

View GitHub Profile
div.olMap {
z-index: 0;
padding: 0 !important;
margin: 0 !important;
cursor: default;
}
div.olMapViewport {
text-align: left;
-ms-touch-action: none;
@pelson
pelson / Procfile
Last active November 2, 2020 17:23
Example of cartopy source in mapproxy
web: env/bin/mapproxy-util serve-develop mapproxy.yaml --bind 0.0.0.0:${PORT:=8080}
@pelson
pelson / ORCA data.ipynb
Created January 26, 2016 16:58
An example of plotting ORCA 0.25 data with cartopy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / example.ipynb
Last active November 16, 2015 13:50
Drawing Natural Earth bathymetry
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / nbagg_backend.ipynb
Last active September 19, 2015 08:00
A discussion on the new nbagg backend in matplotlib v1.4.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / performance_nearest_vs_linear.ipynb
Created September 3, 2015 11:11
A comparison of performance for linear and nearest interpolation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / nearest_interpolation.ipynb
Created September 3, 2015 10:34
An example of fixing nearest neighbour interpolation in iris
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / cdat_lite-5.2-1.tar.gz
Last active October 14, 2015 14:14
An upload of the lost source of CDAT-lite
This file has been truncated, but you can view the full file.
@pelson
pelson / ipython.patch
Last active August 29, 2015 14:25
Changes to get IPython 3 to list kernels based on conda environments (requires conda on the path, and for the post-link.sh to be executed for each IPython enabled environment). This is a hack, and I expect there is a better way of doing this...
diff --git IPython/kernel/kernelspec.py IPython/kernel/kernelspec.py
index 0df16c7..d2df218 100644
--- IPython/kernel/kernelspec.py
+++ IPython/kernel/kernelspec.py
@@ -1,7 +1,9 @@
import io
import json
+import glob
import os
import shutil
@pelson
pelson / biggus_expression.png
Last active August 29, 2015 14:22
Visualising biggus expressions in with networkx and dot (blue are results)
biggus_expression.png