Skip to content

Instantly share code, notes, and snippets.

View rsignell-usgs's full-sized avatar

Rich Signell rsignell-usgs

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rsignell-usgs
rsignell-usgs / gist:3900648
Created October 16, 2012 17:15
basemap WMS example
{
"metadata": {
"name": "WMS Basemap Test"
},
"nbformat": 3,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
@rsignell-usgs
rsignell-usgs / gist:3902131
Created October 16, 2012 21:22
basemap with WMS and street map
{
"metadata": {
"name": "WMS test with Basemap and Streetmap"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
import urllib
import urllib2
import matplotlib.pyplot as plt
# 1. imread can load a PNG URL thusly...
url = 'http://optipng.sourceforge.net/pngtech/img/lena.png'
im = plt.imread(urllib2.urlopen(url),format='png')
plt.imshow(im)
# 2. same thing for JPG URL bombs...
@rsignell-usgs
rsignell-usgs / gist:3907810
Created October 17, 2012 20:04
Display a remote JPEG URL in Matlablib without writing to disk
{
"metadata": {
"name": "Display a remote JPEG URL in Matplotlib"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@rsignell-usgs
rsignell-usgs / gist:3907909
Created October 17, 2012 20:21
NOAA OpenStreetMap WMS in Basemap
{
"metadata": {
"name": "WMS OpenStreetMap in Basemap"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@rsignell-usgs
rsignell-usgs / remote_jpeg.ipynb
Last active October 11, 2015 20:58
Displaying a remote JPEG URL in Matplotlib
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rsignell-usgs
rsignell-usgs / gist:3934668
Created October 22, 2012 21:46
NOAA OpenStreetMap WMS in Basemap
{
"metadata": {
"name": "NOAA OpenStreetMap WMS in Basemap"
},
"nbformat": 3,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
@rsignell-usgs
rsignell-usgs / gist:3958831
Created October 26, 2012 13:29
PyData 2012 NYC talk on accessing data from ocean models
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "PyData NYC"
},
"nbformat": 3,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "PyData NYC"
},
"nbformat": 3,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",