Skip to content

Instantly share code, notes, and snippets.

View erussell's full-sized avatar

Eric Russell erussell

  • National Geographic Society
  • Washington, DC
View GitHub Profile
@erussell
erussell / BoundingCurve.cs
Created June 14, 2011 13:47
C# Class for polygonizing a binary raster
using System;
using System.Collections.Generic;
using ESRI.ArcGIS.DataSourcesRaster;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Geometry;
internal enum CurveDirection { RIGHT, UP, LEFT, DOWN };
public sealed class BoundingCurve
{
@erussell
erussell / trac2github.py
Created September 1, 2011 20:06
Import Trac tickets into GitHub issues, using v3 of the GitHub API. Based on https://github.com/adamcik/github-trac-ticket-import
#!/usr/bin/env python
import base64
import csv
import json
import urllib
import urllib2
import string
# Dictionary mapping Trac usernames to GitHub usernames
@erussell
erussell / .gitignore
Created July 25, 2012 14:59
Python script to be run daily to maintain an ArcGIS mosaic dataset of Growing Degree Days, using tempertaure data from the Historical Climate Network
/data
/mosaic.gdb
/scratch.gdb