Data - Average intensity

You can import annual, country-level average grid intensity data from Ember Climate into your projects directly from CO2.js. For example, if you wanted to use the average grid intensity for Australia in a project, then you can do so by using the code below:

import { averageIntensity } from '@tgwf/co2/data';
const { data, type, year } = averageIntensity;

const { AUS } = data;
console.log({ AUS })

All countries are represented by their respective Alpha-3 ISO country code.

Using CO2.js v0.16 and older

If you are using CO2.js v0.16 or older in your code, then you should import data using the code sample below:

// Import data from CO2.js
import { marginalIntensity } from "@tgwf/co2"

Licenses

The carbon intensity data from Ember is published under the Creative Commons ShareAlike Attribution Licence (CC BY-SA 4.0). (What does this mean?)