Skip to content

Instantly share code, notes, and snippets.

View danhammer's full-sized avatar

Dan danhammer

View GitHub Profile
@danhammer
danhammer / final_sample.geojson
Created September 29, 2020 18:40
a final sample of WoSIS data with environmental and image data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danhammer
danhammer / weather_pts.geojson
Created September 29, 2020 04:20
WoSIS points with weather data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danhammer
danhammer / automata.py
Created September 17, 2020 05:27
really simple cellular automata to illustrate fire breaks
import numpy as np
import matplotlib.pyplot as plt
u = np.array([[4], [2], [1]])
def step(x, rule_b):
"""Compute a single stet of an elementary cellular
automaton."""
# The columns contains the L, C, R values
# of all cells.
@danhammer
danhammer / water.py
Created September 8, 2020 15:33
A quick set of functions to help in water calculation for the IWT
import ee
from datetime import datetime
import numpy as np
def surface_water(coords, year):
loc = "L7_TOA_1YEAR/%s" % year
weights = {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danhammer
danhammer / .block
Last active July 4, 2020 15:42
interactive
license: mit
@danhammer
danhammer / schoolyard.geojson
Last active July 2, 2020 22:01
Anderson Elementary School
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danhammer
danhammer / schoolyard.geojson
Created July 2, 2020 20:23
TPL schoolyard sample (Chiloquin Elementary and High School)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danhammer
danhammer / bsf3.geojson
Last active June 14, 2020 04:48
GeoJSON for parcels of size ~100 plots (field `BSF 3`, Sirmon Farm).
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.