Closed fershad closed 1 year ago
@mrchrisadams This PR is ready for review. It exposes the UNFCCC data in JSON format, just like we have done for Ember in #69. In order to do this, I have:
data/IFI_Default_Grid_Factors_2021_v3.1_unfccc.csv
countries.csv
file to allow the UNFCCC country names to also be mapped to country codes (diff)
functions
folder to keep the main data
folder clean.package.json
.I have also added JSDoc style comments to the utility functions, which should help us when we come back to this code later & help others who want to play with it too. I'll try to do this more often as I touch other parts of the CO2.js code base, so that we can gradually have more complete documentation throughout the library.
@mrchrisadams this should be all set now with the changes we discussed yesterday for #104
This PR adds country level marginal carbon intensity data from the UNFCCC to CO2.js. Initially (in this PR) we will be including the source data, and introducing scripts to generate JSON and JS exports of the source CSV file.
Todo: