{ "info": { "author": "Laurent Faucheux", "author_email": "laurent.faucheux@hotmail.fr", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Programming Language :: Python :: 2.7", "Topic :: Scientific/Engineering" ], "description": "# [PyGWP](https://github.com/lfaucheux/PyGWP) - A **CO2-equivalent computer** based on static or dynamic CO2-relative global warming potentials.\r\n\r\n## Sources \r\n- **[IPCC WG1 Fourth Assessment Report, 2007](https://www.ipcc.ch/publications_and_data/ar4/wg1/en/ch2s2-10-2.html)**\r\n- **[Levasseur et al, 2010](http://pubs.acs.org/doi/abs/10.1021/es9030003)**\r\n\r\n## Installation\r\n\r\nWe are going to use a package management system to install and manage software packages written in Python, namely [pip](https://en.wikipedia.org/wiki/Pip_(package_manager)). Open a session in your OS shell prompt and type\r\n\r\n pip install pygwp\r\n\r\nOr using a non-python-builtin approach, namely [git](https://git-scm.com/downloads),\r\n\r\n git clone git://github.com/lfaucheux/PyGWP.git\r\n cd PyGWP\r\n python setup.py install\r\n\r\n## Requirements\r\n\r\n- **[numpy](http://www.numpy.org/)**\r\n\r\n## Use cases\r\n\r\n- **Scientific modelling**\r\n\r\n## Example usage:\r\n\r\n >>> from PyGWP import GWPBasedCO2eq\r\n >>> dyn_gwp20 = GWPBasedCO2eq(\r\n ... first_year = 2020,\r\n ... project_horizon = 5,\r\n ... GWP_horizon = 20,\r\n ... static = False\r\n ... )\r\n >>> ghgs_weight_per_weight_of_output_inventory_flow = {'CO2':1., 'N2O':.0, 'CH4':.0}\r\n >>> co2eq_traj = dyn_gwp20.co2eq_yields_trajectory_computer(\r\n ... ghgs_weight_per_weight_of_output_inventory_flow,\r\n ... as_row_array=False\r\n ... )\r\n >>> co2eq_traj['as_array']\r\n array([[1. ],\r\n [0.95764081],\r\n [0.91469171],\r\n [0.87112496],\r\n [0.82691128]])\r\n >>> co2eq_traj['as_dict']\r\n {2024: 0.82691127746144444, 2020: 1.0, 2021: 0.95764080833063492, 2022: 0.91469171438570718, 2023: 0.87112496115582216}\r\n\r\n >>> co2eq_traj = dyn_gwp20.co2eq_yields_trajectory_computer({'CO2':.0,'N2O':1.,'CH4':.0})\r\n >>> co2eq_traj['as_array']\r\n array([[292.33637282, 278.90543843, 265.35617058, 251.68752668,\r\n 237.89845498]])\r\n\r\n\r\n >>> co2eq_traj = dyn_gwp20.co2eq_yields_trajectory_computer({'CO2':.0,'N2O':.0,'CH4':1.})\r\n >>> co2eq_traj['as_array']\r\n array([[72.2209832 , 70.75950679, 69.17102216, 67.44449179, 65.56791893]])\r\n\r\n >>> sta_gwp20 = GWPBasedCO2eq(\r\n ... first_year = 2020,\r\n ... project_horizon = 5,\r\n ... GWP_horizon = 20,\r\n ... static = True\r\n ... ) \r\n >>> co2eq_traj = sta_gwp20.co2eq_yields_trajectory_computer({'CO2':.0, 'N2O':.0, 'CH4':1.})\r\n >>> co2eq_traj['as_array']\r\n array([[72.2209832, 72.2209832, 72.2209832, 72.2209832, 72.2209832]])\r\n\r\n\r\n## License\r\nDistributed under the [MIT license](https://opensource.org/licenses/MIT)\r\n\r\n\r\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/lfaucheux/PyGWP/archive/0.0.32.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lfaucheux/PyGWP", "keywords": "Global Warming Potential,Static Global Warming Potential,Dynamic Global Warming Potential", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "PyGWP", "package_url": "https://pypi.org/project/PyGWP/", "platform": "", "project_url": "https://pypi.org/project/PyGWP/", "project_urls": { "Download": "https://github.com/lfaucheux/PyGWP/archive/0.0.32.tar.gz", "Homepage": "https://github.com/lfaucheux/PyGWP" }, "release_url": "https://pypi.org/project/PyGWP/0.0.32/", "requires_dist": [ "numpy" ], "requires_python": "", "summary": "A CO2-equivalent computer based on static or dynamic CO2-relative global warming potentials coded in Python27, PyGWP.", "version": "0.0.32" }, "last_serial": 5140606, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "269825b3fa88594b7ef7201946611aa4", "sha256": "2a111b0c9783193814c5bd700f74eaa70aef647b3bac1e76d93fdcbf3c8e8420" }, "downloads": -1, "filename": "PyGWP-0.0.1.zip", "has_sig": false, "md5_digest": "269825b3fa88594b7ef7201946611aa4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5984, "upload_time": "2018-03-06T17:30:53", "url": "https://files.pythonhosted.org/packages/ba/4f/970c8a3df3837211b5813916ec53b062a16ab4b9ee4f0d0a2dd4518a01e3/PyGWP-0.0.1.zip" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "5e4d3453a52070434d9e47a007e76827", "sha256": "8f56e857b71e4adb3c8d7745059729f1752175ccf3d0aad2b58202c05cd2ff8e" }, "downloads": -1, "filename": "PyGWP-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "5e4d3453a52070434d9e47a007e76827", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7857, "upload_time": "2019-03-23T09:00:20", "url": "https://files.pythonhosted.org/packages/fa/0a/aef4f4b53dda21529277d3d44953e71a4d1e17c0ce416bfbfdfd4f14310d/PyGWP-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fa803e7d33115fd3a341478762b32c4d", "sha256": "b11f1c99ba834da4dae273f883c452921012317b519d22151d918c06a91bfb46" }, "downloads": -1, "filename": "PyGWP-0.0.2.tar.gz", "has_sig": false, "md5_digest": "fa803e7d33115fd3a341478762b32c4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5887, "upload_time": "2019-03-23T09:00:21", "url": "https://files.pythonhosted.org/packages/1c/22/82e2d7bb53ffa8d2fb5b024b455e6ba97691b8fa7f3725cf3cef790ab550/PyGWP-0.0.2.tar.gz" } ], "0.0.30": [ { "comment_text": "", "digests": { "md5": "cfb8eaa836937e884a0f0bfff23b29c6", "sha256": "9a8e8574b8e6bba01274368a6838c894ceef5091ef4dd2c2979f87240cc65829" }, "downloads": -1, "filename": "PyGWP-0.0.30-py2-none-any.whl", "has_sig": false, "md5_digest": "cfb8eaa836937e884a0f0bfff23b29c6", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7864, "upload_time": "2019-03-23T09:02:37", "url": "https://files.pythonhosted.org/packages/5b/a2/d1dba288d54f23442eccf339de608547e9f8cc866f544f8064063ebeee76/PyGWP-0.0.30-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f376991efe59d2481c7220d1602718f", "sha256": "a13efa58afe062e8fbbe42a14b4d3d7f9dac97e949dea8f834095ce6ee1e413e" }, "downloads": -1, "filename": "PyGWP-0.0.30.tar.gz", "has_sig": false, "md5_digest": "0f376991efe59d2481c7220d1602718f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5862, "upload_time": "2019-03-23T09:02:39", "url": "https://files.pythonhosted.org/packages/95/09/a3b2a8b194352ea0c2fd0c4ed169ccc19d311c97fc476724e8d23bbacf13/PyGWP-0.0.30.tar.gz" } ], "0.0.31": [ { "comment_text": "", "digests": { "md5": "a878099c79400e5fd36fce6ca5af46c4", "sha256": "09edde2a1726bbe8be5e39b3a742e452bfab64c3b4a18f993e1812ed51f82dbd" }, "downloads": -1, "filename": "PyGWP-0.0.31-py2-none-any.whl", "has_sig": false, "md5_digest": "a878099c79400e5fd36fce6ca5af46c4", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7864, "upload_time": "2019-04-14T11:27:41", "url": "https://files.pythonhosted.org/packages/2e/f5/d124772ca33df5d33a437df398a123cccc3d9235daec5060cdf9dd0d98a8/PyGWP-0.0.31-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b7b27518bf3d5764917b1a6c258f681e", "sha256": "43d674b9fc9cb77bfe319c020bedf996740bf5a02b41042840a124a73eb0166c" }, "downloads": -1, "filename": "PyGWP-0.0.31.tar.gz", "has_sig": false, "md5_digest": "b7b27518bf3d5764917b1a6c258f681e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5777, "upload_time": "2019-04-14T11:27:42", "url": "https://files.pythonhosted.org/packages/87/51/e0e28bab0d6b811d67aeb96c63ec5191e2375ecb5db5783e6a041c7b6481/PyGWP-0.0.31.tar.gz" } ], "0.0.32": [ { "comment_text": "", "digests": { "md5": "baa117425fadbdae59d5c348f3d77265", "sha256": "82805608d30a3aa0fbf9dc0e5cc23942c3ca030de853e7a23e8cfdac64ee8ffc" }, "downloads": -1, "filename": "PyGWP-0.0.32-py2-none-any.whl", "has_sig": false, "md5_digest": "baa117425fadbdae59d5c348f3d77265", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8037, "upload_time": "2019-04-14T11:31:16", "url": "https://files.pythonhosted.org/packages/cf/b0/f2cea34b1c97918e29cc6e787fbc178e7db2ec628accded3eb1bbcc9a418/PyGWP-0.0.32-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fa99cb338ad7907cb3e304084262e96b", "sha256": "0becb9f7e17418e2e965dd167bfbfb9560b8b10d5be881a75a30b3dec16ac916" }, "downloads": -1, "filename": "PyGWP-0.0.32.tar.gz", "has_sig": false, "md5_digest": "fa99cb338ad7907cb3e304084262e96b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5966, "upload_time": "2019-04-14T11:31:17", "url": "https://files.pythonhosted.org/packages/a1/c4/c026d3022318e62c57e8a5ab4eee37b264450fa29973cd8fdf8e55ec5449/PyGWP-0.0.32.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "baa117425fadbdae59d5c348f3d77265", "sha256": "82805608d30a3aa0fbf9dc0e5cc23942c3ca030de853e7a23e8cfdac64ee8ffc" }, "downloads": -1, "filename": "PyGWP-0.0.32-py2-none-any.whl", "has_sig": false, "md5_digest": "baa117425fadbdae59d5c348f3d77265", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8037, "upload_time": "2019-04-14T11:31:16", "url": "https://files.pythonhosted.org/packages/cf/b0/f2cea34b1c97918e29cc6e787fbc178e7db2ec628accded3eb1bbcc9a418/PyGWP-0.0.32-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fa99cb338ad7907cb3e304084262e96b", "sha256": "0becb9f7e17418e2e965dd167bfbfb9560b8b10d5be881a75a30b3dec16ac916" }, "downloads": -1, "filename": "PyGWP-0.0.32.tar.gz", "has_sig": false, "md5_digest": "fa99cb338ad7907cb3e304084262e96b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5966, "upload_time": "2019-04-14T11:31:17", "url": "https://files.pythonhosted.org/packages/a1/c4/c026d3022318e62c57e8a5ab4eee37b264450fa29973cd8fdf8e55ec5449/PyGWP-0.0.32.tar.gz" } ] }