From 2a5afd688ed1879bc63e1b3c8f4dcfeca7d33618 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Tue, 12 Mar 2024 10:29:16 +0100 Subject: [PATCH] EODC --- dev/generate datapackages.ipynb | 2861 +++++++++---------------------- 1 file changed, 791 insertions(+), 2070 deletions(-) diff --git a/dev/generate datapackages.ipynb b/dev/generate datapackages.ipynb index 776d766..7fdab39 100644 --- a/dev/generate datapackages.ipynb +++ b/dev/generate datapackages.ipynb @@ -30,7 +30,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 1, "id": "e7dde1cf-983a-4da5-a7a8-f13054c3f57c", "metadata": {}, "outputs": [ @@ -38,7 +38,6 @@ "name": "stdout", "output_type": "stream", "text": [ - "Cache folder cleared!\n", "premise v.(2, 0, 1)\n", "+------------------------------------------------------------------+\n", "| Warning |\n", @@ -77,431 +76,19 @@ "Hide these messages?\n", "NewDatabase(..., quiet=True)\n", "- Extracting source database\n", - "Cannot find cached database. Will create one now for next time...\n", - "Getting activity data\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "100%|█████████████████████████████████| 21238/21238 [00:00<00:00, 355698.44it/s]\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Adding exchange data to activities\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "100%|████████████████████████████████| 674593/674593 [00:17<00:00, 39324.51it/s]\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Filling out exchange data\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "100%|██████████████████████████████████| 21238/21238 [00:00<00:00, 22477.76it/s]\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Set missing location of datasets to global scope.\n", - "Set missing location of production exchanges to scope of dataset.\n", - "Correct missing location of technosphere exchanges.\n", - "Correct missing flow categories for biosphere exchanges\n", - "Remove empty exchanges.\n", - "Remove uncertainty data.\n", "- Extracting inventories\n", - "Cannot find cached inventories. Will create them now for next time...\n", - "Importing default inventories...\n", - "\n", - "Extracted 1 worksheets in 0.10 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Remove uncertainty data.\n", - "Extracted 7 worksheets in 0.03 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.02 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.03 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.03 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.02 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.70 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "The following datasets to import already exist in the source database. They will not be imported\n", - "+--------------------------------+--------------------------------+----------+-------------+\n", - "| Name | Reference product | Location | File |\n", - "+--------------------------------+--------------------------------+----------+-------------+\n", - "| fluorspar production, 97% puri | fluorspar, 97% purity | GLO | lci-PV.xlsx |\n", - "| metallization paste production | metallization paste, back side | RER | lci-PV.xlsx |\n", - "| metallization paste production | metallization paste, back side | RER | lci-PV.xlsx |\n", - "| metallization paste production | metallization paste, front sid | RER | lci-PV.xlsx |\n", - "| photovoltaic module production | photovoltaic module, building- | RER | lci-PV.xlsx |\n", - "| photovoltaic module production | photovoltaic module, building- | RER | lci-PV.xlsx |\n", - "| photovoltaic mounting system p | photovoltaic mounting system, | RER | lci-PV.xlsx |\n", - "| photovoltaic mounting system p | photovoltaic mounting system, | RER | lci-PV.xlsx |\n", - "| photovoltaic mounting system p | photovoltaic mounting system, | RER | lci-PV.xlsx |\n", - "| photovoltaic panel factory con | photovoltaic panel factory | GLO | lci-PV.xlsx |\n", - "| polyvinylfluoride production | polyvinylfluoride | US | lci-PV.xlsx |\n", - "| polyvinylfluoride production, | polyvinylfluoride, dispersion | US | lci-PV.xlsx |\n", - "| polyvinylfluoride, film produc | polyvinylfluoride, film | US | lci-PV.xlsx |\n", - "| silicon production, metallurgi | silicon, metallurgical grade | NO | lci-PV.xlsx |\n", - "| vinyl fluoride production | vinyl fluoride | US | lci-PV.xlsx |\n", - "| wafer factory construction | wafer factory | DE | lci-PV.xlsx |\n", - "+--------------------------------+--------------------------------+----------+-------------+\n", - "Extracted 1 worksheets in 0.05 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.02 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.02 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "The following datasets to import already exist in the source database. They will not be imported\n", - "+--------------------------------+--------------------------------+----------+--------------------------------+\n", - "| Name | Reference product | Location | File |\n", - "+--------------------------------+--------------------------------+----------+--------------------------------+\n", - "| carbon dioxide, captured at ce | carbon dioxide, captured and r | RER | lci-synfuels-from-methanol-fro |\n", - "+--------------------------------+--------------------------------+----------+--------------------------------+\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "The following datasets to import already exist in the source database. They will not be imported\n", - "+--------------------------------+----------------------+----------+--------------------------------+\n", - "| Name | Reference product | Location | File |\n", - "+--------------------------------+----------------------+----------+--------------------------------+\n", - "| methanol distillation, hydroge | methanol, purified | RER | lci-synfuels-from-methanol-fro |\n", - "| methanol synthesis, hydrogen f | methanol, unpurified | RER | lci-synfuels-from-methanol-fro |\n", - "+--------------------------------+----------------------+----------+--------------------------------+\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.02 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.02 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "The following datasets to import already exist in the source database. They will not be imported\n", - "+--------------------------------+--------------------------------+----------+--------------------------------+\n", - "| Name | Reference product | Location | File |\n", - "+--------------------------------+--------------------------------+----------+--------------------------------+\n", - "| methanol production facility, | methanol production facility, | RER | lci-synfuels-from-methanol-fro |\n", - "+--------------------------------+--------------------------------+----------+--------------------------------+\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 5 worksheets in 0.14 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.02 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.03 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.07 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.02 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.04 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.02 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.02 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.04 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.01 seconds\n", - "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.02 seconds\n", - "Migrating to 3.8 first\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Applying strategy: migrate_datasets\n", - "Applying strategy: migrate_exchanges\n", - "Remove uncertainty data.\n", - "Data cached. It is advised to restart your workflow at this point.\n", - "This allows premise to use the cached data instead, which results in\n", - "a faster workflow.\n", "- Fetching IAM data\n", - "Reading /Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", - "Reading /Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", - "Reading /Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", - "Reading /Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", - "Reading /Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", - "Reading /Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", - "Reading /Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", - "Reading /Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", - "Reading /Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", - "Reading /Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", - "Reading /Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", + "Reading /Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", + "Reading /Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", + "Reading /Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", + "Reading /Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", + "Reading /Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", + "Reading /Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", + "Reading /Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", + "Reading /Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", + "Reading /Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", + "Reading /Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", + "Reading /Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data/image_SSP2-RCP19.xlsx as excel file\n", "Done!\n" ] } @@ -510,13 +97,12 @@ "from premise import *\n", "import bw2data\n", "from datapackage import Package\n", - "clear_cache()\n", "bw2data.projects.set_current(\"ei39\")\n", "ndb = PathwaysDataPackage(\n", " scenarios=[\n", " {\"model\": \"image\",\n", " \"pathway\": \"SSP2-RCP19\",\n", - " \"filepath\": \"/Users/romain/Dropbox/Notebooks/IAM-ecoinvent/new image/full data\"\n", + " \"filepath\": \"/Users/romain/Library/CloudStorage/Dropbox/Notebooks/IAM-ecoinvent/new image/full data\"\n", " },\n", " ],\n", " years=[2005, 2010, 2020, 2030, 2040, 2050, 2060, 2070, 2080, 2090, 2100],\n", @@ -528,7 +114,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 2, "id": "f7d15e94-9a93-4314-9a69-11f50243b166", "metadata": {}, "outputs": [ @@ -544,603 +130,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "Updating: metals: 55%|████████▏ | 6/11 [35:38<31:22, 376.45s/it]" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal spodumene not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal rare earth carbonate concentrate not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal sand not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium tetrachloride not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n", - "Metal titanium sponge not found in alternative names. Skipping transport.\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "Updating: external: 91%|█████████ | 10/11 [2:00:41<12:04, 724.15s/it]\n" + "Updating: external: 91%|██████████▉ | 10/11 [35:31<03:33, 213.11s/it]\n" ] }, { @@ -1158,7 +148,7 @@ "Remove uncertainty data.\n", "Extracted 1 worksheets in 0.02 seconds\n", "Remove uncertainty data.\n", - "Extracted 1 worksheets in 0.03 seconds\n", + "Extracted 1 worksheets in 0.02 seconds\n", "Remove uncertainty data.\n", "Extracted 1 worksheets in 0.02 seconds\n", "Remove uncertainty data.\n", @@ -1177,18 +167,22 @@ "Anomalies found: check the change report.\n", "Running all checks...\n", "Anomalies found: check the change report.\n", - "Matrices saved in /Users/romain/Github/pathways/dev/pathways/inventories/image/SSP2-RCP19/2030.\n", - "Matrices saved in /Users/romain/Github/pathways/dev/pathways/inventories/image/SSP2-RCP19/2040.\n", - "Matrices saved in /Users/romain/Github/pathways/dev/pathways/inventories/image/SSP2-RCP19/2070.\n", - "Matrices saved in /Users/romain/Github/pathways/dev/pathways/inventories/image/SSP2-RCP19/2050.\n", - "Matrices saved in /Users/romain/Github/pathways/dev/pathways/inventories/image/SSP2-RCP19/2005.\n", - "Matrices saved in /Users/romain/Github/pathways/dev/pathways/inventories/image/SSP2-RCP19/2080.\n", - "Matrices saved in /Users/romain/Github/pathways/dev/pathways/inventories/image/SSP2-RCP19/2060.\n", + "Running all checks...\n", + "Anomalies found: check the change report.\n", + "Matrices saved in /Users/romain/GitHub/pathways/dev/pathways/inventories/image/SSP2-RCP19/2030.\n", + "Matrices saved in /Users/romain/GitHub/pathways/dev/pathways/inventories/image/SSP2-RCP19/2040.\n", + "Matrices saved in /Users/romain/GitHub/pathways/dev/pathways/inventories/image/SSP2-RCP19/2050.\n", + "Matrices saved in /Users/romain/GitHub/pathways/dev/pathways/inventories/image/SSP2-RCP19/2005.\n", + "Matrices saved in /Users/romain/GitHub/pathways/dev/pathways/inventories/image/SSP2-RCP19/2080.\n", + "Matrices saved in /Users/romain/GitHub/pathways/dev/pathways/inventories/image/SSP2-RCP19/2070.\n", + "Matrices saved in /Users/romain/GitHub/pathways/dev/pathways/inventories/image/SSP2-RCP19/2060.\n", + "Matrices saved in /Users/romain/GitHub/pathways/dev/pathways/inventories/image/SSP2-RCP19/2010.\n", + "Matrices saved in /Users/romain/GitHub/pathways/dev/pathways/inventories/image/SSP2-RCP19/2090.\n", "Generate scenario report.\n", - "Report saved under /Users/romain/Github/pathways/dev/export/scenario_report.\n", + "Report saved under /Users/romain/GitHub/pathways/dev/export/scenario_report.\n", "Generate change report.\n", - "Report saved under /Users/romain/Github/pathways/dev.\n", - "Data package saved at /Users/romain/Github/pathways/dev/pathways/image-SSP2-RCP19.zip\n" + "Report saved under /Users/romain/GitHub/pathways/dev.\n", + "Data package saved at /Users/romain/GitHub/pathways/dev/pathways/image-SSP2-RCP19.zip\n" ] } ], @@ -1204,7 +198,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 1, "id": "9d57850c-04fa-4ef7-89e8-3e9de62f92e3", "metadata": {}, "outputs": [ @@ -1212,105 +206,9 @@ "name": "stdout", "output_type": "stream", "text": [ + "Solver: scikits.umfpack\n", "Invalid datapackage: Descriptor validation error: {'path': 'mapping/mapping.yaml', 'profile': 'data-resource', 'name': 'mapping', 'format': 'yaml', 'mediatype': 'text/yaml', 'encoding': 'utf-8'} is not valid under any of the given schemas at \"resources/45\" in descriptor and at \"properties/resources/items/oneOf\" in profile\n", - "Invalid datapackage: Descriptor validation error: 'data-resource' is not one of ['tabular-data-resource'] at \"resources/45/profile\" in descriptor and at \"properties/resources/items/properties/profile/enum\" in profile\n", - "Variable Final Energy|Industry excl Non-Energy Use|Food and Tobacco|Electricity not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Food and Tobacco|Gases|Natural Gas not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Food and Tobacco|Heat not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Food and Tobacco|Hydrogen not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Food and Tobacco|Liquids|Petroleum not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Food and Tobacco|Solids|Biomass not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Food and Tobacco|Solids|Coal not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Pulp and Paper|Electricity not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Pulp and Paper|Gases|Natural Gas not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Pulp and Paper|Heat not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Pulp and Paper|Hydrogen not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Pulp and Paper|Liquids|Petroleum not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Pulp and Paper|Solids|Biomass not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Pulp and Paper|Solids|Coal not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Steel|Electricity not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Steel|Gases|Natural Gas not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Steel|Heat not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Steel|Hydrogen not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Steel|Liquids|Petroleum not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Steel|Solids|Biomass not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Steel|Solids|Coal not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Non-Metallic Minerals|Electricity not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Non-Metallic Minerals|Gases|Natural Gas not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Non-Metallic Minerals|Heat not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Non-Metallic Minerals|Hydrogen not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Non-Metallic Minerals|Liquids|Petroleum not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Non-Metallic Minerals|Solids|Biomass not found in scenario data.\n", - "Variable Final Energy|Industry excl Non-Energy Use|Non-Metallic Minerals|Solids|Coal not found in scenario data.\n", - "Variable Final Energy|Industry|Food Processing|Electricity not found in scenario data.\n", - "Variable Final Energy|Industry|Food Processing|Gases not found in scenario data.\n", - "Variable Final Energy|Industry|Food Processing|Heat not found in scenario data.\n", - "Variable Final Energy|Industry|Food Processing|Hydrogen not found in scenario data.\n", - "Variable Final Energy|Industry|Food Processing|Liquids|Fossil not found in scenario data.\n", - "Variable Final Energy|Industry|Food Processing|Solids|Bioenergy not found in scenario data.\n", - "Variable Final Energy|Industry|Food Processing|Solids|Fossil not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|Ammonia|Electricity not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|Ammonia|Gases|Fossil not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|Ammonia|Liquids|Bioenergy not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|Ammonia|Liquids|Fossil not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|Ammonia|Other not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|Ammonia|Solids|Bioenergy not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|Ammonia|Solids|Fossil not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|High value chemicals|Electricity not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|High value chemicals|Gases|Fossil not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|High value chemicals|Liquids|Bioenergy not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|High value chemicals|Liquids|Fossil not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|High value chemicals|Solids|Bioenergy not found in scenario data.\n", - "Variable Final Energy|Industry|Chemicals|High value chemicals|Solids|Fossil not found in scenario data.\n", - "Variable Final Energy|Commercial|Water Heating|Coal not found in scenario data.\n", - "Variable Final Energy|Commercial|Water Heating|Electricity not found in scenario data.\n", - "Variable Final Energy|Commercial|Water Heating|Gas (fossil) not found in scenario data.\n", - "Variable Final Energy|Commercial|Water Heating|Liquid (fossil) not found in scenario data.\n", - "Variable Final Energy|Commercial|Water Heating|Traditional Biomass not found in scenario data.\n", - "Variable Final Energy|Residential|Water Heating|Coal not found in scenario data.\n", - "Variable Final Energy|Residential|Water Heating|Electricity not found in scenario data.\n", - "Variable Final Energy|Residential|Water Heating|Gas (fossil) not found in scenario data.\n", - "Variable Final Energy|Residential|Water Heating|Liquid (fossil) not found in scenario data.\n", - "Variable Final Energy|Residential|Water Heating|Traditional Biomass not found in scenario data.\n", - "Variable Final Energy|Commercial|Space Heating|Coal not found in scenario data.\n", - "Variable Final Energy|Commercial|Space Heating|Electricity not found in scenario data.\n", - "Variable Final Energy|Commercial|Space Heating|Gas (fossil) not found in scenario data.\n", - "Variable Final Energy|Commercial|Space Heating|Liquid (fossil) not found in scenario data.\n", - "Variable Final Energy|Commercial|Space Heating|Traditional Biomass not found in scenario data.\n", - "Variable Final Energy|Transportation|Passenger|Electricity not found in scenario data.\n", - "Variable Final Energy|Transportation|Passenger|Gases not found in scenario data.\n", - "Variable Final Energy|Transportation|Passenger|Hydrogen not found in scenario data.\n", - "Variable Final Energy|Transportation|Passenger|Liquids not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Air|Biofuel not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Air|Electricity not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Air|Gas not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Air|H2 not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Air|Oil not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Heavy Truck|Biofuel not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Heavy Truck|Electricity not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Heavy Truck|Gas not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Heavy Truck|H2 not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Heavy Truck|Oil not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|International Shipping|Biofuel not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|International Shipping|Electricity not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|International Shipping|Gas not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|International Shipping|H2 not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|International Shipping|Oil not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Medium Truck|Biofuel not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Medium Truck|Electricity not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Medium Truck|Gas not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Medium Truck|H2 not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Medium Truck|Oil not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|National Shipping|Biofuel not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|National Shipping|Electricity not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|National Shipping|Gas not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|National Shipping|H2 not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|National Shipping|Oil not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Train|Biofuel not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Train|Electricity not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Train|Gas not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Train|H2 not found in scenario data.\n", - "Variable Final Energy|Transportation|Freight|Train|Oil not found in scenario data.\n" + "Invalid datapackage: Descriptor validation error: 'data-resource' is not one of ['tabular-data-resource'] at \"resources/45/profile\" in descriptor and at \"properties/resources/items/properties/profile/enum\" in profile\n" ] } ], @@ -1321,52 +219,7 @@ }, { "cell_type": "code", - "execution_count": 7, - "id": "1441e2f1-08a6-4782-9f40-1c5dafed4576", - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "array(['dac_solvent', 'biomass crops - purpose grown',\n", - " 'biomass - residual', 'steel - secondary', 'steel - primary',\n", - " 'biodiesel, from used cooking oil, with CCS',\n", - " 'biodiesel, from used cooking oil',\n", - " 'bioethanol, from grass, with CCS', 'bioethanol, from grass',\n", - " 'bioethanol, from grain, with CCS', 'bioethanol, from grain',\n", - " 'bioethanol, from sugar, with CCS', 'bioethanol, from sugar',\n", - " 'bioethanol, from wood, with CCS', 'bioethanol, from wood',\n", - " 'diesel, synthetic, from grass, with CCS',\n", - " 'diesel, synthetic, from grass',\n", - " 'diesel, synthetic, from wood, with CCS',\n", - " 'diesel, synthetic, from wood', 'methanol, from grass, with CCS',\n", - " 'methanol, from grass', 'methanol, from wood, with CCS',\n", - " 'methanol, from wood', 'diesel', 'gasoline', 'Biomass IGCC CCS',\n", - " 'Biomass CHP CCS', 'Biomass ST', 'Biomass IGCC', 'Biomass CHP',\n", - " 'Coal IGCC CCS', 'Coal PC', 'Coal IGCC', 'Coal CHP', 'Gas CC CCS',\n", - " 'Gas CHP CCS', 'Gas OC', 'Gas CC', 'Gas CHP', 'Hydro', 'Nuclear',\n", - " 'Oil CC CCS', 'Oil CHP CCS', 'Oil ST', 'Oil CC', 'Oil CHP',\n", - " 'Geothermal', 'Solar CSP', 'Solar PV Centralized',\n", - " 'Solar PV Residential', 'Storage, Flow Battery', 'Wind Onshore',\n", - " 'Wind Offshore', 'hydrogen, from biomass, with CCS',\n", - " 'hydrogen, from biomass', 'hydrogen, from coal, with CCS',\n", - " 'hydrogen, from coal', 'hydrogen, from electrolysis',\n", - " 'hydrogen, from natural gas, with CCS',\n", - " 'hydrogen, from natural gas', 'hydrogen, from solar'], dtype=' 2\u001b[0m \u001b[43mp\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcalculate\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 3\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;66;43;03m#methods=[\u001b[39;49;00m\n\u001b[1;32m 4\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;66;43;03m# #'EF v3.1 - acidification - accumulated exceedance (AE)',\u001b[39;49;00m\n\u001b[1;32m 5\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;66;43;03m# 'EF v3.1 - climate change - global warming potential (GWP100)',\u001b[39;49;00m\n\u001b[1;32m 6\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;66;43;03m# 'RELICS - metals extraction - Lithium',\u001b[39;49;00m\n\u001b[1;32m 7\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;66;43;03m#],\u001b[39;49;00m\n\u001b[1;32m 8\u001b[0m \u001b[43m \u001b[49m\u001b[43mregions\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43m[\u001b[49m\u001b[43mr\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43;01mfor\u001b[39;49;00m\u001b[43m \u001b[49m\u001b[43mr\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;129;43;01min\u001b[39;49;00m\u001b[43m \u001b[49m\u001b[43mp\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mscenarios\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcoords\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mregion\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m]\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mvalues\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43;01mif\u001b[39;49;00m\u001b[43m \u001b[49m\u001b[43mr\u001b[49m\u001b[38;5;241;43m!=\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mWorld\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 9\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;66;43;03m#regions=[\"WEU\",],\u001b[39;49;00m\n\u001b[1;32m 10\u001b[0m \u001b[43m \u001b[49m\u001b[43mscenarios\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mSSP2-RCP19\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 11\u001b[0m \u001b[43m \u001b[49m\u001b[43mvariables\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mp\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mscenarios\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mcoords\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mvariables\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m]\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mvalues\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 12\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;66;43;03m#years=[2005, 2020, 2050, 2070, 2100],\u001b[39;49;00m\n\u001b[1;32m 13\u001b[0m \u001b[43m \u001b[49m\u001b[43mcharacterization\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 14\u001b[0m \u001b[43m \u001b[49m\u001b[43mflows\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mLithium - natural resource - in ground - kilogram\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 15\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;66;43;03m#data_type=np.float32,\u001b[39;49;00m\n\u001b[1;32m 16\u001b[0m \u001b[43m \u001b[49m\u001b[43mmultiprocessing\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mTrue\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 17\u001b[0m \u001b[43m \u001b[49m\u001b[43mdemand_cutoff\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;241;43m0.01\u001b[39;49m\u001b[43m,\u001b[49m\n\u001b[1;32m 18\u001b[0m \u001b[43m)\u001b[49m\n", - "File \u001b[0;32m~/Github/pathways/pathways/pathways.py:720\u001b[0m, in \u001b[0;36mPathways.calculate\u001b[0;34m(self, methods, models, scenarios, regions, years, variables, characterization, flows, multiprocessing, data_type, demand_cutoff)\u001b[0m\n\u001b[1;32m 718\u001b[0m \u001b[38;5;66;03m# Process each region in parallel\u001b[39;00m\n\u001b[1;32m 719\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m Pool(cpu_count()) \u001b[38;5;28;01mas\u001b[39;00m p:\n\u001b[0;32m--> 720\u001b[0m results \u001b[38;5;241m=\u001b[39m \u001b[43mp\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mmap\u001b[49m\u001b[43m(\u001b[49m\u001b[43mprocess_region\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mdata_for_regions\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 722\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[1;32m 723\u001b[0m results \u001b[38;5;241m=\u001b[39m []\n", - "File \u001b[0;32m~/anaconda3/envs/premise/lib/python3.10/multiprocessing/pool.py:367\u001b[0m, in \u001b[0;36mPool.map\u001b[0;34m(self, func, iterable, chunksize)\u001b[0m\n\u001b[1;32m 362\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mmap\u001b[39m(\u001b[38;5;28mself\u001b[39m, func, iterable, chunksize\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m):\n\u001b[1;32m 363\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124;03m'''\u001b[39;00m\n\u001b[1;32m 364\u001b[0m \u001b[38;5;124;03m Apply `func` to each element in `iterable`, collecting the results\u001b[39;00m\n\u001b[1;32m 365\u001b[0m \u001b[38;5;124;03m in a list that is returned.\u001b[39;00m\n\u001b[1;32m 366\u001b[0m \u001b[38;5;124;03m '''\u001b[39;00m\n\u001b[0;32m--> 367\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43m_map_async\u001b[49m\u001b[43m(\u001b[49m\u001b[43mfunc\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43miterable\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mmapstar\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mchunksize\u001b[49m\u001b[43m)\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n", - "File \u001b[0;32m~/anaconda3/envs/premise/lib/python3.10/multiprocessing/pool.py:774\u001b[0m, in \u001b[0;36mApplyResult.get\u001b[0;34m(self, timeout)\u001b[0m\n\u001b[1;32m 772\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_value\n\u001b[1;32m 773\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[0;32m--> 774\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_value\n", - "\u001b[0;31mKeyError\u001b[0m: 'Mt CO2/yr'" + "name": "stderr", + "output_type": "stream", + "text": [ + "0% [##########################] 100% | ETA: 00:00:00\n", + "Total time elapsed: 00:08:32\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "------ Calculating LCA results for 2080...\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "0% [##########################] 100% | ETA: 00:00:00\n", + "Total time elapsed: 00:08:39\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "------ Calculating LCA results for 2090...\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "0% [##########################] 100% | ETA: 00:00:00\n", + "Total time elapsed: 00:09:35\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "------ Calculating LCA results for 2100...\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "0% [##########################] 100% | ETA: 00:00:00\n", + "Total time elapsed: 00:10:13\n" ] } ], "source": [ "import numpy as np\n", "p.calculate(\n", - " #methods=[\n", - " # #'EF v3.1 - acidification - accumulated exceedance (AE)',\n", - " # 'EF v3.1 - climate change - global warming potential (GWP100)',\n", - " # 'RELICS - metals extraction - Lithium',\n", - " #],\n", + " methods=[\n", + " 'EF v3.1 - climate change - global warming potential (GWP100)',\n", + " 'RELICS - metals extraction - Lithium',\n", + " ],\n", " regions=[r for r in p.scenarios.coords[\"region\"].values if r!=\"World\"],\n", " #regions=[\"WEU\",],\n", " scenarios=[\"SSP2-RCP19\",],\n", - " variables=p.scenarios.coords[\"variables\"].values,\n", + " variables=[\n", + " v for v in p.scenarios.coords[\"variables\"].values\n", + " if any(i in v for i in [\"Industry\", \"Transport\", \"Heating\"])\n", + " ],\n", " #years=[2005, 2020, 2050, 2070, 2100],\n", - " characterization=False,\n", - " flows=[\"Lithium - natural resource - in ground - kilogram\",],\n", + " characterization=True,\n", + " #flows=[\"Lithium - natural resource - in ground - kilogram\",],\n", " #data_type=np.float32,\n", - " multiprocessing=True,\n", - " demand_cutoff=0.01,\n", + " multiprocessing=False,\n", + " demand_cutoff=0.1,\n", ")" ] }, @@ -2118,7 +454,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 1, "id": "9958409e-1e04-4548-a08b-49b111a7c114", "metadata": {}, "outputs": [], @@ -2128,7 +464,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 2, "id": "0d02f286-cb21-4b46-94f4-022e3ae4c9ae", "metadata": {}, "outputs": [], @@ -2138,8 +474,29 @@ }, { "cell_type": "code", - "execution_count": 5, - "id": "5a6e946a-0b6a-4059-ae06-6d25dcc94c9a", + "execution_count": 142, + "id": "042f9ee7-ce2e-4ed3-8e4f-d519a0f952db", + "metadata": {}, + "outputs": [], + "source": [ + "import numpy as np\n", + "arr.loc[dict(year=[2015, 2025, 2035, 2045])] = np.nan" + ] + }, + { + "cell_type": "code", + "execution_count": 145, + "id": "f594565c-a15a-43b3-961e-3965038e482a", + "metadata": {}, + "outputs": [], + "source": [ + "arr = arr.interpolate_na(dim=\"year\")" + ] + }, + { + "cell_type": "code", + "execution_count": 147, + "id": "e6f53dde-ee00-4a35-bc51-a1b6a7ebe08f", "metadata": {}, "outputs": [], "source": [ @@ -2152,7 +509,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 148, "id": "21434870-34fa-434c-91ec-40cbc8aea39c", "metadata": {}, "outputs": [], @@ -2162,45 +519,17 @@ }, { "cell_type": "code", - "execution_count": 7, - "id": "f5d600f7-8eb0-42dd-8522-aa296a32fe08", - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "Coordinates:\n", - " * location (location) object 3kB 'ET' 'CN-HL' ... 'RoW' 'IN-CH'\n", - " * variable (variable) object 776B 'Industry_Food and Tobacco_Electr...\n", - " * impact_category (impact_category) object 8B 'RELICS - metals extraction ...\n", - " * scenario (scenario) object 8B 'SSP2-RCP19'\n", - " * model (model) object 8B 'image'\n", - " * region (region) object 8B 'WEU'\n", - " * year (year) int64 768B 2005 2006 2007 2008 ... 2098 2099 2100" - ] - }, - "execution_count": 7, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "arr.coords" - ] - }, - { - "cell_type": "code", - "execution_count": 8, + "execution_count": 149, "id": "9e187610-3d3d-4998-a5de-9a88049ae031", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "3343008" + "13372032" ] }, - "execution_count": 8, + "execution_count": 149, "metadata": {}, "output_type": "execute_result" } @@ -2211,7 +540,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 150, "id": "7a8e3d53-89f2-4cd3-b957-516c0206b653", "metadata": {}, "outputs": [], @@ -2222,17 +551,17 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 151, "id": "10253a05-a90d-4cc6-851b-d28ce89188cb", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "25817" + "1215571" ] }, - "execution_count": 10, + "execution_count": 151, "metadata": {}, "output_type": "execute_result" } @@ -2243,7 +572,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 152, "id": "aff3301d-4731-4802-97c0-ed88226cd58b", "metadata": {}, "outputs": [], @@ -2253,7 +582,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 153, "id": "998d8893-98af-4299-b1eb-10ef3a8c7c7c", "metadata": {}, "outputs": [ @@ -2293,78 +622,85 @@ " 0\n", " Industry_Food and Tobacco_Electricity\n", " 2005\n", - " WEU\n", - " CL\n", + " BRA\n", + " Europe, without Russia and Turkey\n", " image\n", " SSP2-RCP19\n", - " RELICS - metals extraction - Lithium\n", - " 0.215986\n", + " EF v3.1 - climate change - global warming pote...\n", + " 1.043825e+06\n", " \n", " \n", " 1\n", " Industry_Food and Tobacco_Electricity\n", " 2005\n", - " WEU\n", - " US\n", + " BRA\n", + " TZ\n", " image\n", " SSP2-RCP19\n", - " RELICS - metals extraction - Lithium\n", - " 0.000011\n", + " EF v3.1 - climate change - global warming pote...\n", + " 1.149504e+06\n", " \n", " \n", " 2\n", " Industry_Food and Tobacco_Electricity\n", " 2005\n", - " WEU\n", - " AR\n", + " BRA\n", + " IN-DL\n", " image\n", " SSP2-RCP19\n", - " RELICS - metals extraction - Lithium\n", - " 0.035179\n", + " EF v3.1 - climate change - global warming pote...\n", + " 1.264347e+04\n", " \n", " \n", " 3\n", " Industry_Food and Tobacco_Electricity\n", " 2005\n", - " WEU\n", - " RER\n", + " BRA\n", + " BR-TO\n", " image\n", " SSP2-RCP19\n", - " RELICS - metals extraction - Lithium\n", - " 0.000086\n", + " EF v3.1 - climate change - global warming pote...\n", + " 1.652670e+02\n", " \n", " \n", " 4\n", " Industry_Food and Tobacco_Electricity\n", " 2005\n", - " WEU\n", - " RNA\n", + " BRA\n", + " MR\n", " image\n", " SSP2-RCP19\n", - " RELICS - metals extraction - Lithium\n", - " 0.000066\n", + " EF v3.1 - climate change - global warming pote...\n", + " 1.881197e+03\n", " \n", " \n", "\n", "" ], "text/plain": [ - " variable year region location model \\\n", - "0 Industry_Food and Tobacco_Electricity 2005 WEU CL image \n", - "1 Industry_Food and Tobacco_Electricity 2005 WEU US image \n", - "2 Industry_Food and Tobacco_Electricity 2005 WEU AR image \n", - "3 Industry_Food and Tobacco_Electricity 2005 WEU RER image \n", - "4 Industry_Food and Tobacco_Electricity 2005 WEU RNA image \n", - "\n", - " scenario impact_category value \n", - "0 SSP2-RCP19 RELICS - metals extraction - Lithium 0.215986 \n", - "1 SSP2-RCP19 RELICS - metals extraction - Lithium 0.000011 \n", - "2 SSP2-RCP19 RELICS - metals extraction - Lithium 0.035179 \n", - "3 SSP2-RCP19 RELICS - metals extraction - Lithium 0.000086 \n", - "4 SSP2-RCP19 RELICS - metals extraction - Lithium 0.000066 " + " variable year region \\\n", + "0 Industry_Food and Tobacco_Electricity 2005 BRA \n", + "1 Industry_Food and Tobacco_Electricity 2005 BRA \n", + "2 Industry_Food and Tobacco_Electricity 2005 BRA \n", + "3 Industry_Food and Tobacco_Electricity 2005 BRA \n", + "4 Industry_Food and Tobacco_Electricity 2005 BRA \n", + "\n", + " location model scenario \\\n", + "0 Europe, without Russia and Turkey image SSP2-RCP19 \n", + "1 TZ image SSP2-RCP19 \n", + "2 IN-DL image SSP2-RCP19 \n", + "3 BR-TO image SSP2-RCP19 \n", + "4 MR image SSP2-RCP19 \n", + "\n", + " impact_category value \n", + "0 EF v3.1 - climate change - global warming pote... 1.043825e+06 \n", + "1 EF v3.1 - climate change - global warming pote... 1.149504e+06 \n", + "2 EF v3.1 - climate change - global warming pote... 1.264347e+04 \n", + "3 EF v3.1 - climate change - global warming pote... 1.652670e+02 \n", + "4 EF v3.1 - climate change - global warming pote... 1.881197e+03 " ] }, - "execution_count": 12, + "execution_count": 153, "metadata": {}, "output_type": "execute_result" } @@ -2375,7 +711,36 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 154, + "id": "5f2c4b3b-b26c-47ee-8c36-582feb027f58", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015,\n", + " 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026,\n", + " 2027, 2028, 2029, 2030, 2031, 2032, 2033, 2034, 2035, 2036, 2037,\n", + " 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048,\n", + " 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, 2059,\n", + " 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2067, 2068, 2069, 2070,\n", + " 2071, 2072, 2073, 2074, 2075, 2076, 2077, 2078, 2079, 2080, 2081,\n", + " 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092,\n", + " 2093, 2094, 2095, 2096, 2097, 2098, 2099, 2100])" + ] + }, + "execution_count": 154, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df[\"year\"].unique()" + ] + }, + { + "cell_type": "code", + "execution_count": 155, "id": "1de1d921-4156-46b8-9113-f94214320f50", "metadata": {}, "outputs": [], @@ -2386,7 +751,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 156, "id": "57b097ed-0108-4d62-8aaf-0a3d7c76fc48", "metadata": {}, "outputs": [], @@ -2399,7 +764,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 157, "id": "c0b92aed-c162-4f5a-b200-512452d5157e", "metadata": {}, "outputs": [], @@ -2409,7 +774,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 158, "id": "829eef08-5bc8-4ee3-8d51-fd55e2beb2b0", "metadata": {}, "outputs": [], @@ -2419,7 +784,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 159, "id": "11c1861f-1a2b-49f6-a1be-94680d5a6b30", "metadata": {}, "outputs": [], @@ -2431,17 +796,17 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 160, "id": "9acd0483-a477-4250-a28a-aa0d2f510509", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "14353" + "125945" ] }, - "execution_count": 18, + "execution_count": 160, "metadata": {}, "output_type": "execute_result" } @@ -2452,7 +817,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 161, "id": "5b5dde7a-3eb9-4f1d-997e-3c6310e76580", "metadata": {}, "outputs": [], @@ -2463,17 +828,17 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 162, "id": "3361c4c8-c006-4f09-85f4-9d50c10f327f", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "14353" + "125945" ] }, - "execution_count": 20, + "execution_count": 162, "metadata": {}, "output_type": "execute_result" } @@ -2484,7 +849,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 163, "id": "87646c30-91c9-4dcf-b4a0-a52471634580", "metadata": {}, "outputs": [ @@ -2503,10 +868,10 @@ " " ], "text/plain": [ - "" + "" ] }, - "execution_count": 21, + "execution_count": 163, "metadata": {}, "output_type": "execute_result" } @@ -2519,129 +884,485 @@ }, { "cell_type": "code", - "execution_count": 154, + "execution_count": 135, "id": "1a20734d-fa1f-4daa-99c7-ac57ad5deb4f", "metadata": {}, + "outputs": [], + "source": [ + "q = p.lca_results.sum(dim=\"act_category\")" + ] + }, + { + "cell_type": "code", + "execution_count": 138, + "id": "2da8f7d0-22b7-422d-8cc7-ae2fd20037b3", + "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "['Heating_Commercial (space heating)_Solid coal',\n", - " 'Heating_Commercial (space heating)_Electricity',\n", - " 'Heating_Commercial (space heating)_Natural gas',\n", - " 'Heating_Commercial (space heating)_Liquid fossil',\n", - " 'Heating_Commercial (space heating)_Solid biomass',\n", - " 'Heating_Residential (space heating)_Solid coal',\n", - " 'Heating_Residential (space heating)_Electricity',\n", - " 'Heating_Residential (space heating)_Natural gas',\n", - " 'Heating_Residential (space heating)_Liquid fossil',\n", - " 'Heating_Residential (space heating)_Solid biomass',\n", - " 'Industry_Food and Tobacco_Electricity',\n", - " 'Industry_Food and Tobacco_Natural gas',\n", - " 'Industry_Food and Tobacco_Heat',\n", - " 'Industry_Food and Tobacco_Hydrogen',\n", - " 'Industry_Food and Tobacco_Liquid fossil',\n", - " 'Industry_Food and Tobacco_Solid biomass',\n", - " 'Industry_Food and Tobacco_Solid coal',\n", - " 'Industry_Non-metallic minerals_Electricity',\n", - " 'Industry_Non-metallic minerals_Natural gas',\n", - " 'Industry_Non-metallic minerals_Heat',\n", - " 'Industry_Non-metallic minerals_Hydrogen',\n", - " 'Industry_Non-metallic minerals_Liquid fossil',\n", - " 'Industry_Non-metallic minerals_Solid biomass',\n", - " 'Industry_Non-metallic minerals_Solid coal',\n", - " 'Industry_Pulp and Paper_Electricity',\n", - " 'Industry_Pulp and Paper_Natural gas',\n", - " 'Industry_Pulp and Paper_Heat',\n", - " 'Industry_Pulp and Paper_Hydrogen',\n", - " 'Industry_Pulp and Paper_Liquid fossil',\n", - " 'Industry_Pulp and Paper_Solid biomass',\n", - " 'Industry_Pulp and Paper_Solid coal',\n", - " 'Industry_Steel_Electricity',\n", - " 'Industry_Steel_Natural gas',\n", - " 'Industry_Steel_Heat',\n", - " 'Industry_Steel_Hydrogen',\n", - " 'Industry_Steel_Liquid coal',\n", - " 'Industry_Steel_Solid biomass',\n", - " 'Industry_Steel_Solid coal',\n", - " 'Industry_Chemical (ammonia)_Electricity',\n", - " 'Industry_Chemical (ammonia)_Natural gas',\n", - " 'Industry_Chemical (ammonia)_Liquid biomass',\n", - " 'Industry_Chemical (ammonia)_Liquid fossil',\n", - " 'Industry_Chemical (ammonia)_Other',\n", - " 'Industry_Chemical (ammonia)_Solid biomass',\n", - " 'Industry_Chemical (ammonia)_Solid coal',\n", - " 'Industry_Chemical (high value)_Electricity',\n", - " 'Industry_Chemical (high value)_Natural gas',\n", - " 'Industry_Chemical (high value)_Liquid biomass',\n", - " 'Industry_Chemical (high value)_Liquid fossil',\n", - " 'Industry_Chemical (high value)_Solid biomass',\n", - " 'Industry_Chemical (high value)_Solid coal',\n", - " 'Industry_Food processing_Electricity',\n", - " 'Industry_Food processing_Natural gas',\n", - " 'Industry_Food processing_Heat',\n", - " 'Industry_Food processing_Hydrogen',\n", - " 'Industry_Food processing_Liquid fossil',\n", - " 'Industry_Food processing_Solid biomass',\n", - " 'Industry_Food processing_Solid coal',\n", - " 'Heating_Residential (water heating)_Solid coal',\n", - " 'Heating_Residential (water heating)_Electricity',\n", - " 'Heating_Residential (water heating)_Natural gas',\n", - " 'Heating_Residential (water heating)_Liquid fossil',\n", - " 'Heating_Residential (water heating)_Solid biomass',\n", - " 'Transport_Freight (air)_Liquid biomass',\n", - " 'Transport_Freight (air)_Electricity',\n", - " 'Transport_Freight (air)_Natural gas',\n", - " 'Transport_Freight (air)_Hydrogen',\n", - " 'Transport_Freight (air)_Liquid fossil',\n", - " 'Transport_Freight (heavy truck)_Liquid biomass',\n", - " 'Transport_Freight (heavy truck)_Electricity',\n", - " 'Transport_Freight (heavy truck)_Natural gas',\n", - " 'Transport_Freight (heavy truck)_Hydrogen',\n", - " 'Transport_Freight (heavy truck)_Liquid fossil',\n", - " 'Transport_Freight (Intl. Shipping)_Liquid biomass',\n", - " 'Transport_Freight (Intl. Shipping)_Electricity',\n", - " 'Transport_Freight (Intl. Shipping)_Natural gas',\n", - " 'Transport_Freight (Intl. Shipping)_Hydrogen',\n", - " 'Transport_Freight (Intl. Shipping)_Liquid fossil',\n", - " 'Transport_Freight (med. Truck)_Liquid biomass',\n", - " 'Transport_Freight (med. Truck)_Electricity',\n", - " 'Transport_Freight (med. Truck)_Natural gas',\n", - " 'Transport_Freight (med. Truck)_Hydrogen',\n", - " 'Transport_Freight (med. Truck)_Liquid fossil',\n", - " 'Transport_Freight (nat. Shipping)_Liquid biomass',\n", - " 'Transport_Freight (nat. Shipping)_Electricity',\n", - " 'Transport_Freight (nat. Shipping)_Natural gas',\n", - " 'Transport_Freight (nat. Shipping)_Hydrogen',\n", - " 'Transport_Freight (nat. Shipping)_Liquid fossil',\n", - " 'Transport_Freight (train)_Liquid biomass',\n", - " 'Transport_Freight (train)_Electricity',\n", - " 'Transport_Freight (train)_Natural gas',\n", - " 'Transport_Freight (train)_Hydrogen',\n", - " 'Transport_Freight (train)_Liquid fossil',\n", - " 'Transport_Passenger_Electricity',\n", - " 'Transport_Passenger_Natural gas',\n", - " 'Transport_Passenger_Hydrogen',\n", - " 'Transport_Passenger_Liquid']" + "Coordinates:\n", + " * variable (variable) \n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
<xarray.DataArray (year: 15)> Size: 120B\n",
+       "array([4.66647340e+11, 5.45472829e+11, 0.00000000e+00, 5.78179822e+11,\n",
+       "       0.00000000e+00, 3.76307206e+11, 0.00000000e+00, 2.61900232e+11,\n",
+       "       0.00000000e+00, 2.25585623e+11, 2.05201143e+11, 1.67034370e+11,\n",
+       "       1.53310853e+11, 1.36826240e+11, 1.28377224e+11])\n",
+       "Coordinates:\n",
+       "  * year             (year) int64 120B 2005 2010 2015 2020 ... 2080 2090 2100\n",
+       "    impact_category  <U60 240B 'EF v3.1 - climate change - global warming pot...
" + ], + "text/plain": [ + " Size: 120B\n", + "array([4.66647340e+11, 5.45472829e+11, 0.00000000e+00, 5.78179822e+11,\n", + " 0.00000000e+00, 3.76307206e+11, 0.00000000e+00, 2.61900232e+11,\n", + " 0.00000000e+00, 2.25585623e+11, 2.05201143e+11, 1.67034370e+11,\n", + " 1.53310853e+11, 1.36826240e+11, 1.28377224e+11])\n", + "Coordinates:\n", + " * year (year) int64 120B 2005 2010 2015 2020 ... 2080 2090 2100\n", + " impact_category