to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
The last time we took on the subject of balls, it was to consider the physics of New England Patriots' quarterback Tom Brady's deflated balls. Today, we're going back to the ball pit because Los Angeles' city government is spending $34.5 million to dump up to 96 million plastic balls into a water reservoir, where the apple-sized floating black spheres are intended to reduce water loss due to evaporation and to reduce the need to treat the water with chemicals to keep algae and bacteria growth at bay.
While it's an open question as to whether the black balls will be successful at their second mission, as other scientists have hypothesized that they might actually promote bacterial growth instead of hindering it, the balls should be somewhat successful in minimizing the loss of water due to evaporation by preventing direct sunlight from reaching and heating the reservoir's water surface. The question is how much might the balls succeed in reducing that evaporation.
Environmental Economics' Tim Haab worked up the basic math, which we're both immortalizing and extending today in a tool designed to answer not just that question, but also how many balls it would take if the city leaders of Los Angeles chose to substitute balls of other sizes for the apple-sized ones they are using.
In doing so, we're going to make two key assumptions. First, that the surface of the 175 acre Los Angeles Reservoir will be able to accommodate the densest packing of 2D circles in a plane, which means that a maximum of 90.7% of the water's surface will be covered by the spheres, which in turn, will represent the maximum amount by which evaporation losses will be reduced. Second, we'll also assume that the blackened spheres will not rotate to expose any wetted surface to the open air or sunlight, which would increase the evaporation rate.
Got all that? Good! Let's get to the tool.... (If you're accessing this article through a site that republishes our RSS news feed, please click through to our site to access a working version of the tool!)
That said, all the default values that appear in the tool above are those that apply to the Los Angeles Reservoir shade ball project. If you want to redo the math to consider the average annual evaporation rate in your state or to consider a project where the area being covered in balls in measured in square feet rather than acres (like a swimming pool), just enter your square footage figure and type "/43560" (without the quotation marks around it) immediately after it in the "Reservoir Area" data entry field. Doing so will convert your square footage to be in the units of acres that our tool references.
But the real fun is to consider what it would mean to substitute 1.575-inch diameter standard ping pong balls or 32-inch diameter giant rainbow beach balls, since it is California after all. Or more interestingly, the 96-inch diameter balls shown in the video below:
What could possibly go wrong?!
Labels: environment, tool
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.