Skip to content

Instantly share code, notes, and snippets.

View djgagne's full-sized avatar

David John Gagne djgagne

View GitHub Profile
@djgagne
djgagne / chaser_map.py
Last active May 21, 2019 03:21
Spotter Network Chaser Map
import urllib.request
import numpy as np
from scipy.spatial import cKDTree
import cartopy.crs as ccrs
import cartopy.feature as cfeature
from scipy.ndimage import gaussian_filter
from datetime import datetime
import matplotlib.pyplot as plt
fp = urllib.request.urlopen("http://www.spotternetwork.org/feeds/gr-no.txt")
objs = []
@djgagne
djgagne / DistributedROC.py
Created October 18, 2015 03:47
Performance Diagram plotting code
import numpy as np
import pandas as pd
class DistributedROC(object):
"""
Store statistics for calculating receiver operating characteristic (ROC) curves and performance diagrams and permit
easy aggregation of ROC curves from many small datasets.
Parameters
----------