Skip to content

Instantly share code, notes, and snippets.

🐌
I'll be slow to respond - I operate a notification pull (not push) policy

Phil Elson pelson

🐌
I'll be slow to respond - I operate a notification pull (not push) policy
Block or report user

Report or block pelson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pelson
pelson / Unstructured grid visualisation.ipynb
Created Apr 23, 2013
An extension of http://nbviewer.ipython.org/3959751 to show vectors in a triangulated grid.
View Unstructured grid visualisation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / using.ipynb
Last active Dec 17, 2015
Demonstration of the new from_levels_and_colors function.
View using.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / working_with_colors.ipynb
Last active Dec 17, 2015
Demonstration of using colormaps with custom colors. Follows on from the discussion at https://groups.google.com/forum/?fromgroups#!topic/scitools-iris/hsb6ExNgSss
View working_with_colors.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / Image interpolation from cartopy.ipynb
Last active Dec 17, 2015
Work in progress documentation on the spherical image interpolation scheme available in Cartopy.
View Image interpolation from cartopy.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / Matplotlib v1.3.0 features.ipyn
Last active Dec 17, 2015
A summary of my matplotlib v1.3.0 feature enhancements
View Matplotlib v1.3.0 features.ipyn
{
"metadata": {
"name": "Matplotlib v1.3.0 features"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@pelson
pelson / massive_arrays_with_biggus.ipynb
Last active Dec 20, 2015
Uses biggus to expose "virtual" arrays much larger than one would expect to be able to load into memory. (Still work in progress)
View massive_arrays_with_biggus.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / Handling ORCA data in Iris.ipynb
Created Aug 13, 2013
A very rough example of working with ORCA data in iris and cartopy.
View Handling ORCA data in Iris.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / area_map.py
Last active Dec 21, 2015
Answers a question over at stackoverflow relating to html area maps from cartopy (http://stackoverflow.com/questions/18380365/cartopy-country-map-with-html-area-links)
View area_map.py
import cartopy.crs as ccrs
import cartopy.io.shapereader as shpreader
import matplotlib.pyplot as plt
import numpy as np
import shapely.geometry as sgeom
# Set up the figure, and an axes which fits the figure as much as possible.
fig = plt.figure(figsize=(14, 10))
ax = plt.axes([0, 0, 1, 1], projection=ccrs.PlateCarree())
@pelson
pelson / clipping_contours_with_mpl.ipynb
Last active Dec 22, 2015
Demonstrates path clipping on a contour set using a shapely geometry in response to a question by Alex Goodman on the matplotlib mailing list (subject "Clipping a plot inside a polygon").
View clipping_contours_with_mpl.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.