A real-time visualisation of the Greenhouse Gas (in terms of CO2 equivalent) footprint of electricity consumption built with d3.js and mapbox GL, maintained by Tomorrow. Try it out at http://www.electricitymap.org, or download the app:
You can contribute by
- helping us to add a new region on the map
- correcting data sources and capacities
- translating the map
- fixing existing issues
- submitting ideas, feature requests, or bugs in the issues section.
You can also see a list of missing data displayed as warnings in the developer console, or question marks in the country panel:
Check the contributing section for more details. Join us on Slack if you wish to discuss development or need help to get started.
The company behind the electricityMap builds tech to empower organisations and individuals to understand and reduce their carbon footprint.
We're hiring great people to join our team in Copenhagen. Head over to our jobs page if you want to help out!
How do you define real-time data? Real-time data is defined as a data source with an hourly (or better) frequency, delayed by less than 2hrs. It should provide a breakdown by generation type. Often fossil fuel generation (coal/gas/oil) is combined under a single heading like 'thermal' or 'conventional', this is not a problem.
Why do you calculate the carbon intensity of consumption? In short, citizens should not be responsible for the emissions associated with all the products they export, but only for what they consume. Consumption-based accounting (CBA) is a very important aspect of climate policy, and allows to assign responsibility to consumers instead of producers. Furthermore, this method is robust to governments relocating dirty production to neighbouring countries in order to green their image while still importing from it. We published our methodology here.
Why don't you show emissions per capita? A country that has few inhabitants but a lot of factories will appear high on CO2/capita. This means you can "trick" the numbers by moving your factory abroad and import the produced good instead of the electricity itself. That country now has a low CO2/capita number because we only count CO2 for electricity (not for imported/exported goods). The CO2/capita metric, by involving the size of the population, and by not integrating all CO2 emission sources, is thus an incomplete metric. CO2 intensity on the other hand only describes where is the best place to put that factory (and when it is best to use electricity), enabling proper decisions.
CO2 emission factors look high — what do they cover exactly? The carbon intensity of each type of power plant takes into account emissions arising from the whole life cycle of the plant (construction, fuel production, operational emissions, and decommissioning).
Is delayed data useful? While the map relies on having real-time data to work it's still useful to collect data from days/months past. This older data can be used to show past emissions and build up a better dataset. So if there's an hourly data source that lags several days behind you can still build a parser for it.
Can scheduled/assumed generation data be used? The electricityMap doesn't use scheduled generation data or make assumptions about unknown fuel mixes. This is to avoid introducing extra uncertainty into emissions calculations.
Can areas other than countries be shown? Yes providing there is a valid GeoJSON geometry (or another format that can be converted) for the area. As an example we already split several countries into states and grid regions.
How can I get access to historical data or the live API? All this and more can be found here.
The carbon intensity of each country is measured from the perspective of a consumer. It represents the greenhouse gas footprint of 1 kWh consumed inside a given country. The footprint is measured in gCO2eq (grams CO2 equivalent), meaning each greenhouse gas is converted to its CO2 equivalent in terms of global warming potential over 100 year (for instance, 1 gram of methane emitted has the same global warming impact during 100 years as ~34 grams of CO2 over the same period).
The carbon intensity of each type of power plant takes into account emissions arising from the whole life cycle of the plant (construction, fuel production, operational emissions, and decommissioning). Carbon-intensity factors used in the map are detailed in co2eq_parameters.json. These numbers come mostly from the following scientific peer reviewed literature: IPCC (2014) Fifth Assessment Report is used as reference in most instances (see a summary in the wikipedia entry)
Each country has a CO2 mass flow that depends on neighbouring countries. In order to determine the carbon footprint of each country, the set of coupled CO2 mass flow balance equations of each countries must be solved simultaneously. This is done by solving the linear system of equations defining the network of greenhouse gas exchanges. Take a look at this notebook for a deeper explanation. We also published our methodology here.
Real-time electricity data is obtained using parsers.
Click to see the full list of sources
- Åland: Kraftnät Åland
- Argentina: Cammesa
- Armenia: Armenian Energy Power System Operator
- Aruba: WEB Aruba (JSON)
- Australia: AREMI National Map (CSV)
- Australia (Western): AEMO (CSV)
- Australia (distributed solar generation): Australian PV Institute
- Australia (South Battery): Nemwatch
- Austria: ENTSOE
- Bangladesh: PGCB
- Bosnia and Herzegovina: ENTSOE
- Bolivia: CNDC
- Belgium: ENTSOE
- Brazil: ONS
- Bulgaria: TSO
- Canada (Alberta): AESO
- Canada (New Brunswick): NB Power
- Canada (Nova Scotia): Nova Scotia Power
- Canada (Ontario): IESO
- Canada (Prince Edward Island): Government of PEI
- Canada (Yukon): Yukon Energy
- Chile (SING/SIC): Coordinador
- Czech Republic: ENTSOE
- Costa Rica: ICE
- Croatia (Exchanges): HOPS
- Cyprus : TSO
- Denmark: TSO
- Denmark (Bornholm): PowerlabDK
- Dominican Republic: OC
- El Salvador: Unidad de Transacciones
- Estonia: ENTSOE
- Faroe Islands: SEV
- Finland: ENTSOE
- France: RTE
- Germany: ENTSOE
- Georgia: GSE
- Great Britain: ENTSOE
- Great Britain (Orkney Islands): SSEN
- Greece: ENTSOE
- Guatemala: AMM
- Honduras: ENTE
- Hungary: ENTSOE
- Iceland: LANDSNET
- Ireland: ENTSOE
- Israel: IEC
- Italy: ENTSOE
- India: meritindia
- India (Andhra Pradesh): CORE Dashboard
- India (Chhattisgarh): cspc.co.in
- India (Delhi): delhisldc
- India (Gujarat): sldcguj
- India (Karnataka): kptclsldc.com
- India (Punjab): punjabsldc
- India (Uttar Pradesh): upsldc
- India (Uttarakhand): uksldc
- Iraq: Iraqi Power System
- Japan (Exchanges): OCCTO
- Japan (Chūbu): Chūden
- Japan (Chūgoku): Energia
- Japan (Hokkaidō): Hokuden
- Japan (Hokuriku): Rikuden
- Japan (Kansai): Kepco
- Japan (Kyūshū): Kyūden
- Japan (Kyūshū/Genkai NPP): Kyūden
- Japan (Kyūshū/Sendai NPP): Kyūden
- Japan (Shikoku): Yonden
- Japan (Tōhoku-Niigata): TH-EPCO
- Japan (Tōkyō area): TEPCO
- Kuwait: Ministry of Electricity & Water
- Latvia: ENTSOE
- Lithuania: ENTSOE
- Malaysia: GSO
- Moldova: MoldElectrica
- Montenegro: ENTSOE
- Namibia: NamPower
- Netherlands: ENTSOE
- New Zealand: Transpower
- Nicaragua: CNDC
- Northern Ireland: SONI
- Norway: ENTSOE
- Panama: CND
- Peru: COES
- Poland: ENTSOE
- Portugal: ENTSOE
- Romania: ENTSOE
- Russia: SO-UPS
- Serbia: ENTSOE
- Singapore: EMC
- Singapore (Solar): EMA
- Slovakia: ENTSOE
- Slovenia: ENTSOE
- South Korea (Nuclear): KHNP
- South Korea (Hydro): KHNP
- South Korea (Load): KPX
- Spain: ENTSOE
- Spain (Canary Islands): REE
- Spain (Balearic Islands): REE
- Sweden: SVK
- Switzerland: ENTSOE
- Taiwan: TAIPOWER
- Turkey: ytbs
- Ukraine: UKRENERGO
- United States of America
- Bonneville Power Authority: BPA
- California: CAISO
- Hawaii (Oahu Island): Islandpulse
- Idaho Power Company: IPC
- MISO: MISO
- New England: NEISO
- New York: NYISO
- PJM: PJM
- Southwest Power Pool: SPP
- Southwest Variable Energy Resource Initiative: SVERI
- Texas: ERCOT
- Seminole Electric Cooperative (Florida): EIA, SEC
- Uruguay: UTE
Production capacities are centralized in the zones.json file. Values in the capacity
maps are in MW.
Click to see the full list of sources
- Argentina: Cammesa
- Armenia
- Biomass, Hydro, Solar, Wind: IRENA
- Nuclear, Gas: wikipedia.org
- Aruba: WEB Aruba
- Australia wikipedia.org
- Austria
- Wind: IGWindKraft
- Other: ENTSO-E
- Belarus: belstat.gov.by, RenEn
- Belgium
- Bolivia: CNDC
- Brazil: ONS
- Bulgaria: wikipedia.org
- Canada (British Columbia, Manitoba, New Brunswick, Newfoundland and Labrador, Nova Scotia, Prince Edward Island): wikipedia.org
- Canada (Ontario): IESO
- Canada (Québec): Hydro-Québec
- Canada (Saskatchewan): SaskPower
- Chile (SIC)
- Geothermal, Hydro, Solar, Wind: SIC
- Other: energiaabierta.cl
- Chile (SING)
- Solar/Wind: SGER
- Other: energiaabierta.cl
- Croatia: HOPS
- Czech Republic: ENTSO-E
- Denmark (DK1 and DK2): ENTSO-E
- Denmark (Bornholm)
- Wind: stateofgreen.com
- Dominican Republic: Climatescope
- El Salvador:
- Estonia:
- Faroe Islands: Johan Pauli Magnussen's Thesis, p44
- Finland: ENTSO-E
- France: RTE
- Germany: Frauenhofer ISE
- Georgia: GSE
- Great Britain: ENTSO-E
- Greece: ENTSO-E
- Guatemala: AMM
- Honduras: ENEE
- Hungary
- Iceland: Statistics Iceland
- Ireland
- Israel: Global Power Plant Database
- Italy
- India: mercomindia
- India (Andhra Pradesh): wikipedia.org
- India (Punjab): PUNJABSLDC
- India (Chhattisgarh, Delhi, Gujarat, Karnataka, Punjab, Uttar Pradesh): National Power Portal
- Kuwait
- Latvia: ENTSO-E
- Lithuania: ENTSO-E
- Malaysia: GSO
- Moldova: FAS
- Montenegro: EPCG
- Nagorno-Karabakh: Artsakh HEK
- Namibia
- Coal & Oil: NamPower
- Hydro, solar & wind: African Energy
- Nepal
-List of PowerStations:PowerStations
- GIS Map of Reservoir Projects: GIS_Reservoir
- Netherlands: ENTSO-E
- Nicaragua: Climatescope
- Norway
- Northern Ireland: EIR Grid
- Poland
- Solar: PSE Twitter
- Other: ENTSO-E
- Portugal
- Romania:
- Nuclear: Nuclearelectrica
- Other: ENTSO-E
- Russia: Minenergo
- Serbia: ENTSO-E
- Singapore
- Solar: Energy Market Authority Statistics
- Other: Energy Market Authority
- Slovakia: SEPS
- Slovenia: ENTSO-E
- South Korea: KHNP
- Spain:REE
- Spain (Canary Islands)
- Hydro storage: goronadelviento.es
- Wind, Solar: REE
- Spain (Balearic Islands)
- Coal: wikipedia.org
- Wind, Solar: REE
- Sweden
- Switzerland
- Taiwan: TAIPOWER
- Turkey: TEİAŞ
- Ukraine: UKRENERGO
- United States of America
- Federal: EIA
- States: EIA
- BPA: BPA
- CAISO
- CEC: CEC
- Renewables: CAISO
- Nuclear: wikipedia.org
- MISO: MISO
- NYISO: NYISO Gold Book
- PJM: PJM
- SPP: SPP
Cross-border transmission capacities between the zones are centralized in the exchanges.json file. Values in the capacity
maps are in MW.
Click to see the full list of sources
- Åland ⇄ Sweden: "Sverigekabeln": 80 MW
- Åland ⇄ Finland: "Brändö-Gustafs": 9 MW
- Australia (Victoria) ⇄ Australia (Tasmania): "Basslink": 500 MW (regular) or 630 MW (temporarily)
- Denmark (West) ⇄ Norway: "Skaggerak": 1700 MW
- Denmark (East) ⇄ Denmark (West): "Storebælt HVDC": 600 MW
- Denmark (East) ⇄ Germany: "Kontek": 600 MW
- Denmark (West) ⇄ Sweden: "Konti-Skan": 650 MW
- Denmark (West) ⇄ Netherlands: "COBRAcable": 700 MW
- Estonia ⇄ Finnland: "Estlink 1&2": 1000 MW
- Germany ⇄ Sweden: "Baltic Cable": 600 MW
- Great Britain ⇄ Belgium: "Nemo Link": 1000 MW
- Great Britain ⇄ North Ireland: "Moyle": 500 MW
- Great Britain ⇄ Ireland: "East-West Interconnector": 500 MW
- Great Britain ⇄ France: "Cross-Channel": 2000 MW
- Great Britain ⇄ Netherlands: "BritNed": 1000 MW
- Greece ⇄ Italy: "GRITA": 500 MW
- Italy Central South ⇄ Italy Sardinia: "SAPEI": 1000 MW
- Lithuania ⇄ Sweden: "NordBalt": 700 MW
- Lithuania ⇄ Poland: "LitPol Link": 500 MW
- Malta ⇄ Italy Sicily: "Malta–Sicily-Interconnector": 200 MW
- Montenegro ⇄ Italy Central South: "MONITA": 600MW
- Norway ⇄ Netherlands: "NorNed": 700 MW
- New Zealand (North Island) ⇄ New Zealand (South Island): "HVDC Inter-Island": 1200 MW
- Russia ⇉ Finland: "Vyborg HVDC scheme": 1400 MW + 2 AC-connections: 160 MW
- Spain ⇄ Spain (Balearic Islands): "Cometa": 400 MW
- Sweden ⇄ Poland: "SwePol": 600 MW
- Ukraine ⇄ Belarus, ⇄ Hungary, ⇉ Poland, ⇄ Moldova, ⇄ Slovakia, ⇄ Romania, ⇄ Russia: Ukrenergo
A ⇄ B: bidirectional operation, with power flow either "from A to B" or "from B to A"
A ⇉ B: unidirectional operation, only with power flow "from A to B"
We use the US National Weather Service's Global Forecast System (GFS)'s GFS 0.25 Degree Hourly data. Forecasts are made every 6 hours, with a 1 hour time step. The values extracted are wind speed and direction at 10m altitude, and ground solar irradiance (DSWRF - Downward Short-Wave Radiation Flux), which takes into account cloud coverage. In order to obtain an estimate of those values at current time, an interpolation is made between two forecasts (the one at the beginning of the hour, and the one at the end of the hour).
We use the Natural Earth Data Cultural Vectors country subdivisions (map admin subunits).
Want to help? Join us on slack at http://slack.tmrow.co.
We have a public logger which shows warnings and errors for all parsers.
To get started, clone or fork the repository, and install Docker.
The frontend will need compiling. In order to do this, open a terminal in the root directory and run
docker-compose build
One you are done, you can start the application by running
docker-compose up
This will watch over source file changes, running nonstop and watching changes you make in the code to recompile the frontend if needed.
Note this only builds for the English language (which will be faster as not all languages need to be built).
If you want to build all languages, change the command
of the web-watch-en
section of docker-compose.yml from command: npm run watch-en
to command: npm run watch
.
Head over to http://localhost:8000/ and you should see the map! Note that the backend is responsible for calculation carbon emissions, so the map will be empty.
If you have issues building the map locally check out the Troubleshooting section for common problems and fixes.
Once you're done doing your changes, submit a pull request to get them integrated into the production version.
If you want to update or add production capacities for a region then head over to the zones file and make any changes needed to the capacity
map. Values are in MW.
The zones use ISO 3166-1 codes as identifiers, a list of which can be found here.
As a first step, do a search for the region on our GitHub, as contributors may have explored things before. It is very simple to add a new country. The electricityMap backend runs a list of so-called parsers every 5min. Those parsers are responsible for fetching the generation mix of a given country (check out the existing list in the parsers directory, or look at the work in progress).
I have not found a new data source You can help us by opening a new issue for the relevant region and add the relevant individual or organization to contact (ideally with their contact details on email, Twitter and phone). Doing so will ensure that we and other visitors interested can contact them to make them aware of the electricityMap. Usually, energy agencies, governments, transmission system operators are good potential sources. If you can't code, this is an amazing way to help us!
I have found a data source and I could help build a parser
A parser is a python3 script that is expected to define the method fetch_production
which returns the production mix at current time, in the format:
def fetch_production(zone_key='FR', session=None, target_datetime=None, logger=None):
return {
'countryCode': 'FR',
'datetime': '2017-01-01T00:00:00Z',
'production': {
'biomass': 0.0,
'coal': 0.0,
'gas': 0.0,
'hydro': 0.0,
'nuclear': None,
'oil': 0.0,
'solar': 0.0,
'wind': 0.0,
'geothermal': 0.0,
'unknown': 0.0
},
'storage': {
'hydro': -10.0,
},
'source': 'mysource.com'
}
The session
object is a python request session that you can re-use to make HTTP requests.
target_datetime
is used to fetch historical data (when available). logger
is a logging.Logger
whose output is publicly available so that everyone can monitor correct functioning of the parsers.
The production values should never be negative. Use None
, or omit the key if a specific production mode is not known.
Storage values can be both positive (when storing energy) or negative (when the storage is emptied).
The parser can also return an array of objects if multiple time values can be fetched. The backend will automatically update past values properly.
Once you're done, add your parser to the zones.json and exchanges.json configuration files. Finally update the real-time sources.
Run all of the parser tests with the following command from the root directory:
python3 -m unittest discover parsers/test/
For more info, check out the example parser or browse existing parsers.
If your changes involve altering the way countries are displayed on the map a new world.json will need to be generated. Make sure you're in the root directory then run the following command:
docker-compose run --rm web ./topogen.sh
For a more detailed explanation of how the map is generated see here.
In order to test your parser, make sure first that you have installed the required modules as described (consider using a virtual environment) in parsers/requirements.txt: for that you can run
pip install -r parsers/requirements.txt
From the root folder, use the test_parser.py
command line utility:
python test_parser.py FR price # get latest price parser for France
python test_parser.py FR # defaults to production if no data type is given
# test a specific datetime (parser needs to be able to fetch past datetimes)
python test_parser.py DE --target_datetime 2018-01-01T08:00
We've added a testing server locally.
To add a new country to the map, run:
PYTHONPATH=. python3 mockserver/update_state.py <zone_name>
from the root directory, replacing <zone_name>
by the zone identifier of the parser you want
to test. This will fetch production and exchanges and assign it a random carbon intensity value.
It should appear on the map as you refresh your local browser.
-
ERROR: for X Cannot create container for service X: Invalid bind mount spec "<path>": Invalid volume specification: '<volume spec>'
. If you get this error after runningdocker-compose up
on Windows, you should telldocker-compose
to properly understand Windows paths by setting the environment variableCOMPOSE_CONVERT_WINDOWS_PATHS
to0
by runningsetx COMPOSE_CONVERT_WINDOWS_PATHS 0
. You will also need a recent version ofdocker-compose
. We have successfully seen this fix work with v1.13.0-rc4. More info here: docker/compose#4274. -
No website found at
http://localhost:8000
: This can happen if you're running Docker in a virtual machine. Find out docker's IP usingdocker-machine ip default
, and replacelocalhost
by your Docker IP when connecting.