Ver Fonte

[DATALAD] Recorded changes

Johannes Gütschow há 3 anos atrás
pai
commit
5cc5df5d03

+ 10 - 0
code/UNFCCC_reader/Republic_of_Korea/config_KOR_BUR4.py

@@ -143,6 +143,11 @@ original_names = [
     'b. 국제 해운',
     '2. 다국적 작전',
     '* 참고 : NO = 배출활동 및 공정이 없는 경우, NE = 산정하지 아니하는 경우, NA = 자연적, 이론적으로 발생하지 않는 활동 및 공정의 경우, IE = 다른 항목에 포함하여 보고하는 경우, C = 기밀정보인 경우',
+    '3. 타토지로 전용된 농경지', # start of new codes in 2021 inventory
+    '4. 농경지로의 전용에 따른 N2O 배출',
+    '5. 농경지에서 농업용 석회시용으로 인한 CO2 배출',
+    '6. 농경지에서 바이오매스 연소에 의한 배출',
+    'G. 기타',
 ]
 translations = [
     ['Total emissions', 'M.0.EL'],
@@ -289,6 +294,11 @@ translations = [
     ['b. International shipping', 'M.1.B'],
     ['2. Multinational operations', 'M.2'],
     ['', '\IGNORE'],
+    ['3. Farmland converted to Tato land', '5.B.3'],  # new codes in 2021 inventory start here
+    ['4. N2O emission due to conversion to agricultural land', '5.B.4'],
+    ['5. CO2 emission from agricultural lime application in agricultural land', '5.B.5'],
+    ['6. Emissions from burning biomass on agricultural land', '5.B.6'],
+    ['G. Others', '5.G'],
 ]
 cat_name_translations = dict(zip(original_names, [cat[0] for cat in translations]))
 cat_codes = dict(zip(original_names, [cat[1] for cat in translations]))

+ 7 - 7
code/UNFCCC_reader/Republic_of_Korea/read_KOR_BUR4_from_xlsx.py

@@ -91,12 +91,12 @@ filter_remove = {
 filter_keep = {}
 
 meta_data = {
-    "references": "http://www.gir.go.kr/home/file/readDownloadFile.do?fileId=4856&fileSeq=2",
-    "rights": "XXXX",
-    "contact": "johannes.guetschow@pik-potsdam.de",
-    "title": "National Greenhouse Gas Inventory Report of Korea - 2020",
+    "references": "https://unfccc.int/documents/418616, http://www.gir.go.kr/home/file/readDownloadFile.do?fileId=4856&fileSeq=2",
+    "rights": "",
+    "contact": "mail@johannes-guetschow.de.de",
+    "title": "Republic of Korea: BUR4 / National Greenhouse Gas Inventory Report 2020",
     "comment": "Read fom xlsx file by Johannes Gütschow",
-    "institution": "",
+    "institution": "United Nations Framework Convention on Climate Change (UNFCCC)",
 }
 
 cols_for_space_stripping = []
@@ -116,7 +116,7 @@ df_all = None
 
 for sheet in sheets_to_read:
     # read current sheet (one sheet per gas)
-    df_current = pd.read_excel(input_folder / inventory_file, sheet_name=sheet, skiprows=3, nrows=143, usecols=cols_to_read,
+    df_current = pd.read_excel(input_folder / inventory_file, sheet_name=sheet, skiprows=3, nrows=144, usecols=cols_to_read,
                                engine="openpyxl")
     # drop all rows where the index cols (category code and name) are both NaN
     # as without one of them there is no category information
@@ -171,4 +171,4 @@ pm2.pm2io.write_interchange_format(output_folder / (output_filename + coords_ter
 
 data_pm2 = pm2.pm2io.from_interchange_format(data_if)
 encoding = {var: compression for var in data_pm2.data_vars}
-data_pm2.pr.to_netcdf(output_folder / (output_filename + coords_terminologies["category"] + ".nc"), encoding=encoding)
+data_pm2.pr.to_netcdf(output_folder / (output_filename + coords_terminologies["category"] + ".nc"), encoding=encoding)