This repository downloads the Andrew dataset on global CO2 emissions from cement production from Zenodo.
This repository downloads datasets on global CO2 emissions from cement production from Zenodo. The downloaded dataset can then be converted into CSV (.csv file extension) or NetCDF (.nc file extension) format. The data management tool DataLad is used to version control the data sets. Commands to run the scripts are executed via the pydoit package.
pydoit can be installed with
pip install doit
Download the repository using the following command.
datalad clone
Do not use git clone to download the repository! This way DataLad will not have the necessary information to run the program.
Users who simply want to download the dataset have the option to access both the original and extracted files with the following command.
dataland get <filename>
For example, the extracted data set for the 2023/09/13 release can be downloaded with:
datalad get extracted_data/v230913/Robbie_Andrew_Cement_Production_CO2_230913.csv
doit setup_env
This will download all files from Zenodo as they are.
doit download_version --version <YYMMDD>
doit read_version --version <YYMMDD>
To add a new version go to versions.py in the src directory and create a new entry in the dictionary. Fill all the required information similar to the previous entries. For example, the code added for the 13-Sep-2023 release looks like this:
versions = {
"v230913": {
'date': '13-Sep-2023',
'ver_str_long': 'version 230913',
'ver_str_short': '230913',
"folder": "v230913",
"transpose": False,
"filename": "0. GCP-CEM.csv",
'ref': '10.5281/zenodo.8339353',
'ref2': '10.5194/essd-11-1675-2019',
'title': 'Global CO2 emissions from cement production',
'institution': "CICERO - Center for International Climate Research",
'filter_keep': {},
'filter_remove': {},
'contact': "johannes.guetschow@climate-resource.com",
'comment': ("Published by Robbie Andrew, converted to PRIMAP2 format by "
"Johannes Gütschow"),
'unit': 'kt * CO2 / year',
'country_code': True,
},
}
Then run the two commands as described in [3.2]() and [3.3]().
Show all doit commands
doit help
See a list with possible doit commands specific to this repository
doit list
Get help on a specific command
doit help <command>