Skip to content

Instantly share code, notes, and snippets.

View Crista2019's full-sized avatar

Crista Falk Crista2019

View GitHub Profile
@Crista2019
Crista2019 / overlay_graphics.html
Last active July 31, 2018 20:57
A few prototype dynamic visuals to model later (potentially in nicer, more professional sass)
<!DOCTYPE>
<HTML>
<head>
</head>
<body onload="runAllChanges()">
<style>
.bar {
height: 200px;
border: 5px solid black;
width: 90px;
@Crista2019
Crista2019 / percent_slope_to_coordinates.py
Last active July 31, 2018 17:41
Finding (x,y) coordinates for modeling a hill slope based on three 0% (horizontal) to 100% (vertical) slope segments
import math
class Slopes:
top_slope_percent = 0
avg_slope_percent = 0
toe_slope_percent = 0
top_slope = 0
avg_slope = 0
@Crista2019
Crista2019 / ermit_visualization_data.json
Created July 25, 2018 16:35
JSON for Virtual Tech Labs' ERMiT visualization development
{'top_slope': '20', 'avg_slope': '20', 'toe_slope': '20', 'length_ft': '200', 'cli_fn': '../climates/al010831', 'severity': 'm', 'soil_type': 'loam', 'vegetation': 'forest', 'rock_content': '50', 'pct_grass': '', 'pct_shrub': '', 'annual_precipitation': '54', 'annual_runoff_rain': '14', 'annual_runoff_winter': '1', 'storm_number':
'11710', 'rain_events': '3615', 'winter_events': '207', 'prob_sediment_yield_exceeded': '20'}