Skip to content

Instantly share code, notes, and snippets.

@mtaptich
mtaptich / README.md
Last active March 12, 2018 03:17
Filter map with slider in d3.js

A simple way to filter spatial data in d3.js using HTML5 range input slider.

Data: The greenhouse gas emissions needed to ship logs for lumber, pulping, etc. to Chicago by a combination of rail and truck freight modes. We call the spatial extent in which trade is possible given an environmental budget a freightshed. Read more about this concept, DOI: 10.1021/acs.est.5b01697.

@mtaptich
mtaptich / index.html
Last active May 28, 2019 05:07
MUNI Greenhouse Gas Emissions (Realtime)
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<style>
html{
background-color: #000;
}
body {
width: 1024px;
@mtaptich
mtaptich / README.md
Last active June 5, 2016 17:33
Capture the Plume!

The control of contaminant migration in groundwater is a common task for environmental engineers. One way of completing this work is by installing recovery wells downstream of the chemical plume. In this visualization, I illustrate how pumping rates effect the "capture zone" of the recovery well under various groundwater flow rates. The setting assumes that the plume is contained within a confined aquifer that is 30m thick. The coordinates are a plan view of the system and the groundwater flow direction is shown via the moving circles.

@mtaptich
mtaptich / README.md
Last active June 5, 2016 22:12
Intake Fraction (PM2.5)

Intake fraction (iF) is a measurement used to describe the mass of pollution inhaled for some quantity of pollution emitted to the atmosphere. Scientists, engineers, and public health officials use this metric in the process of evaluating the exposure consequences attributable to a given emissions source.

The map above shows iF measurements for particulate matter taken from the Air Pollution Emission Experiments and Policy model. Notice that differences in proximate population density and local meteorology can produce substantial variability in iFs.

@mtaptich
mtaptich / Readme.md
Last active July 27, 2016 15:29
Urban Dynamometer Driving Schedule

Urban Dynamometer Driving Schedule is the standardized dynamometer test on fuel economy that represents city driving conditions for light-duty vehicles.