Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View pelson's full-sized avatar

Phil Elson pelson

View GitHub Profile
@pelson
pelson / mega_merge.ipynb
Last active July 4, 2018 06:41
Iris cube mega-merge: how to join disjoint tiles into a single cube with Iris
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / contour.geojson
Created July 4, 2018 12:36
Example of a GeoJSON produced with cartopy and matplotlib
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import cartopy.crs as ccrs
import matplotlib.animation as animation
import matplotlib.pyplot as plt
ax = plt.axes(projection=ccrs.Robinson())
ax.stock_img()
ny_lon, ny_lat = -75, 43
delhi_lon, delhi_lat = 77.23, 28.61
@pelson
pelson / index.ipynb
Last active August 31, 2018 09:10
A notebook to answer a StackOverflow question (https://stackoverflow.com/questions/51801109) relating to animating the rotation of a projecton using cartopy
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / index.ipynb
Last active January 5, 2019 11:36
First pass at documenting the cartopy project_segment algorithm
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / index.ipynb
Created January 20, 2019 14:23
CPython grammar and negative numbers - they only appear after an AST optimisation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / .gitignore
Last active February 27, 2019 11:58
A quick proof-of-concept to wrap a C++ object in a Fortran 2003 object, and honouring the C++ object lifecycle
bin/
*.o
*.mod
.nfs*
@pelson
pelson / gfort.sh
Last active March 15, 2019 14:05
Demonstration of Intel Fortran compiler issue
gfortran -g main.f90 -fbacktrace -O0 && ./a.out
@pelson
pelson / index.ipynb
Created April 17, 2019 08:28
(old) Demo of automatic front and feature identification
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
pelson / index.ipynb
Last active April 17, 2019 08:57
(old) Playing with Shapely and the 2012 Olympic torch track
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.