Skip to content

Instantly share code, notes, and snippets.

View pelson's full-sized avatar

Phil Elson pelson

View GitHub Profile
@pelson
pelson / cartopy_map_tiles.ipynb
Last active August 29, 2015 13:56
Example of adding a map tiles layer to a Cartopy map.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / Biggus_intro.ipynb
Last active August 29, 2015 13:56
Presentation for PyData London 2014 on Biggus.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / Active volcanoes.ipynb
Last active August 29, 2015 13:59
Active volcanes.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / wmts.ipynb
Created May 8, 2014 12:42
Demonstration of the new cartopy WMTS support
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / gist:7b461a798e454533d4ef
Created May 12, 2014 16:22
Rotated pole gridlines with cartopy
{
"metadata": {
"name": "",
"signature": "sha256:68ec433e15c491232c633014253cd49f3bd9705993a10360f5eea660dc3bbff9"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@pelson
pelson / mask.ipynb
Created July 16, 2014 12:57
Demonstration of constructing a geometry based mask
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / README
Last active August 29, 2015 14:05
Allows control the travis-ci machine via a text file, as a poor-man's keyboard.
Allows control the travis-ci machine via a text file, as a poor-man's keyboard.
Note: This is only a hacky example when I got frustrated by the queue time for travis-ci builds.
Run with the URL of the command file as the only argument:
python listen_and_execute.py https://gist.githubusercontent.com/pelson/a9e8b25496309fa2997d/raw/commands.txt
@pelson
pelson / sample.py
Created August 31, 2014 15:41
Image manipulation using mpl for @stefanv.
"""
Example of applying text to an image for Stefan VdW.
The image is not transfomed throgh the mpl pipeline, and is instead
constrained to pixel space of the figure's resulting image.
"""
def new_figure(width, height):
"""
@pelson
pelson / iris_qplt_colorbar_control.ipynb
Created October 8, 2014 10:11
Describes how to get hold of the reference to the colorbar artists when using Iris' quickplot module.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.