<?xml version="1.0" encoding="UTF-8"?>
<!--Xholon Workbook http://www.primordion.com/Xholon/wb/ (C) Ken Webb Wed Jul 11 2012 21:04:13 GMT-0400 (EDT)-->
<XholonWorkbook>
<Notes><![CDATA[
Xholon
------
Title: US tops global clean energy investment rankings
Description:
Url: http://www.bbc.co.uk/news/science-environment-17662973
InternalName:
YoutubeId:
Keywords: clean energy
My Notes
--------
How to run the app included within this workbook::
Click on the Run button above.
Click on the Step button in the overlay.
BBC environment reporter Mark Kinver writes that the United States invested more money in "clean energy" than any other country in 2011, moving ahead of China. On reading this, my first question is: What is "clean energy"? How is it defined in this report?
The report, Who is Winning the Clean Energy Race, was produced by the Pew Charitable Trusts::
http://www.pewtrusts.org/
The report is available for download from the Pew site.
The data for the report is from Bloomberg New Energy Finance, which according to Pew is their research partner::
http://www.newenergyfinance.com/
Another question I have, but won't explore in this workbook, is how the contents of the Pew report relates to a New York Times article "Fuel to Burn: Now What?" about a large increase in U.S. production of fossil fuels::
http://www.nytimes.com/2012/04/11/business/energy-environment/energy-boom-in-us-upends-expectations.html
*July 11 2012*
D3 is "a JavaScript library for manipulating documents based on data". See ::
http://d3js.org/
I've generated the data for a D3 Bubble Chart from the composite structure hierarchy, while the workbook app is running. To do this ::
Copy the text of the "D3 Bubble Chart" script from the "Workbook Scripts" workbook:
http://www.primordion.com/Xholon/wb/openwb.php?q=2567985&f=gist.github.com/raw/
Paste it into the textarea in the runtime overlay.
Click on the Submit button.
The script generates the JSON-formatted data required by D3, and writed it into the textarea.
Add several files directly to the github gist at ::
https://gist.github.com/2368807
These files are ::
bubble.css
bubble.js
data2368807.json (the text generated by the "D3 Bubble Chart" script above)
index.html
The D3 Bubble Chart can now be viewed at a site run by Mike Bostock the originator of D3 ::
http://bl.ocks.org/2368807
]]></Notes>
<script implName="lang:python:inline:"><![CDATA[
print "What is 'clean energy'?"
]]></script>
<script implName="lang:javascript:inline:"><![CDATA[
print("How is 'clean energy' defined in this report from the Pew Charitable Trusts?\n");
]]></script>
<_-.XholonClass>
<!-- types of domain objects -->
<PhysicalSystem/>
<CleanEnergy/>
<CleanEnergySector>
<!-- source: p 11 of the PDF report, and HTML interactive graphic -->
<Wind/>
<Solar/>
<BiomassAndWasteToEnergy/> <!-- includes Ethanol and Biodiesel ?, which are mentioned on the HTML interactive graphic -->
<SmallHydro/>
<Geothermal/>
<!--<Ethanol/>
<Biodiesel/>-->
<Marine/>
</CleanEnergySector>
<Investment/> <!-- in billions of U.S. dollars -->
<Country>
<UnitedStates/>
<China/>
<Germany/>
<Italy/>
<RestOfEU27/>
<India/>
<UnitedKingdom/>
<Japan/>
<Spain/>
<Brazil/>
<Canada/>
<France/>
<Australia/>
<Indonesia/>
<SouthAfrica/>
<Turkey/>
<Argentina/>
<Mexico/>
<SouthAfrica/>
</Country>
</_-.XholonClass>
<xholonClassDetails>
</xholonClassDetails>
<PhysicalSystem>
<CleanEnergy>
<!-- TOTAL WORLDWIDE INSTALLED CLEAN ENERGY CAPACITY BY TECHNOLOGY (AS OF DECEMBER 2011) -->
<Wind>239 GW</Wind>
<Solar>73 GW</Solar>
<BiomassAndWasteToEnergy>57 GW</BiomassAndWasteToEnergy>
<SmallHydro>184 GW</SmallHydro>
<Geothermal>11 GW</Geothermal>
<Marine>0.6 GW</Marine>
</CleanEnergy>
<Investment>
<UnitedStates>48.0 $</UnitedStates>
<China>45.5 $</China>
<Germany>30.6 $</Germany>
<Italy>28.0 $</Italy>
<RestOfEU27>11.1 $</RestOfEU27>
<India>10.2 $</India>
<UnitedKingdom>9.4 $</UnitedKingdom>
<Japan>8.6 $</Japan>
<Spain>8.6 $</Spain>
<Brazil>8.0 $</Brazil>
<Canada>5.5 $</Canada>
<France>5.0 $</France>
<Australia>4.9 $</Australia>
<Indonesia>1 $</Indonesia>
<SouthKorea>0.3 $</SouthKorea>
<Turkey>0.3 $</Turkey>
<Argentina>0.1 $</Argentina>
<Mexico>0.05 $</Mexico>
<SouthAfrica>0.02 $</SouthAfrica>
</Investment>
</PhysicalSystem>
<Blockbehavior implName="lang:python:inline:"><![CDATA[
]]></Blockbehavior>
<Blockbehavior implName="lang:javascript:inline:"><![CDATA[
]]></Blockbehavior>
<CleanEnergybehavior implName="lang:webEditionjs:inline:"><![CDATA[
print("\nHow is 'clean energy' defined in this report from the Pew Charitable Trusts?");
var allSectors = this.siblings();
var total = 0;
allSectors.each( function() {
$this = $(this);
var subtotal = $this.attr("val") - 0;
print("\n " + $this.getXhcName() + " " + subtotal + " " + $this.attr("unit"));
total += subtotal;
});
print("\nTOTAL WORLDWIDE INSTALLED CLEAN ENERGY CAPACITY (AS OF DECEMBER 2011): " + total + " GW");
]]></CleanEnergybehavior>
<Investmentbehavior implName="lang:webEditionjs:inline:"><![CDATA[
// G20 nongovernmental, non-research
print("\n\nInvestment in billions of dollars");
var allCountries = this.siblings();
var total = 0;
allCountries.each( function() {
$this = $(this);
var subtotal = $this.attr("val") - 0;
print("\n " + $this.getXhcName() + " " + subtotal);
total += subtotal;
});
print("\nG20 TOTAL INVESTMENT, 2011 (BILLIONS OF $): " + total.toFixed(1));
// G20 + others = 237.2 billion $
]]></Investmentbehavior>
<Blockbehavior implName="lang:bsh:inline:"><![CDATA[
]]></Blockbehavior>
<Blockbehavior implName="lang:jruby:inline:"><![CDATA[
]]></Blockbehavior>
<Blockbehavior implName="lang:groovy:inline:"><![CDATA[
]]></Blockbehavior>
<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml,
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Clean Energy</title>
<rect id="PhysicalSystem/Block" fill="#98FB98" height="50" width="50" x="25" y="0"/>
</g>
</svg>
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient>
</XholonWorkbook>