{ "info": { "author": "Wietze Suijker", "author_email": "wietze.suijker@nelen-schuurmans.nl", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Programming Language :: Python" ], "description": "lizard-raster-reducer\n==========================================\n\nIntroduction\n------------\n\nLizard raster reducer is a tool to auto-generate regional reports from Lizard data.\nIt \"reduces\" raster data to aggregate statistics for multiple regions.\nLizard API endpoints are used to retrieve data. The main ones are search, rasters, regions and raster-aggregates.\nTo prevent API overload, the tool creates and fills a 'lizard_cache' folder by default.\n\nMultiple rasters can be specified. The first raster will act as the scope raster.\nThe scope raster determines the spatial extent and temporal behaviour of the result. Rasters can be temporal or static. Rasters can contain continuous values or discrete classes. Regions of one region type are used for the result. Regions within the spatial extent of the scope raster are used in the result. A configuration file is used to customize the output.\n\nThe results are aggregate numbers of data per region.\nWhen the data type is interval or ratio, the average of the region is returned.\nWhen data are classes, the area fraction per class are returned.\nThe output format can be specified to be CSV, JSON or HTML.\n\n\nInstallation\n------------\n\nWe can be installed with::\n\n $ pip install lizard-raster-reducer\n\nUsage (iPython notebook example)\n--------------------------------\n\n`This example notebook (link) `_ exemplifies how the Lizard raster reducer can be used.\n\nUsage (command line example)\n----------------------------\n\nCreate .yml configuration files from templates::\n\n $ run-lizard-raster-reducer\n\n1. Specify reducer options in reducer_options.yml.\n\n2. Specify Lizard credentials in credentials.yml\n\n3. Review optional arguments to pass: run-lizard-raster-reducer -h\n\n4. Run the code: run-lizard-raster-reducer\n\n5. Find result(s) in local sub-folder /reducer_results\n\n\nDevelopment installation of this project itself\n-----------------------------------------------\n\nWe're installed with `pipenv `_, a handy wrapper\naround pip and virtualenv. Install that first with ``pip install\npipenv``. Then run::\n\n $ PIPENV_VENV_IN_PROJECT=1 pipenv --three\n $ pipenv install --dev\n\nThere will be a script you can run like this::\n\n $ pipenv run run-lizard-raster-reducer\n\nIt runs the `main()` function in `lizard-raster-reducer/scripts.py`,\nadjust that if necessary. The script is configured in `setup.py` (see\n`entry_points`).\n\nIn order to get nicely formatted python files without having to spend manual\nwork on it, run the following command periodically::\n\n $ pipenv run black lizard_raster_reducer\n\nRun the tests regularly. This also checks with pyflakes, black and it reports\ncoverage. Pure luxury::\n\n $ pipenv run pytest\n\nThe tests are also run automatically `on travis-ci\n`_, you'll see it\nin the pull requests. There's also `coverage reporting\n`_ on\ncoveralls.io (once it has been set up).\n\nIf you need a new dependency (like `requests`), add it in `setup.py` in\n`install_requires`. Afterwards, run install again to actually install your\ndependency::\n\n $ pipenv install --dev\n\n\nChangelog of lizard-raster-reducer\n===================================================\n\n\n0.6 (2019-04-30)\n----------------\n\n- Options for hectares (besides fraction) and temporal range (besides last timesteps)\n\n\n0.5 (2019-04-11)\n----------------\n\n- Improved readme\n\n\n0.4 (2019-04-08)\n----------------\n\n- Notebook example to demonstrate usage\n\n\n0.3 (2019-04-08)\n----------------\n\n- Functionality to set regional alarms.\n\n\n0.2 (2019-03-27)\n----------------\n\n- First deploy to pypi.org.\n\n\n0.1 (2019-03-27)\n----------------\n\n- Initial project structure created with cookiecutter and\n https://github.com/nens/cookiecutter-python-template\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nens/lizard-raster-reducer", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "lizard-raster-reducer", "package_url": "https://pypi.org/project/lizard-raster-reducer/", "platform": "", "project_url": "https://pypi.org/project/lizard-raster-reducer/", "project_urls": { "Homepage": "https://github.com/nens/lizard-raster-reducer" }, "release_url": "https://pypi.org/project/lizard-raster-reducer/0.6/", "requires_dist": [ "pandas", "requests", "datetime", "pyyaml", "pytest ; extra == 'test'", "mock ; extra == 'test'", "pytest-cov ; extra == 'test'", "pytest-flakes ; extra == 'test'", "pytest-black ; extra == 'test'", "pyyaml ; extra == 'test'" ], "requires_python": "", "summary": "Lizard raster reducer is a tool to auto-generate regional reports from Lizard data.", "version": "0.6" }, "last_serial": 5211643, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "83ed927946a8bc78aad5b3f2fa413c5c", "sha256": "ac7dfe880072f3f745246a508bcb8629394b2efec1e9102bec025b176595274e" }, "downloads": -1, "filename": "lizard_raster_reducer-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "83ed927946a8bc78aad5b3f2fa413c5c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19530, "upload_time": "2019-03-27T13:45:57", "url": "https://files.pythonhosted.org/packages/4e/95/d6961b8040ee0096bb0b0640260fafb57d46cb03a14f41e1d9fcfa97f5e8/lizard_raster_reducer-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9ac6abc140acf9b8dfbea6450d6d2422", "sha256": "5086ba59ca2393c8f6d266bb458ab75e03d9972316dfe6575a5bd31a6b7b9a58" }, "downloads": -1, "filename": "lizard-raster-reducer-0.2.tar.gz", "has_sig": false, "md5_digest": "9ac6abc140acf9b8dfbea6450d6d2422", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13763, "upload_time": "2019-03-27T13:46:00", "url": "https://files.pythonhosted.org/packages/d0/99/9390730aa01a09210883a986de1f089338af14cd192a17ad3ae919f723fc/lizard-raster-reducer-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "4827ccbad31abf8cdb736224c1bcb952", "sha256": "920f614a4044945ea26d890a064112bea22f38c5d314538c8771d60b6697d6bf" }, "downloads": -1, "filename": "lizard_raster_reducer-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "4827ccbad31abf8cdb736224c1bcb952", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21178, "upload_time": "2019-04-08T08:57:11", "url": "https://files.pythonhosted.org/packages/50/c6/58a1d133734f4c64696cfdb4e9ccf34a71547e775614803952075bf4991d/lizard_raster_reducer-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b09d25f091791013d2ff5fa4d8e47926", "sha256": "07802a0745bdfec07bf147e60a8a4d406d039e968638780ae619519739142231" }, "downloads": -1, "filename": "lizard-raster-reducer-0.3.tar.gz", "has_sig": false, "md5_digest": "b09d25f091791013d2ff5fa4d8e47926", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15252, "upload_time": "2019-04-08T08:57:13", "url": "https://files.pythonhosted.org/packages/85/71/8f6add5f5ce5db57965eb0b45809976c8e9fa1a5112153135f433fc86809/lizard-raster-reducer-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "fa7f834bf3dacaa7ccb60b51289eb584", "sha256": "9486a5f7da3d379ff7e373c79fba9ddf459ef3fb4ff716faeee792607f2d6174" }, "downloads": -1, "filename": "lizard_raster_reducer-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "fa7f834bf3dacaa7ccb60b51289eb584", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21293, "upload_time": "2019-04-08T13:35:44", "url": "https://files.pythonhosted.org/packages/82/6f/9668c9d7c6369fb2ccc0863e94c9a494ab0699fee1a8ec5eb1a9a8a53cdc/lizard_raster_reducer-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6d477b4569ba1f0482d97bb0dbbd24b6", "sha256": "0c7b9eb04ba07979e0cd20407a74c57616673ab3a62f63ed9ad94f76fa763f43" }, "downloads": -1, "filename": "lizard-raster-reducer-0.4.tar.gz", "has_sig": false, "md5_digest": "6d477b4569ba1f0482d97bb0dbbd24b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15410, "upload_time": "2019-04-08T13:35:45", "url": "https://files.pythonhosted.org/packages/00/cc/8a4b3c3c27bf563276e2c2f48e95f843efca7a5227785ffefc00556ec636/lizard-raster-reducer-0.4.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "82591849a52f78d3e05b5720c1de4dcc", "sha256": "2803c3e3b5503f756899d1add4e4205c442fe1c8300c07fe93a0b9d4332803a2" }, "downloads": -1, "filename": "lizard_raster_reducer-0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "82591849a52f78d3e05b5720c1de4dcc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21612, "upload_time": "2019-05-01T06:44:14", "url": "https://files.pythonhosted.org/packages/1b/60/ec35b7d39c9a1d454e16c00ef91bb2d9a215a6a7b1766685d48b0ae9f79d/lizard_raster_reducer-0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "035c6e12ad65a93fdfefe9cbfc53f98a", "sha256": "a9dc6e33af6a2191b6fb939995db8719b3fdd86b64d624d3f8a84b013f450911" }, "downloads": -1, "filename": "lizard-raster-reducer-0.6.tar.gz", "has_sig": false, "md5_digest": "035c6e12ad65a93fdfefe9cbfc53f98a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15796, "upload_time": "2019-05-01T06:44:16", "url": "https://files.pythonhosted.org/packages/50/97/9bfe8f8514c345487f295b2085703c1b7aee43866145e2e45860e66500ef/lizard-raster-reducer-0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "82591849a52f78d3e05b5720c1de4dcc", "sha256": "2803c3e3b5503f756899d1add4e4205c442fe1c8300c07fe93a0b9d4332803a2" }, "downloads": -1, "filename": "lizard_raster_reducer-0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "82591849a52f78d3e05b5720c1de4dcc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 21612, "upload_time": "2019-05-01T06:44:14", "url": "https://files.pythonhosted.org/packages/1b/60/ec35b7d39c9a1d454e16c00ef91bb2d9a215a6a7b1766685d48b0ae9f79d/lizard_raster_reducer-0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "035c6e12ad65a93fdfefe9cbfc53f98a", "sha256": "a9dc6e33af6a2191b6fb939995db8719b3fdd86b64d624d3f8a84b013f450911" }, "downloads": -1, "filename": "lizard-raster-reducer-0.6.tar.gz", "has_sig": false, "md5_digest": "035c6e12ad65a93fdfefe9cbfc53f98a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15796, "upload_time": "2019-05-01T06:44:16", "url": "https://files.pythonhosted.org/packages/50/97/9bfe8f8514c345487f295b2085703c1b7aee43866145e2e45860e66500ef/lizard-raster-reducer-0.6.tar.gz" } ] }