diff --git a/.zenodo.json b/.zenodo.json new file mode 100644 index 00000000..c464d291 --- /dev/null +++ b/.zenodo.json @@ -0,0 +1,28 @@ +{ + "description": "Generates and provides a standardized elementary flow list for use in life cycle assessment (LCA) data as well as mappings to convert data from other sources.", + "license": "MIT", + "title": "fedelemflowlist", + "upload_type": "software", + "creators": [ + { + "affiliation": "US Environmental Protection Agency", + "name": "Wesley Ingwersen", + "orcid": "https://orcid.org/0000-0002-9614-701X" + }, + { + "affiliation": "Eastern Research Group, Inc.", + "name": "Ben Young", + "orcid": "https://orcid.org/0000-0001-6276-8670" + }, + { + "affiliation": "Eastern Research Group, Inc.", + "name": "Ashley Edelen" + }, + { + "affiliation": "Eastern Research Group, Inc.", + "name": "Sarah Cashman", + "orcid": "https://orcid.org/0000-0001-9859-9557" + } + ], + "access_right": "open" +} diff --git a/Jupyter/README.md b/Jupyter/README.md index 865ff6e3..852b0b51 100644 --- a/Jupyter/README.md +++ b/Jupyter/README.md @@ -1,3 +1,3 @@ # Create a mapping file for use in openLCA through Binder -[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/USEPA/Federal-LCA-Commons-Elementary-Flow-List/HEAD?labpath=Jupyter%2Frun_mappings.ipynb) +[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/USEPA/fedelemflowlist/HEAD?labpath=Jupyter%2Frun_mappings.ipynb) diff --git a/Jupyter/run_mappings.ipynb b/Jupyter/run_mappings.ipynb index 53766b9c..0c19d4ae 100644 --- a/Jupyter/run_mappings.ipynb +++ b/Jupyter/run_mappings.ipynb @@ -15,9 +15,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "scrolled": false - }, + "metadata": {}, "outputs": [], "source": [ "## Step 1\n", @@ -25,6 +23,7 @@ "import fedelemflowlist\n", "from fedelemflowlist.globals import flowmappingpath, flowmapping_fields\n", "import os\n", + "from pathlib import Path\n", "import ipywidgets as widgets\n", "from IPython.display import display, FileLink\n", "\n", @@ -32,8 +31,8 @@ " os.mkdir('./scratch')\n", "\n", "uploader = widgets.FileUpload(\n", - " accept = '.csv'\n", - " ,multiple = False\n", + " accept = '.csv',\n", + " multiple = False\n", ")\n", "\n", "display(uploader)" @@ -59,14 +58,14 @@ "if not uploader.value:\n", " raise ValueError('Input Excel file is required to continue. Make sure to select the Upload button above before continuing.')\n", "\n", - "input_file = next(iter(uploader.value))\n", - "input_full = r\"./scratch/\" + input_file\n", + "input_file = uploader.value[0]\n", + "input_full = r\"./scratch/\" + input_file['name']\n", "\n", "if os.path.exists(input_full):\n", " os.remove(input_full)\n", " \n", "with open(input_full,\"wb\") as fp:\n", - " fp.write(uploader.value[input_file]['content'])\n", + " fp.write(input_file['content'])\n", "\n", "mapping = pd.read_csv(input_full)\n", "mapping_length = len(mapping)\n", @@ -126,17 +125,27 @@ "#Subset all flows to get just those used in selected mapping\n", "flows_used_in_mapping = pd.merge(all_flows,mapping_flow_uuids)\n", "\n", - "fedelemflowlist.write_jsonld(flows_used_in_mapping,output_full,mapping_w_conversion)\n", - "print(\"mapping file created as json\")\n", - "download = FileLink(output_full,result_html_prefix=\"Click here to download: \")\n", - "display(download)\n" + "fedelemflowlist.write_jsonld(flows = flows_used_in_mapping,\n", + " path = Path(output_full),\n", + " mappings = mapping_w_conversion)\n", + "print(\"mapping file created as json\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%%html\n", + "Download Mapping File" ] } ], "metadata": { "celltoolbar": "Tags", "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -150,7 +159,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.5" + "version": "3.12.3" } }, "nbformat": 4, diff --git a/README.md b/README.md index b32eb61a..4dd7f7af 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ [![Applied Sciences](http://img.shields.io/badge/Applied%20Sciences-10.3390/app12199687-blue.svg)](https://doi.org/10.3390/app12199687) +[![DOI](https://zenodo.org/badge/120324037.svg)](https://zenodo.org/doi/10.5281/zenodo.6604309) # fedelemflowlist @@ -12,9 +13,9 @@ and a [Flow Mapping](./format%20specs/FlowMapping.md) are defined and provided by `fedelemflowlist`. They are implemented as [pandas](https://pandas.pydata.org/) dataframes. Standard formats are also described for the input files used in building the flow list, and implemented as .csv files - in the [input](https://github.com/USEPA/Federal-LCA-Commons-Elementary-Flow-List/tree/master/fedelemflowlist/input) directory. + in the [input](https://github.com/USEPA/fedelemflowlist/tree/master/fedelemflowlist/input) directory. - The version of the package (see [Releases](https://github.com/USEPA/Federal-LCA-Commons-Elementary-Flow-List/releases/)) + The version of the package (see [Releases](https://github.com/USEPA/fedelemflowlist/releases/)) corresponds to the version of the flow list that it provides. The complete or 'master' list contains all valid flows, where the 'preferred' flows are the recommended flows for use in LCA data. @@ -25,7 +26,7 @@ The background and methodology behind creation of the flow list, as well as a su ['The Federal LCA Commons Elementary Flow List: Background, Approach, Description and Recommendations for Use'](https://cfpub.epa.gov/si/si_public_record_report.cfm?Lab=NRMRL&dirEntryId=347251). Definitions for terms used in the flow list can be found in on EPA's Terminology Services in the [Federal LCA Commons Elementary Flow List for Life Cycle Assessment vocabulary](https://sor.epa.gov/sor_internet/registry/termreg/searchandretrieve/glossariesandkeywordlists/search.do?details=&vocabName=FEDEFL). -See the [Wiki](https://github.com/USEPA/Federal-LCA-Commons-Elementary-Flow-List/wiki/) for installation, more info on repository +See the [Wiki](https://github.com/USEPA/fedelemflowlist/wiki/) for installation, more info on repository contents, use examples, and for instructions on how to contribute to the flow list through additions or edits to flows or flow mappings. ## Disclaimer diff --git a/fedelemflowlist/__init__.py b/fedelemflowlist/__init__.py index 77b84bdf..7f221d7d 100644 --- a/fedelemflowlist/__init__.py +++ b/fedelemflowlist/__init__.py @@ -16,7 +16,7 @@ from fedelemflowlist.subset_list import subsets import fedelemflowlist.subset_list as subset_list -def get_flows(preferred_only=None, subset=None, download_if_missing=True): +def get_flows(preferred_only=False, subset=None, download_if_missing=True): """Gets a flow list in a standard format Returns the full master flow list unless preferred flows is lists @@ -66,7 +66,7 @@ def get_flowmapping(source=None): return flowmappings -def write_jsonld(flows, path: Path, mappings=None): +def write_jsonld(flows, path: Path, mappings=None, **kwargs): """ Writes a standard openLCA JSON-LD zip archive with elementary flows and optionally flowmappings @@ -76,7 +76,7 @@ def write_jsonld(flows, path: Path, mappings=None): :return: writes out .zip file """ writer = jsonld.Writer(flow_list=flows, flow_mapping=mappings) - writer.write_to(path) + writer.write_to(path, zw=kwargs.get('zw')) def get_alt_conversion(): """returns a dataframe of all flowables with altunits and alt conversion factors diff --git a/fedelemflowlist/contexts.py b/fedelemflowlist/contexts.py index f74ce24d..e184833c 100644 --- a/fedelemflowlist/contexts.py +++ b/fedelemflowlist/contexts.py @@ -33,7 +33,7 @@ context_list_na_removed = list() for index, row in contexts.iterrows(): pattern = [compartment_classes[x] for x in range(0, max_compartment_classes) - if str(row[x]) != 'nan'] + if str(row.iloc[x]) != 'nan'] pattern = ','.join(pattern) context_patterns.append(pattern) row_list = row.values diff --git a/fedelemflowlist/flowmapping/EIA_MER.csv b/fedelemflowlist/flowmapping/EIA_MER.csv index afad67c8..6dfaae49 100644 --- a/fedelemflowlist/flowmapping/EIA_MER.csv +++ b/fedelemflowlist/flowmapping/EIA_MER.csv @@ -9,3 +9,7 @@ EIA_MER,Primary energy - biomass,,resource,MJ,=,0.0612,Biomass,7feeb363-fbeb-37a EIA_MER,Primary energy - hydro,,resource/in water,MJ,=,1,"Energy, hydro",5af7a834-bf92-32eb-a0b2-2f2dcdc9f3d9,resource/water,MJ,Young,Edelen,2/2/2021 EIA_MER,Primary energy - solar,,resource/in air,MJ,=,1,"Energy, solar",4d1571a6-ffff-3a36-82df-224ed975a094,resource/air,MJ,Young,Edelen,2/2/2021 EIA_MER,Primary energy - wind,,resource/in air,MJ,=,1,"Energy, wind",35962866-662b-3817-a2a7-39375c7e6a3c,resource/air,MJ,Young,Edelen,2/2/2021 +EIA_MER,Coal,,resource,Quadrillion Btu,=,1.06E+12,Coal,39a07dad-33e8-3644-b6a5-2054c3d53fa9,resource/ground,MJ,Young,,5/15/2024 +EIA_MER,"Natural Gas, Dry",,resource,Quadrillion Btu,=,1.06E+12,Natural gas,ae604834-c49a-3ebb-b15b-06e6e89e427e,resource/air,MJ,Young,,5/15/2024 +EIA_MER,Natural Gas Plant Liquids,,resource,Quadrillion Btu,=,1.06E+12,Natural gas,ae604834-c49a-3ebb-b15b-06e6e89e427e,resource/air,MJ,Young,,5/15/2024 +EIA_MER,Crude Oil,,resource,Quadrillion Btu,=,1.06E+12,Crude oil,4aca0c2c-6e1a-3d90-956c-7141ca8932ce,resource/water,MJ,Young,,5/15/2024 diff --git a/fedelemflowlist/flowmapping/GHGI.csv b/fedelemflowlist/flowmapping/GHGI.csv index c269c903..8b08e175 100644 --- a/fedelemflowlist/flowmapping/GHGI.csv +++ b/fedelemflowlist/flowmapping/GHGI.csv @@ -57,6 +57,8 @@ GHGI,HFC-236fa,,air,MMTCO2e,=,101937,HFC-236fa,32057bc6-6839-3dbc-b33d-5b72e542e GHGI,HFC-32,,air,MMTCO2e,=,1481481,HFC-32,747fa9a4-559b-37a4-ac9b-5ca630274739,emission/air,kg,Bell,,10/20/2022 GHGI,NF3,,air,MTCO2e,=,0.05814,Nitrogen trifluoride,80d4ef62-ca97-37d6-87ac-83233956c063,emission/air,kg,Bell,,9/28/2022 GHGI,SF6,,air,MTCO2e,=,0.04386,Sulfur hexafluoride,8334c424-1603-3274-bec1-15a7bd5c8e86,emission/air,kg,Bell,,9/28/2022 +GHGI,N2O,,air,MTCO2e,=,3.356,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,,6/19/2024 +GHGI,HFE,,air,MTCO2e,=,1000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,6/19/2024 GHGI,PFC-116 ,,air,MMT CO2e,=,81967,Hexafluoroethane,b24a2de2-da9b-30b8-ae33-3d4ffa692029,emission/air,kg,Young,,10/18/2022 GHGI,PFC-14 ,,air,MMT CO2e,=,135318,Carbon tetrafluoride,fbfa508b-f3c9-3977-a47d-1138e96914a3,emission/air,kg,Young,,10/18/2022 GHGI,C2F6,,air,MT,=,1000,Hexafluoroethane,b24a2de2-da9b-30b8-ae33-3d4ffa692029,emission/air,kg,Bell,,11/16/2022 @@ -81,3 +83,10 @@ GHGI,Unspecified mix of PFCs,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecif GHGI,Unspecified mix of HFCs and PFCs,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/25/2023 GHGI,HFC-41,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/25/2023 GHGI,C4F6,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/25/2023 +GHGI,CO2,,air,MT CO2e (AR5-20),,1000,Carbon dioxide,b6f010fb-a764-3063-af2d-bcb8309a97b7,emission/air,kg,Young,,6/19/2024 +GHGI,CH4,,air,MT CO2e (AR5-20),,11.9047619,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Young,,6/19/2024 +GHGI,N2O,,air,MT CO2e (AR5-20),,3.78788,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,,6/19/2024 +GHGI,HFCs,,air,MT CO2e (AR5-20),,1000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,6/19/2024 +GHGI,SF6,,air,MT CO2e (AR5-20),,0.057143,Sulfur hexafluoride,8334c424-1603-3274-bec1-15a7bd5c8e86,emission/air,kg,Young,,6/19/2024 +GHGI,NF3,,air,MT CO2e (AR5-20),,0.078125,Nitrogen trifluoride,80d4ef62-ca97-37d6-87ac-83233956c063,emission/air,kg,Young,,6/19/2024 +GHGI,PFCs,,air,MT CO2e (AR5-20),,1000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,6/19/2024 diff --git a/fedelemflowlist/flowmapping/GHGI_AR5_100.csv b/fedelemflowlist/flowmapping/GHGI_AR5_100.csv new file mode 100644 index 00000000..d8ab4b7a --- /dev/null +++ b/fedelemflowlist/flowmapping/GHGI_AR5_100.csv @@ -0,0 +1,95 @@ +SourceListName,SourceFlowName,SourceFlowUUID,SourceFlowContext,SourceUnit,MatchCondition,ConversionFactor,TargetFlowName,TargetFlowUUID,TargetFlowContext,TargetUnit,Mapper,Verifier,LastUpdated +GHGI,C2F6,,air,kg,=,,Hexafluoroethane,b24a2de2-da9b-30b8-ae33-3d4ffa692029,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,C3F8,,air,kg,=,,Perfluoropropane,d7bc2a19-d1a1-3cbb-b19b-758691f823c1,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,C4F8,,air,kg,=,,Perfluorocyclobutane,8dbc9ab8-994d-3120-a843-bdbd98c41047,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,CF4,,air,kg,=,,Carbon tetrafluoride,fbfa508b-f3c9-3977-a47d-1138e96914a3,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,CH4,,air,kg,=,,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,CO2,,air,kg,=,,Carbon dioxide,b6f010fb-a764-3063-af2d-bcb8309a97b7,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,HFC-125,,air,kg,=,,HFC-125,44be3f68-dee3-3228-adb4-04b003485c5f,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,HFC-134a,,air,kg,=,,HFC-134a,4fd60c2c-8625-3b10-8618-e3eacc121bbb,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,HFC-143a,,air,kg,=,,HFC-143a,3c29f66a-2dd8-3f9b-a05c-c8cb3d93f0f1,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,HFC-23,,air,kg,=,,HFC-23,b7bab095-d0bf-3d7b-9c8e-c247d71a8f85,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,HFC-236fa,,air,kg,=,,HFC-236fa,32057bc6-6839-3dbc-b33d-5b72e542e3fc,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,HFC-32,,air,kg,=,,HFC-32,747fa9a4-559b-37a4-ac9b-5ca630274739,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,N2O,,air,kg,=,,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,NF3,,air,kg,=,,Nitrogen trifluoride,80d4ef62-ca97-37d6-87ac-83233956c063,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,SF6,,air,kg,=,,Sulfur hexafluoride,8334c424-1603-3274-bec1-15a7bd5c8e86,emission/air,kg,Edelen,Young,12/18/2020 +GHGI,C2F6,,air,MMT CO2e,=,90090,Hexafluoroethane,b24a2de2-da9b-30b8-ae33-3d4ffa692029,emission/air,kg,Young,11100,4/5/2024 +GHGI,C3F8,,air,MMT CO2e,=,112360,Perfluoropropane,d7bc2a19-d1a1-3cbb-b19b-758691f823c1,emission/air,kg,Young,8900,4/5/2024 +GHGI,CF4,,air,MMT CO2e,=,150830,Carbon tetrafluoride,fbfa508b-f3c9-3977-a47d-1138e96914a3,emission/air,kg,Young,6630,4/5/2024 +GHGI,CH4,,air,MMT CO2e,=,35714285.71,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Young,28,4/5/2024 +GHGI,CO2,,air,MMT CO2e,=,1000000000,Carbon dioxide,b6f010fb-a764-3063-af2d-bcb8309a97b7,emission/air,kg,Young,1,12/2/2021 +GHGI,HFC-23,,air,MMT CO2e,=,80645,HFC-23,b7bab095-d0bf-3d7b-9c8e-c247d71a8f85,emission/air,kg,Young,12400,4/5/2024 +GHGI,HFC-23,,air,kt,=,1000000,HFC-23,b7bab095-d0bf-3d7b-9c8e-c247d71a8f85,emission/air,kg,Young,,12/2/2021 +GHGI,N2O,,air,MMT CO2e,=,3773585,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,265,4/5/2024 +GHGI,NF3,,air,MMT CO2e,=,62112,Nitrogen trifluoride,80d4ef62-ca97-37d6-87ac-83233956c063,emission/air,kg,Young,16100,4/5/2024 +GHGI,SF6,,air,MMT CO2e,=,42553,Sulfur hexafluoride,8334c424-1603-3274-bec1-15a7bd5c8e86,emission/air,kg,Young,23500,4/5/2024 +GHGI,c-C4F8,,air,MMT CO2e,=,104822,Perfluorocyclobutane,8dbc9ab8-994d-3120-a843-bdbd98c41047,emission/air,kg,Young,9540,4/5/2024 +GHGI,C-C4F8,,air,MMT CO2e,=,104822,Perfluorocyclobutane,8dbc9ab8-994d-3120-a843-bdbd98c41047,emission/air,kg,Young,9540,4/5/2024 +GHGI,C4F8,,air,MMT CO2e,=,104822,Perfluorocyclobutane,8dbc9ab8-994d-3120-a843-bdbd98c41047,emission/air,kg,Young,9540,4/5/2024 +GHGI,HFC-125,,air,MMT CO2e,=,315457,HFC-125,44be3f68-dee3-3228-adb4-04b003485c5f,emission/air,kg,Young,3170,4/5/2024 +GHGI,HFC-134a,,air,MMT CO2e,=,769231,HFC-134a,4fd60c2c-8625-3b10-8618-e3eacc121bbb,emission/air,kg,Young,1300,4/5/2024 +GHGI,HFC-143a,,air,MMT CO2e,=,208333,HFC-143a,3c29f66a-2dd8-3f9b-a05c-c8cb3d93f0f1,emission/air,kg,Young,4800,4/5/2024 +GHGI,HFC-236fa,,air,MMT CO2e,=,124069,HFC-236fa,32057bc6-6839-3dbc-b33d-5b72e542e3fc,emission/air,kg,Young,8060,4/5/2024 +GHGI,HFC-32,,air,MMT CO2e,=,1477105,HFC-32,747fa9a4-559b-37a4-ac9b-5ca630274739,emission/air,kg,Young,677,4/5/2024 +GHGI,N2O,,air,MT CO2e,=,3.774,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,265,4/5/2024 +GHGI,Carbon Dioxide,,air,MMT CO2e,=,1000000000,Carbon dioxide,b6f010fb-a764-3063-af2d-bcb8309a97b7,emission/air,kg,Young,1,4/5/2024 +GHGI,Methane,,air,MMT CO2e,=,35714286,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Young,28,4/5/2024 +GHGI,Nitrous Oxide,,air,MMT CO2e,=,3773585,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,265,4/5/2024 +GHGI,Carbon Dioxide - biogenic,,air,MMT CO2e,=,1000000000,Biogenic carbon dioxide,n.a.,emission/air,kg,Young,,6/15/2022 +GHGI,Nitrogen trifluoride,,air,MMT CO2e,=,62112,Nitrogen trifluoride,80d4ef62-ca97-37d6-87ac-83233956c063,emission/air,kg,Young,16100,4/5/2024 +GHGI,PFC-218 ,,air,MMT CO2e,=,112360,Perfluoropropane,d7bc2a19-d1a1-3cbb-b19b-758691f823c1,emission/air,kg,Young,8900,4/5/2024 +GHGI,Perfluorocyclobutane,,air,MMT CO2e,=,104822,Perfluorocyclobutane,8dbc9ab8-994d-3120-a843-bdbd98c41047,emission/air,kg,Young,9540,4/5/2024 +GHGI,Sulfur hexafluoride,,air,MMT CO2e,=,42553,Sulfur hexafluoride,8334c424-1603-3274-bec1-15a7bd5c8e86,emission/air,kg,Young,23500,4/5/2024 +GHGI,Biogenic CH4,,air,MT,=,1000,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Bell,,9/28/2022 +GHGI,Biogenic CO2,,air,MT,=,1000,Biogenic carbon dioxide,n.a.,emission/air,kg,Bell,,9/28/2022 +GHGI,Biogenic N2O,,air,MT,=,1000,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Bell,,9/28/2022 +GHGI,C2F6,,air,MTCO2e,=,0.081967,Hexafluoroethane,b24a2de2-da9b-30b8-ae33-3d4ffa692029,emission/air,kg,Bell,,9/28/2022 +GHGI,C3F8,,air,MTCO2e,=,0.11325,Perfluoropropane,d7bc2a19-d1a1-3cbb-b19b-758691f823c1,emission/air,kg,Bell,,9/28/2022 +GHGI,c-C4F8,,air,MTCO2e,=,0.097087,Perfluorocyclobutane,8dbc9ab8-994d-3120-a843-bdbd98c41047,emission/air,kg,Bell,,9/28/2022 +GHGI,CF4,,air,MTCO2e,=,0.135318,Carbon tetrafluoride,fbfa508b-f3c9-3977-a47d-1138e96914a3,emission/air,kg,Bell,,9/28/2022 +GHGI,CH4,,air,MT,=,1000,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Bell,,9/28/2022 +GHGI,HFC-125,,air,MMTCO2e,=,285714,HFC-125,44be3f68-dee3-3228-adb4-04b003485c5f,emission/air,kg,Bell,,10/20/2022 +GHGI,HFC-134a,,air,MMTCO2e,=,699301,HFC-134a,4fd60c2c-8625-3b10-8618-e3eacc121bbb,emission/air,kg,Bell,,10/20/2022 +GHGI,HFC-143a,,air,MMTCO2e,=,223714,HFC-143a,3c29f66a-2dd8-3f9b-a05c-c8cb3d93f0f1,emission/air,kg,Bell,,10/20/2022 +GHGI,HFC-23,,air,MTCO2e,=,0.067568,HFC-23,b7bab095-d0bf-3d7b-9c8e-c247d71a8f85,emission/air,kg,Bell,,9/28/2022 +GHGI,HFC-236fa,,air,MMTCO2e,=,101937,HFC-236fa,32057bc6-6839-3dbc-b33d-5b72e542e3fc,emission/air,kg,Bell,,10/20/2022 +GHGI,HFC-32,,air,MMTCO2e,=,1481481,HFC-32,747fa9a4-559b-37a4-ac9b-5ca630274739,emission/air,kg,Bell,,10/20/2022 +GHGI,NF3,,air,MTCO2e,=,0.05814,Nitrogen trifluoride,80d4ef62-ca97-37d6-87ac-83233956c063,emission/air,kg,Bell,,9/28/2022 +GHGI,SF6,,air,MTCO2e,=,0.04386,Sulfur hexafluoride,8334c424-1603-3274-bec1-15a7bd5c8e86,emission/air,kg,Bell,,9/28/2022 +GHGI,PFC-116 ,,air,MMT CO2e,=,81967,Hexafluoroethane,b24a2de2-da9b-30b8-ae33-3d4ffa692029,emission/air,kg,Young,,10/18/2022 +GHGI,PFC-14 ,,air,MMT CO2e,=,135318,Carbon tetrafluoride,fbfa508b-f3c9-3977-a47d-1138e96914a3,emission/air,kg,Young,,10/18/2022 +GHGI,C2F6,,air,MT,=,1000,Hexafluoroethane,b24a2de2-da9b-30b8-ae33-3d4ffa692029,emission/air,kg,Bell,,11/16/2022 +GHGI,C3F8,,air,MT,=,1000,Perfluoropropane,d7bc2a19-d1a1-3cbb-b19b-758691f823c1,emission/air,kg,Bell,,11/16/2022 +GHGI,c-C4F8,,air,MT,=,1000,Perfluorocyclobutane,8dbc9ab8-994d-3120-a843-bdbd98c41047,emission/air,kg,Bell,,11/16/2022 +GHGI,CF4,,air,MT,=,1000,Carbon tetrafluoride,fbfa508b-f3c9-3977-a47d-1138e96914a3,emission/air,kg,Bell,,11/16/2022 +GHGI,CO2,,air,MT,=,1000,Carbon dioxide,b6f010fb-a764-3063-af2d-bcb8309a97b7,emission/air,kg,Bell,,11/16/2022 +GHGI,HFC-125,,air,MT,=,1000,HFC-125,44be3f68-dee3-3228-adb4-04b003485c5f,emission/air,kg,Bell,,11/16/2022 +GHGI,HFC-134a,,air,MT,=,1000,HFC-134a,4fd60c2c-8625-3b10-8618-e3eacc121bbb,emission/air,kg,Bell,,11/16/2022 +GHGI,HFC-143a,,air,MT,=,1000,HFC-143a,3c29f66a-2dd8-3f9b-a05c-c8cb3d93f0f1,emission/air,kg,Bell,,11/16/2022 +GHGI,HFC-23,,air,MT,=,1000,HFC-23,b7bab095-d0bf-3d7b-9c8e-c247d71a8f85,emission/air,kg,Bell,,11/16/2022 +GHGI,HFC-236fa,,air,MT,=,1000,HFC-236fa,32057bc6-6839-3dbc-b33d-5b72e542e3fc,emission/air,kg,Bell,,11/16/2022 +GHGI,HFC-32,,air,MT,=,1000,HFC-32,747fa9a4-559b-37a4-ac9b-5ca630274739,emission/air,kg,Bell,,11/16/2022 +GHGI,N2O,,air,MT,=,1000,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Bell,,11/16/2022 +GHGI,NF3,,air,MT,=,1000,Nitrogen trifluoride,80d4ef62-ca97-37d6-87ac-83233956c063,emission/air,kg,Bell,,11/16/2022 +GHGI,SF6,,air,MT,=,1000,Sulfur hexafluoride,8334c424-1603-3274-bec1-15a7bd5c8e86,emission/air,kg,Bell,,11/16/2022 +GHGI,Others,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/25/2023 +GHGI,Others,,air,MTCO2e,=,1000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/25/2023 +GHGI,CO2e,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/25/2023 +GHGI,Unspecified mix of HFCs,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/25/2023 +GHGI,Unspecified mix of PFCs,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/25/2023 +GHGI,Unspecified mix of HFCs and PFCs,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/25/2023 +GHGI,HFC-41,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/25/2023 +GHGI,C4F6,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/25/2023 +GHGI,Other Saturated HFCs,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/5/2024 +GHGI,Other PFCs and HFOs,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/5/2024 +GHGI,"1H,4H-Perfluorobutane",,air,MT,=,1000,Perfluorobutane,b79859f9-9979-3708-9390-a3d6c0690561,emission/air,kg,Young,,4/19/2024 +GHGI,"1H,6H-Perfluorohexane",,air,MT,=,1000,Perfluorohexane,abbacdaf-9d6d-3805-bd10-d35905d7dff8,emission/air,kg,Young,,4/19/2024 +GHGI,Perfluorocyclobutane,,air,MT,=,1000,Perfluorocyclobutane,8dbc9ab8-994d-3120-a843-bdbd98c41047,emission/air,kg,Young,,4/19/2024 +GHGI,PFC-14 (Perfluoromethane),,air,MT,=,1000,Carbon tetrafluoride,fbfa508b-f3c9-3977-a47d-1138e96914a3,emission/air,kg,Young,,4/19/2024 +GHGI,Sulfur hexafluoride,,air,MT,=,1000,Sulfur hexafluoride,8334c424-1603-3274-bec1-15a7bd5c8e86,emission/air,kg,Young,,4/19/2024 +GHGI,Nitrogen trifluoride,,air,MT,=,1000,Nitrogen trifluoride,80d4ef62-ca97-37d6-87ac-83233956c063,emission/air,kg,Young,,4/19/2024 +GHGI,PFC-14,,air,MMT CO2e,=,135318,Carbon tetrafluoride,fbfa508b-f3c9-3977-a47d-1138e96914a3,emission/air,kg,Young,,4/19/2024 +GHGI,PFCs,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/19/2024 +GHGI,Other HFCs,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/19/2024 +GHGI,Other PFCs,,air,MMT CO2e,=,1000000000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,4/19/2024 diff --git a/fedelemflowlist/flowmapping/IPCC.csv b/fedelemflowlist/flowmapping/IPCC.csv index 0832a47e..85a5df17 100644 --- a/fedelemflowlist/flowmapping/IPCC.csv +++ b/fedelemflowlist/flowmapping/IPCC.csv @@ -3586,23 +3586,6 @@ IPCC,"Formic acid;1,1,1,3,3,3-hexafluoropropan-2-ol",,air,kg,=,1,"1,1,1,3,3,3-He IPCC,"Formic acid;1,1,1,3,3,3-hexafluoropropan-2-ol",,air,kg,=,1,"1,1,1,3,3,3-Hexafluoropropan-2-yl formate",2fe593df-c971-37ec-b2f7-c35b0165a62b,emission/air/troposphere/rural/ground-level,kg,Edelen,,8/23/2022 IPCC,"Formic acid;1,1,1,3,3,3-hexafluoropropan-2-ol",,air,kg,=,1,"1,1,1,3,3,3-Hexafluoropropan-2-yl formate",7279dd30-ff85-386d-b6e9-10bb83f6b8c3,emission/air/indoor,kg,Edelen,,8/23/2022 IPCC,"Formic acid;1,1,1,3,3,3-hexafluoropropan-2-ol",,air,kg,=,1,"1,1,1,3,3,3-Hexafluoropropan-2-yl formate",2a966227-8437-3edf-bad9-599085ff58c1,emission/air/stratosphere,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,be7b7ec1-c39a-376b-a50f-682256b29299,emission/air/troposphere/low,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,1f96ace5-cd65-3075-9d18-0db2fff6163f,emission/air/troposphere/high,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,492f8145-f4fc-39a1-83e5-c3d0c67e9b4d,emission/air/troposphere/very high,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,49a128b1-4b4c-3c0b-9acd-c20765a82fe3,emission/air/troposphere/ground-level,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,b0d0c60e-2add-3607-999c-04db866b8c3a,emission/air/troposphere/urban,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,a81e5ff3-ddea-3521-854e-3d0ec0912182,emission/air/troposphere/rural,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,85287ad0-3263-3555-a598-2aedee9a182b,emission/air/troposphere/urban/low,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,08f8b6fb-ecf8-397b-af11-61ec6531aff2,emission/air/troposphere/rural/low,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,46b9c7a7-7bc0-371a-a254-75d73b798286,emission/air/troposphere/urban/high,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,e421589d-1fcc-3ec4-87a1-527db9bb1897,emission/air/troposphere/rural/high,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,f762d983-8d8f-37b1-84a2-d8477370c56f,emission/air/troposphere/urban/very high,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,5b950bc8-e7ab-3c08-b3d9-fc8772df9323,emission/air/troposphere/rural/very high,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,c31a4412-446a-32f3-935c-986c002fe6ac,emission/air/troposphere/urban/ground-level,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,be0fa1ff-98da-35d7-ab96-78ef2107339c,emission/air/troposphere/rural/ground-level,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,3557fccf-14aa-3ed2-877a-e1aa4441e46a,emission/air/indoor,kg,Edelen,,8/23/2022 -IPCC,Fossil methane,,air,kg,=,1,Methane,fb3d727a-5156-32e0-8f62-da4e00e6ace8,emission/air/stratosphere,kg,Edelen,,8/23/2022 IPCC,HCFC-122,,air,kg,=,1,HCFC-122,fdf3b4c5-2ed1-3079-ac71-d0ff465d5381,emission/air,kg,Edelen,,8/23/2022 IPCC,HCFC-122,,air,kg,=,1,HCFC-122,ba3d5c84-71d4-3562-8df6-e7203757f606,emission/air/troposphere/low,kg,Edelen,,8/23/2022 IPCC,HCFC-122,,air,kg,=,1,HCFC-122,01488936-a338-39f4-8aad-35bb1aae674d,emission/air/troposphere/high,kg,Edelen,,8/23/2022 diff --git a/fedelemflowlist/flowmapping/SIT.csv b/fedelemflowlist/flowmapping/SIT.csv index 54463805..64593fbe 100644 --- a/fedelemflowlist/flowmapping/SIT.csv +++ b/fedelemflowlist/flowmapping/SIT.csv @@ -30,3 +30,46 @@ SIT,HFC-32,,air,MTCO2e,=,1.481481,HFC-32,747fa9a4-559b-37a4-ac9b-5ca630274739,em SIT,NF3,,air,MTCO2e,=,0.05814,Nitrogen trifluoride,80d4ef62-ca97-37d6-87ac-83233956c063,emission/air,kg,Bell,,10/17/2022 SIT,SF6,,air,MTCO2e,=,0.04386,Sulfur hexafluoride,8334c424-1603-3274-bec1-15a7bd5c8e86,emission/air,kg,Bell,,10/17/2022 SIT,Others,,air,MTCO2e,=,1000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,5/1/2023 +SIT,CO2,,air,MMTCO2e (AR5-100),=,1000000000,Carbon dioxide,b6f010fb-a764-3063-af2d-bcb8309a97b7,emission/air,kg,Young,,6/21/2024 +SIT,CO2,,air,MTCO2e (AR5-100),=,1000,Carbon dioxide,b6f010fb-a764-3063-af2d-bcb8309a97b7,emission/air,kg,Young,,6/21/2024 +SIT,Carbon Dioxide Emissions,,air,MTCO2e (AR5-100),=,1000,Carbon dioxide,b6f010fb-a764-3063-af2d-bcb8309a97b7,emission/air,kg,Young,,6/21/2024 +SIT,CH4,,air,MTCO2e (AR5-100),=,35.714,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Young,28,6/21/2024 +SIT,CH4,,air,MMTCO2e (AR5-100),=,35714285.71,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Young,28,6/21/2024 +SIT,Industrial CH4,,air,MMTCO2e (AR5-100),=,35714285.71,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Young,28,6/21/2024 +SIT,Municipal CH4,,air,MMTCO2e (AR5-100),=,35714285.71,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Young,28,6/21/2024 +SIT,N2O,,air,MTCO2e (AR5-100),=,3.774,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,265,6/21/2024 +SIT,Nitrous Oxide Emissions,,air,MTCO2e (AR5-100),=,3.774,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,265,6/21/2024 +SIT,N2O,,air,MMTCO2e (AR5-100),=,3773584.9,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,265,6/21/2024 +SIT,Municipal N2O,,air,MMTCO2e (AR5-100),=,3773584.9,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,265,6/21/2024 +SIT,CF4,,air,MTCO2e (AR5-100),=,0.15083,Carbon tetrafluoride,fbfa508b-f3c9-3977-a47d-1138e96914a3,emission/air,kg,Young,6630,6/21/2024 +SIT,HFC-125,,air,MTCO2e (AR5-100),=,0.31546,HFC-125,44be3f68-dee3-3228-adb4-04b003485c5f,emission/air,kg,Young,3170,6/21/2024 +SIT,HFC-134a,,air,MTCO2e (AR5-100),=,0.76923,HFC-134a,4fd60c2c-8625-3b10-8618-e3eacc121bbb,emission/air,kg,Young,1300,6/21/2024 +SIT,HFC-143a,,air,MTCO2e (AR5-100),=,0.20833,HFC-143a,3c29f66a-2dd8-3f9b-a05c-c8cb3d93f0f1,emission/air,kg,Young,4800,6/21/2024 +SIT,HFC-236fa,,air,MTCO2e (AR5-100),=,0.12407,HFC-236fa,32057bc6-6839-3dbc-b33d-5b72e542e3fc,emission/air,kg,Young,8060,6/21/2024 +SIT,HFC-32,,air,MTCO2e (AR5-100),=,1.4771,HFC-32,747fa9a4-559b-37a4-ac9b-5ca630274739,emission/air,kg,Young,677,6/21/2024 +SIT,Others,,air,MTCO2e (AR5-100),=,1000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,6/21/2024 +SIT,SF6,,air,MTCO2e (AR5-100),=,0.04255,Sulfur hexafluoride,8334c424-1603-3274-bec1-15a7bd5c8e86,emission/air,kg,Young,23500,6/21/2024 +SIT,CO2,,air,MMTCO2e (AR6-100),=,1000000000,Carbon dioxide,b6f010fb-a764-3063-af2d-bcb8309a97b7,emission/air,kg,Young,,6/21/2024 +SIT,CO2,,air,MTCO2e (AR6-100),=,1000,Carbon dioxide,b6f010fb-a764-3063-af2d-bcb8309a97b7,emission/air,kg,Young,,6/21/2024 +SIT,Carbon Dioxide Emissions,,air,MTCO2e (AR6-100),=,1000,Carbon dioxide,b6f010fb-a764-3063-af2d-bcb8309a97b7,emission/air,kg,Young,,6/21/2024 +SIT,CH4,,air,MTCO2e (AR6-100),=,35.842,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Young,27.9,6/21/2024 +SIT,CH4,,air,MMTCO2e (AR6-100),=,35842293.91,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Young,27.9,6/21/2024 +SIT,Industrial CH4,,air,MMTCO2e (AR6-100),=,35842293.91,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Young,27.9,6/21/2024 +SIT,Municipal CH4,,air,MMTCO2e (AR6-100),=,35842293.91,Methane,aab83476-ec6c-3742-af85-15d320b7ce80,emission/air,kg,Young,27.9,6/21/2024 +SIT,N2O,,air,MTCO2e (AR6-100),=,3.663,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,273,6/21/2024 +SIT,Nitrous Oxide Emissions,,air,MTCO2e (AR6-100),=,3.663,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,273,6/21/2024 +SIT,N2O,,air,MMTCO2e (AR6-100),=,3663003.7,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,273,6/21/2024 +SIT,Municipal N2O,,air,MMTCO2e (AR6-100),=,3663003.7,Nitrous oxide,cfee0524-7ad6-300b-b050-6249135a2492,emission/air,kg,Young,273,6/21/2024 +SIT,CF4,,air,MTCO2e (AR6-100),=,0.1355,Carbon tetrafluoride,fbfa508b-f3c9-3977-a47d-1138e96914a3,emission/air,kg,Young,7380,6/21/2024 +SIT,HFC-125,,air,MTCO2e (AR6-100),=,0.26738,HFC-125,44be3f68-dee3-3228-adb4-04b003485c5f,emission/air,kg,Young,3740,6/21/2024 +SIT,HFC-134a,,air,MTCO2e (AR6-100),=,0.65359,HFC-134a,4fd60c2c-8625-3b10-8618-e3eacc121bbb,emission/air,kg,Young,1530,6/21/2024 +SIT,HFC-143a,,air,MTCO2e (AR6-100),=,0.17212,HFC-143a,3c29f66a-2dd8-3f9b-a05c-c8cb3d93f0f1,emission/air,kg,Young,5810,6/21/2024 +SIT,HFC-236fa,,air,MTCO2e (AR6-100),=,0.11507,HFC-236fa,32057bc6-6839-3dbc-b33d-5b72e542e3fc,emission/air,kg,Young,8690,6/21/2024 +SIT,HFC-32,,air,MTCO2e (AR6-100),=,1.29702,HFC-32,747fa9a4-559b-37a4-ac9b-5ca630274739,emission/air,kg,Young,771,6/21/2024 +SIT,Others,,air,MTCO2e (AR6-100),=,1000,"HFCs and PFCs, unspecified",n.a.,emission/air,kg CO2e,Young,,6/21/2024 +SIT,SF6,,air,MTCO2e (AR6-100),=,0.03968,Sulfur hexafluoride,8334c424-1603-3274-bec1-15a7bd5c8e86,emission/air,kg,Young,25200,6/21/2024 +SIT,C2F6,,air,MTCO2e (AR6-100),=,0.080645161,Hexafluoroethane,b24a2de2-da9b-30b8-ae33-3d4ffa692029,emission/air,kg,Young,12400,10/21/2024 +SIT,C3F8,,air,MTCO2e (AR6-100),=,0.107642626,Perfluoropropane,d7bc2a19-d1a1-3cbb-b19b-758691f823c1,emission/air,kg,Young,9290,10/21/2024 +SIT,C4F8,,air,MTCO2e (AR6-100),=,0.098039216,Perfluorocyclobutane,8dbc9ab8-994d-3120-a843-bdbd98c41047,emission/air,kg,Young,10200,10/21/2024 +SIT,HFC-23,,air,MTCO2e (AR6-100),=,0.068493151,HFC-23,b7bab095-d0bf-3d7b-9c8e-c247d71a8f85,emission/air,kg,Young,14600,10/21/2024 +SIT,NF3,,air,MTCO2e (AR6-100),=,0.057471264,Nitrogen trifluoride,80d4ef62-ca97-37d6-87ac-83233956c063,emission/air,kg,Young,17400,10/21/2024 diff --git a/fedelemflowlist/globals.py b/fedelemflowlist/globals.py index 84a6e3f0..659f1f48 100644 --- a/fedelemflowlist/globals.py +++ b/fedelemflowlist/globals.py @@ -53,7 +53,7 @@ stream=sys.stdout) flow_list_specs = { - "list_version": "1.2.0", + "list_version": "1.2.4", "flow_classes": ["Biological", "Chemicals", "Energy", "Geological", "Groups", "Land", "Other", "Water"], "primary_context_classes": ["Directionality", "Environmental Media"], diff --git a/fedelemflowlist/input/mapping input/IPCCFlowableMappings.csv b/fedelemflowlist/input/mapping input/IPCCFlowableMappings.csv index 4d77acb1..f5c47944 100644 --- a/fedelemflowlist/input/mapping input/IPCCFlowableMappings.csv +++ b/fedelemflowlist/input/mapping input/IPCCFlowableMappings.csv @@ -210,7 +210,7 @@ Fluoroethene,kg,75-02-5,HFO-1141,CH2=CHF,=,Vinyl fluoride,kg,Edelen,CAS Number,, Fluoromethane,kg,593-53-3,HFC-41,CH3F,=,HFC-41,kg,Edelen,CAS Number,,,8/23/2022 Fluoroxene,kg,406-90-6,,CF3CH2OCH=CH2,=,"Ethene, (2,2,2-trifluoroethoxy)-",kg,Edelen,CAS Number,,,8/23/2022 "Formic acid;1,1,1,3,3,3-hexafluoropropan-2-ol",kg,856766-70-6,,(CF3)2CHOCHO,=,"1,1,1,3,3,3-Hexafluoropropan-2-yl formate",kg,Edelen,CAS Number,,,8/23/2022 -Fossil methane,kg,74-82-8,,CH4,=,Methane,kg,Edelen,CAS Number,,,8/23/2022 +Fossil methane,kg,74-82-8,,CH4,,,,,,,, Halon-1201,kg,1511-62-2,,CHBrF2,=,Bromodifluoromethane,kg,Edelen,CAS Number,,,8/23/2022 Halon-1202,kg,75-61-6,,CBr2F2,=,Dibromodifluoromethane,kg,Edelen,CAS Number,,,8/23/2022 Halon-1211,kg,353-59-3,,CBrClF2,=,Halon 1211,kg,Young,,,,9/9/2022 diff --git a/fedelemflowlist/jsonld.py b/fedelemflowlist/jsonld.py index 10a9e5fc..5129c25b 100644 --- a/fedelemflowlist/jsonld.py +++ b/fedelemflowlist/jsonld.py @@ -6,6 +6,7 @@ from pathlib import Path from typing import Optional import pandas as pd +import json try: import olca_schema as o @@ -61,23 +62,21 @@ def to_json(self) -> dict: flow_ref = o.Ref() flow_ref.name = self.name if self.category is not None: - flow_ref.category_path = self.category.split('/') + flow_ref.category = self.category # set the UUID or generate it from the attributes if self.uid is None: - flow_ref.id = make_uuid("Flow", - self.category, self.name) + flow_ref.id = make_uuid("Flow", self.category, self.name) else: flow_ref.id = self.uid json = { - 'flow': flow_ref.to_json() + 'flow': flow_ref.to_dict() } if self.unit is not None: unit_ref = units.unit_ref(self.unit) if unit_ref is not None: - json['unit'] = unit_ref.to_json() - + json['unit'] = unit_ref.to_dict() return json @@ -131,20 +130,26 @@ def __init__(self, flow_list: pd.DataFrame, self.flow_mapping = flow_mapping self._context_uids = {} - def write_to(self, path: Path): + def write_to(self, path: Path, zw: zipio.ZipWriter = None): """ Writes json dictionaries to files :param path: string path to file + :param zw: optional zipio.ZipWriter :return: None """ - if path.exists(): + if (path and path.exists()): log.warning(f'File {path} already exists and will be overwritten') path.unlink() - zw = zipio.ZipWriter(path) + if not zw: + passed_zw = False + zw = zipio.ZipWriter(path) + else: + passed_zw = True self._write_flows(zw) if self.flow_mapping is not None: self._write_mappings(zw) - zw.close() + if not passed_zw: + zw.close() def _write_flows(self, zw: zipio.ZipWriter): altflowlist=fedelemflowlist.get_alt_conversion() @@ -210,15 +215,21 @@ def _write_mappings(self, zw: zipio.ZipWriter): for source_list, entries in maps.items(): list_ref = o.Ref() - list_ref.o_type = 'FlowMap' + list_ref.ref_type = o.RefType.FlowMap list_ref.name = source_list mappings = [] flow_map = { '@id': str(uuid.uuid4()), 'name': '%s -> Fed.LCA Commons' % source_list, - 'source': list_ref.to_json(), + 'source': list_ref.to_dict(), 'mappings': mappings } for e in entries: mappings.append(e.to_json()) - zw.write_json(flow_map, 'flow_mappings') + + # an ugly hack to write the flow maps directly to the zip-file + # as there are currenty only methods for writing RootEntity + # objects in the ZipWriter + zw._ZipWriter__zip.writestr( + "flow_mappings/" + flow_map["@id"] + ".json", + json.dumps(flow_map)) diff --git a/scripts/write_flows_and_mappings.py b/scripts/write_flows_and_mappings.py index 020fedac..218bb9a9 100644 --- a/scripts/write_flows_and_mappings.py +++ b/scripts/write_flows_and_mappings.py @@ -19,10 +19,12 @@ # Now write out flows and mappings export_name = '' + if isinstance(mapping_to_use, str): + mapping_to_use = [mapping_to_use] for s in mapping_to_use: export_name = export_name + s + '_' export_name = export_name + 'flows_w_mappings.zip' fedelemflowlist.write_jsonld(flows_used_in_mapping, outputpath / export_name, mapping) - + print(f"File saved to {outputpath / export_name}") diff --git a/setup.py b/setup.py index 30b821fa..e8df0835 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='fedelemflowlist', - version='1.2.0', + version='1.2.4', packages=['fedelemflowlist'], package_dir={'fedelemflowlist': 'fedelemflowlist'}, package_data={'fedelemflowlist': [ @@ -16,7 +16,7 @@ 'olca-schema>=0.0.11', 'esupy @ git+https://github.com/USEPA/esupy.git@develop#egg=esupy', ], - url='https://github.com/USEPA/Federal-LCA-Commons-Elementary-Flow-List', + url='https://github.com/USEPA/fedelemflowlist', license='CC0', author='Wesley Ingwersen', author_email='ingwersen.wesley@epa.gov',