瀏覽代碼

Add unspecified mix of HFC and PFCs to gas baskets and gwp conversion

Johannes Gütschow 6 月之前
父節點
當前提交
04d50502ee
共有 1 個文件被更改,包括 82 次插入194 次删除
  1. 82 194
      src/unfccc_ghg_data/helper/definitions.py

+ 82 - 194
src/unfccc_ghg_data/helper/definitions.py

@@ -69,6 +69,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 1.1,
         "FGASES": 1.1,
         "other halogenated gases": 1.1,
+        "UnspMixOfHFCsPFCs": 1.1,
     },
     "SARGWP100_to_AR5GWP100": {
         "HFCS": 1.2,
@@ -77,6 +78,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 1.2,
         "FGASES": 1.2,
         "other halogenated gases": 1.2,
+        "UnspMixOfHFCsPFCs": 1.2,
     },
     "SARGWP100_to_AR6GWP100": {
         "HFCS": 1.4,
@@ -85,6 +87,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 1.3,
         "FGASES": 1.35,
         "other halogenated gases": 1.35,
+        "UnspMixOfHFCsPFCs": 1.35,
     },
     "AR4GWP100_to_SARGWP100": {
         "HFCS": 0.91,
@@ -93,6 +96,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 0.91,
         "FGASES": 0.91,
         "other halogenated gases": 0.91,
+        "UnspMixOfHFCsPFCs": 0.91,
     },
     "AR4GWP100_to_AR5GWP100": {
         "HFCS": 1.1,
@@ -101,6 +105,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 1.1,
         "FGASES": 1.1,
         "other halogenated gases": 1.1,
+        "UnspMixOfHFCsPFCs": 1.1,
     },
     "AR4GWP100_to_AR6GWP100": {
         "HFCS": 1.27,
@@ -109,6 +114,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 1.18,
         "FGASES": 1.23,
         "other halogenated gases": 1.23,
+        "UnspMixOfHFCsPFCs": 1.23,
     },
     "AR5GWP100_to_SARGWP100": {
         "HFCS": 0.83,
@@ -117,6 +123,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 0.83,
         "FGASES": 0.83,
         "other halogenated gases": 0.83,
+        "UnspMixOfHFCsPFCs": 0.83,
     },
     "AR5GWP100_to_AR4GWP100": {
         "HFCS": 0.91,
@@ -125,6 +132,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 0.91,
         "FGASES": 0.91,
         "other halogenated gases": 0.91,
+        "UnspMixOfHFCsPFCs": 0.91,
     },
     "AR5GWP100_to_AR6GWP100": {
         "HFCS": 1.17,
@@ -133,6 +141,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 1.08,
         "FGASES": 1.125,
         "other halogenated gases": 1.125,
+        "UnspMixOfHFCsPFCs": 1.125,
     },
     ### All TAR factors just averages between SAR and AR4
     "TARGWP100_to_SARGWP100": {
@@ -142,6 +151,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 0.953,
         "FGASES": 0.953,
         "other halogenated gases": 0.953,
+        "UnspMixOfHFCsPFCs": 0.953,
     },
     "SARGWP100_to_TARGWP100": {
         "HFCS": 1.0488,
@@ -150,6 +160,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 1.0488,
         "FGASES": 1.0488,
         "other halogenated gases": 1.0488,
+        "UnspMixOfHFCsPFCs": 1.0488,
     },
     "TARGWP100_to_AR4GWP100": {
         "HFCS": 1.0488,
@@ -158,6 +169,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 1.0488,
         "FGASES": 1.0488,
         "other halogenated gases": 1.0488,
+        "UnspMixOfHFCsPFCs": 1.0488,
     },
     "AR4GWP100_to_TARGWP100": {
         "HFCS": 0.953,
@@ -166,6 +178,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 0.953,
         "FGASES": 0.953,
         "other halogenated gases": 0.953,
+        "UnspMixOfHFCsPFCs": 0.953,
     },
     "TARGWP100_to_AR5GWP100": {
         "HFCS": 1.15,
@@ -174,6 +187,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 1.15,
         "FGASES": 1.15,
         "other halogenated gases": 1.15,
+        "UnspMixOfHFCsPFCs": 1.15,
     },
     "AR5GWP100_to_TARGWP100": {
         "HFCS": 0.87,
@@ -182,6 +196,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 0.87,
         "FGASES": 0.87,
         "other halogenated gases": 0.87,
+        "UnspMixOfHFCsPFCs": 0.87,
     },
     "TARGWP100_to_AR6GWP100": {
         "HFCS": 1.335,
@@ -190,6 +205,7 @@ GWP_factors = {
         "UnspMixOfPFCs": 1.24,
         "FGASES": 1.29,
         "other halogenated gases": 1.35,
+        "UnspMixOfHFCsPFCs": 1.35,
     },
     "AR6GWP100_to_TARGWP100": {
         "HFCS": 0.75,
@@ -198,202 +214,74 @@ GWP_factors = {
         "UnspMixOfPFCs": 0.806,
         "FGASES": 0.776,
         "other halogenated gases": 0.741,
+        "UnspMixOfHFCsPFCs": 0.741,
     },
 }
 
-gas_baskets = {
-    "HFCS (SARGWP100)": [
-        "HFC23",
-        "HFC32",
-        "HFC41",
-        "HFC125",
-        "HFC134",
-        "HFC134a",
-        "HFC143",
-        "HFC143a",
-        "HFC152",
-        "HFC152a",
-        "HFC161",
-        "HFC227ea",
-        "HFC236cb",
-        "HFC236ea",
-        "HFC236fa",
-        "HFC245ca",
-        "HFC245fa",
-        "HFC365mfc",
-        "HFC404a",
-        "HFC407c",
-        "HFC410a",
-        "HFC4310mee",  #'OTHERHFCS (SARGWP100)',
-        "UnspMixOfHFCs (SARGWP100)",
-    ],
-    "HFCS (AR4GWP100)": [
-        "HFC23",
-        "HFC32",
-        "HFC41",
-        "HFC125",
-        "HFC134",
-        "HFC134a",
-        "HFC143",
-        "HFC143a",
-        "HFC152",
-        "HFC152a",
-        "HFC161",
-        "HFC227ea",
-        "HFC236cb",
-        "HFC236ea",
-        "HFC236fa",
-        "HFC245ca",
-        "HFC245fa",
-        "HFC365mfc",
-        "HFC404a",
-        "HFC407c",
-        "HFC410a",
-        "HFC4310mee",
-        "UnspMixOfHFCs (AR4GWP100)",
-    ],
-    "HFCS (AR5GWP100)": [
-        "HFC23",
-        "HFC32",
-        "HFC41",
-        "HFC125",
-        "HFC134",
-        "HFC134a",
-        "HFC143",
-        "HFC143a",
-        "HFC152",
-        "HFC152a",
-        "HFC161",
-        "HFC227ea",
-        "HFC236cb",
-        "HFC236ea",
-        "HFC236fa",
-        "HFC245ca",
-        "HFC245fa",
-        "HFC365mfc",
-        "HFC404a",
-        "HFC407c",
-        "HFC410a",
-        "HFC4310mee",
-        "UnspMixOfHFCs (AR5GWP100)",
-    ],
-    "HFCS (AR6GWP100)": [
-        "HFC23",
-        "HFC32",
-        "HFC41",
-        "HFC125",
-        "HFC134",
-        "HFC134a",
-        "HFC143",
-        "HFC143a",
-        "HFC152",
-        "HFC152a",
-        "HFC161",
-        "HFC227ea",
-        "HFC236cb",
-        "HFC236ea",
-        "HFC236fa",
-        "HFC245ca",
-        "HFC245fa",
-        "HFC365mfc",
-        "HFC404a",
-        "HFC407c",
-        "HFC410a",
-        "HFC4310mee",
-        "UnspMixOfHFCs (AR6GWP100)",
-    ],
-    "PFCS (SARGWP100)": [
-        "CF4",
-        "C2F6",
-        "C3F8",
-        "C4F10",
-        "C5F12",
-        "C6F14",
-        "C10F18",
-        "cC3F6",
-        "cC4F8",
-        "cC4F8",
-        "UnspMixOfPFCs (SARGWP100)",
-    ],
-    "PFCS (AR4GWP100)": [
-        "CF4",
-        "C2F6",
-        "C3F8",
-        "C4F10",
-        "C5F12",
-        "C6F14",
-        "C10F18",
-        "cC3F6",
-        "cC4F8",
-        "cC4F8",
-        "UnspMixOfPFCs (AR4GWP100)",
-    ],
-    "PFCS (AR5GWP100)": [
-        "CF4",
-        "C2F6",
-        "C3F8",
-        "C4F10",
-        "C5F12",
-        "C6F14",
-        "C10F18",
-        "cC3F6",
-        "cC4F8",
-        "cC4F8",
-        "UnspMixOfPFCs (AR5GWP100)",
-    ],
-    "PFCS (AR6GWP100)": [
-        "CF4",
-        "C2F6",
-        "C3F8",
-        "C4F10",
-        "C5F12",
-        "C6F14",
-        "C10F18",
-        "cC3F6",
-        "cC4F8",
-        "cC4F8",
-        "UnspMixOfPFCs (AR6GWP100)",
-    ],
-    "FGASES (SARGWP100)": ["HFCS (SARGWP100)", "PFCS (SARGWP100)", "SF6", "NF3"],
-    "FGASES (AR4GWP100)": ["HFCS (AR4GWP100)", "PFCS (AR4GWP100)", "SF6", "NF3"],
-    "FGASES (AR5GWP100)": ["HFCS (AR5GWP100)", "PFCS (AR5GWP100)", "SF6", "NF3"],
-    "FGASES (AR6GWP100)": ["HFCS (AR6GWP100)", "PFCS (AR6GWP100)", "SF6", "NF3"],
-    "KYOTOGHG (SARGWP100)": [
-        "CO2",
-        "CH4",
-        "N2O",
-        "SF6",
-        "NF3",
-        "HFCS (SARGWP100)",
-        "PFCS (SARGWP100)",
-    ],
-    "KYOTOGHG (AR4GWP100)": [
-        "CO2",
-        "CH4",
-        "N2O",
-        "SF6",
-        "NF3",
-        "HFCS (AR4GWP100)",
-        "PFCS (AR4GWP100)",
-    ],
-    "KYOTOGHG (AR5GWP100)": [
-        "CO2",
-        "CH4",
-        "N2O",
-        "SF6",
-        "NF3",
-        "HFCS (AR5GWP100)",
-        "PFCS (AR5GWP100)",
-    ],
-    "KYOTOGHG (AR6GWP100)": [
-        "CO2",
-        "CH4",
-        "N2O",
-        "SF6",
-        "NF3",
-        "HFCS (AR6GWP100)",
-        "PFCS (AR6GWP100)",
-    ],
-}
+gwps_for_basket_aggregation = [
+    "SARGWP100",
+    "AR4GWP100",
+    "AR5GWP100",
+    "AR6GWP100",
+]  # 'TARGWP100'
+
+gas_baskets = {}
+for gwp in gwps_for_basket_aggregation:
+    gas_baskets.update(
+        {
+            f"HFCS ({gwp})": [
+                "HFC23",
+                "HFC32",
+                "HFC41",
+                "HFC125",
+                "HFC134",
+                "HFC134a",
+                "HFC143",
+                "HFC143a",
+                "HFC152",
+                "HFC152a",
+                "HFC161",
+                "HFC227ea",
+                "HFC236cb",
+                "HFC236ea",
+                "HFC236fa",
+                "HFC245ca",
+                "HFC245fa",
+                "HFC365mfc",
+                "HFC404a",
+                "HFC407c",
+                "HFC410a",
+                "HFC4310mee",
+                f"UnspMixOfHFCs ({gwp})",
+            ],
+            f"PFCS ({gwp})": [
+                "CF4",
+                "C2F6",
+                "C3F8",
+                "C4F10",
+                "C5F12",
+                "C6F14",
+                "C10F18",
+                "cC3F6",
+                "cC4F8",
+                "cC4F8",
+                f"UnspMixOfPFCs ({gwp})",
+            ],
+            f"FGASES ({gwp})": [
+                f"HFCS ({gwp})",
+                f"PFCS ({gwp})",
+                "SF6",
+                "NF3",
+                f"UnspMixOfHFCsPFCs ({gwp})",
+            ],
+            f"KYOTOGHG ({gwp})": [
+                "CO2",
+                "CH4",
+                "N2O",
+                f"FGASES ({gwp})",
+            ],
+        }
+    )
+
 
 compression = dict(zlib=True, complevel=9)