pip install openclimatedata
Downloaded data is stored in the default cache folder of your operating system, e.g. ~/.cache/openclimatedata/
.
UNFCCC Emissions data from the Detailed Data By Party interface
I noticed that trying to merge two revisions with data downloads git fails and leaves a mess that I think has to be cleaned by hand which is impossible for 20.000+ files in the archive. So I had to use a fresh clone of the repository. So whenever downloading the data make sure that your working copy is up to date and commit right after that, else you'll end up with a mess.
Some changes I found compared to the version downloaded in summer 2017.
Small changes in individual sectors might be missing as countries where only investigated in detail where changes we visible in CATM0EL Kyoto GHG data.
https://unfccc.int/process/transparency-and-reporting/greenhouse-gas-data/ghg-data-unfccc states
In response to the mandate received from the SBSTA, the secretariat has made available the following six modules of the GHG data interface reflecting data reported by Annex I Parties and, to the extent possible, information provided in the national communications and biennial update reports of non-Annex I Parties as of 27 May 2018:
cc @AnnisG @AnnGuenther @mljeffery
Before doing a new release (#6) i'd like to rewrite the code to take the used years from the data and not prescribe them.
Thanks for providing this nice and very helpful data package!
I have discovered one problem concerning the CO2 emission from the German category 1.A.2.g: Its only sub-category with reported emissions (1.A.2.g.vii) does not match the emissions reported under 1.A.2.g. The discrepancy is quite substantial e.g. in 2019 1.A.2.g reports 74947.20 kt while 1.A.2.g.vii only 3450.54 kt.
The numbers from the database you provide match those from the UNFCCC data interface, thus I assume a reporting error. Or do I miss something?
Robbie Andrew pointed out that direct CSV downloads from the interface have fewer digits than the one provided in this dataset.
This is due to the raw original JSON data having these extra digits, e.g.
"data":[{"id":3,"name":"Australia","rows":[{"id":8787,"name":"2.A.1 Cement Production","unitId":5,"cells":[{"column":0,"numberValue":3462.87171200000010},
Should maybe rounded as in the downloadable CSVs.
cc @JGuetschow
The last year of the data (2016, in this case) is not shown in the final csv file.
The API returns 2016 and the year is present in the json files but not in the final csv file.
I guess at one point the API call returned "Last Inventory Year (2016)" and index[indexed_keys[-1]][-5:-1] transformed this to simply "2016". Now it seems the API returns "2016" and this operation transforms it to "201". In my local version I've commented out this line and everything works fine. Not sure if this behavior can be verified and changed in the source code here?
Also later in the file there is this line:
ordered = [
"Party",
"Parent Category",
"Category",
"Gas",
"Unit",
"Base year",
] + list(filtered.columns[5:-1])
removing -1 from the last line seems to fix this.
Has been updated ...
https://unfccc.int/process/transparency-and-reporting/greenhouse-gas-data/ghg-data-unfccc
Will do an update run.
/cc @JGuetschow
The secretariat has completed the upgrade of all nine modules of the GHG data interface on 8 November 2019.
How are global warming potentials for aggregate gas time series treated. Do the data from the UNFCCC interface use the same GWPs for all countries (and if so which)? If different GWPs are used how is this indicated in the interface and in this dataset?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.