On July 5, a 7.1 magnitude earthquake rumbled beneath the Searles Valley in California's Mojave Desert.
The U.S. Geological Survey mapped its intensity as it rippled across Southern California.
Here's that data modeled in 3D.
| import httplib2 | |
| import urllib | |
| try: | |
| import json | |
| except ImportError: | |
| import simplejson as json | |
| # create a global Http object so we can reuse connections | |
| http = httplib2.Http('.cache') |
| var allPolygons = []; | |
| function setPolys(geom) { | |
| /* geom: a GeoJSON object. | |
| Parse geom, and add it as a child to the global Raphael object, R. | |
| */ | |
| //geom.type either Polygon or MultiPolygon | |
| var translationFunction = function(coords) { | |
| var projected = Projections.contiguous.forward(coords); | |
| var x = 217+(projected[0]*190/2400000); |
| backend app1 { | |
| .host = "1.1.1.1"; | |
| .port = "80"; | |
| } | |
| backend app2 { | |
| .host = "2.2.2.2"; | |
| .port = "80"; | |
| } |