{ "info": { "author": "Joseph Stachelek", "author_email": "stachel2@msu.edu", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# gssurgo\n\n[![PyPiVersion](https://img.shields.io/pypi/v/gssurgo.svg)](https://pypi.python.org/pypi/gssurgo/) [![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) [![PYPI Downloads](https://img.shields.io/pypi/dm/gssurgo.svg)](https://pypistats.org/packages/gssurgo) [![Build Status](https://travis-ci.org/jsta/gssurgo.svg?branch=master)](https://travis-ci.org/jsta/gssurgo)\n\nThe `gssurgo` python package enables open source workflows with the `gSSURGO` dataset. It provides:\n\n* A shell script `extract_gssurgo_tif` for generating stand-alone `gSSURGO` grids. **These raster grids are distributed within file geodatabase archives and can only be extracted using ArcGIS, the fileGDB driver, or (in the case of `extract_gssurgo_tif`) the `arcpy` python package.** \n\n* Python functions for converting Geodatabase files to geopackage format. \n\n* Python functions for returning the results of specific `SQL` queries of `gSSURGO` data.\n\n* Python functions for referencing query results to corresponding (raster) grid cells.\n\n## Prereqs\n\n* The intial `tif` (grid) extraction step requies the `arcpy` python module. This step assumes that a python executable linked to `arcpy` can be found at `C:\\Python27\\ArcGIS10.3\\python.exe`. Edit [bin/extract_gssurgo_tif](bin/extract_gssurgo_tif) to enable alternate locations.\n\n* Remaining operations require the dependencies listed in [environment.yml](environment.yml) and [requirements.txt](requirements.txt). If using Anaconda, make sure you have the **64bit** version. You can install an Anaconda virtual environment with:\n\n```\nconda env create -n gssurgo -f environment.yml\nsource activate gssurgo\n```\n\n## Installation\n\n```\n# local install\n# pip install -e . \n\n# development install \npip install git+git://github.com/jsta/gssurgo.git\n\n# development upgrade\n# pip install --upgrade git+git://github.com/jsta/gssurgo.git\n```\n\n## Usage\n\nA demonstration workflow using the `gssurgo` python package can be found at: https://github.com/jsta/gssurgo_data\n\n### 1. Extract tif and build gpkgs\n\n```\nextract_gssurgo_tif 'path/to/gSSURGO_STATE.gdb/MapunitRaster_10m' 'path/to/STATE.tif'\n```\n\n```py\nimport gssurgo\ngssurgo.build_gpkg(\"path/to/gSSURGO_STATE.gdb\", \"path/to/gSSURGO_STATE.gpkg\")\n```\n\n### 2. Generate an Area of Interest (AOI)\n\n```py\ngssurgo.aoi(in_raster_path = \"tifs\", out_raster = \"path/to/aoi.tif\", xmax = -88.34945, xmin = -88.35470, ymin = 38.70095, ymax = 38.70498)\n```\n\n### 3. Pull specific variable and merge with corresponding tif\n\n```py\ngssurgo.query_gpkg(src_tif = \"tests/aoi.tif\", gpkg_path = \"path/to/gkpgs/\", sql_query = 'SELECT mukey, nonirryield_r FROM mucropyld WHERE (cropname = \"Corn\")', out_raster = \"tests/aoi_results.tif\")\n\ngssurgo.query_gpkg(src_tif = \"tests/aoi.tif\", gpkg_path = \"path/to/gpkgs/\", sql_query = 'SELECT mukey, nonirryield_r FROM mucropyld WHERE (cropname = \"Corn\")', out_raster = \"tests/aoi_results.tif\")\n\n```\n\n> The `sql_query` parameter must give a two column result of `mukey` and `some_variable` where no `mukey` entries are duplicated.\n\n### 4. Visualize output\n\n```py\ngssurgo.viz_numeric_output(\"path/to/aoi_results.tif\", \"path/to/aoi_results.png\")\n```\n\n![](scratch/nonirryield_r.png)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jsta/gssurgo", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "gssurgo", "package_url": "https://pypi.org/project/gssurgo/", "platform": "", "project_url": "https://pypi.org/project/gssurgo/", "project_urls": { "Homepage": "https://github.com/jsta/gssurgo" }, "release_url": "https://pypi.org/project/gssurgo/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "Python toolbox enabling an open source gSSURGO workflow", "version": "0.0.5" }, "last_serial": 5268844, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "36f29bd768ba5cf2662b9198eaca510f", "sha256": "15f20521d724f4819b88977458531df2f2bd849bf257e175c11b84b6874c5ec3" }, "downloads": -1, "filename": "gssurgo-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "36f29bd768ba5cf2662b9198eaca510f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5234, "upload_time": "2018-08-16T01:25:24", "url": "https://files.pythonhosted.org/packages/7d/5c/ff3c766f2593d4034513c7ca45a71cce944ec670f7547ac949a4217bec91/gssurgo-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "28fee51915fbd837285b99d90457d79f", "sha256": "f462aea70adf35e5dfae510b10915a43bdf81c4f06a37f288a1b3df50aef3f44" }, "downloads": -1, "filename": "gssurgo-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "28fee51915fbd837285b99d90457d79f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4839, "upload_time": "2018-08-16T01:21:26", "url": "https://files.pythonhosted.org/packages/ec/da/976dca6cfeb6c6a8d15fce29e76e0a6b1a3d103a4f634819323a84ee48be/gssurgo-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "452a23519adb1628ffda2e4250c2bd65", "sha256": "8e58fdea411ab1e64255fd38b5b7630bb35e4d9b18d5a29c613e27e815836cb8" }, "downloads": -1, "filename": "gssurgo-0.0.1.tar.gz", "has_sig": false, "md5_digest": "452a23519adb1628ffda2e4250c2bd65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3876, "upload_time": "2018-08-16T01:21:27", "url": "https://files.pythonhosted.org/packages/30/ec/6acdd86f5b426df73deff58564f669e73e8bf5af1ba37c8acbcedda4b61f/gssurgo-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "6f3ff9060d6ab68b9d7841e7d5439fb7", "sha256": "bb90a13ca478bc6760e33556f41785ea2d7a5eefc389e5c9b5a0803ed3282d3c" }, "downloads": -1, "filename": "gssurgo-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6f3ff9060d6ab68b9d7841e7d5439fb7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5687, "upload_time": "2018-08-16T02:12:15", "url": "https://files.pythonhosted.org/packages/60/3c/534928e88140d1d9f07a59f6f1f6c8c31349d0a6dbe54fe8df60029a0c79/gssurgo-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5438866c4aa080e8d115360d2e8a42fd", "sha256": "634c6c9c4443e68fa378ae86d69123ef4322ffd1ee5b92a15a1b181be0ac1e38" }, "downloads": -1, "filename": "gssurgo-0.0.2.tar.gz", "has_sig": false, "md5_digest": "5438866c4aa080e8d115360d2e8a42fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4139, "upload_time": "2018-08-16T02:12:16", "url": "https://files.pythonhosted.org/packages/0c/b7/ce86abd496def5cc434788e6dc1febce523ad7cec798dcf61e8951a44e64/gssurgo-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e4f603c75336cd1251da827205eba142", "sha256": "eda3c90bbdfeaab93b73f0ccd66859251cef2b1f835f53498cf45699ca1ddb1b" }, "downloads": -1, "filename": "gssurgo-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e4f603c75336cd1251da827205eba142", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3325674, "upload_time": "2018-08-17T17:19:37", "url": "https://files.pythonhosted.org/packages/41/d2/81764adcb956cbfc820f71b258e73d7ba4202ba2523250dd04c07f692e07/gssurgo-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "29146037cea66ebf053b2f13c694e1f9", "sha256": "c2b9d4e756ba1348d3ea98facbd9d1a7fd04c05aba424ebbbf0c3bf4f2ec8ebc" }, "downloads": -1, "filename": "gssurgo-0.0.3.tar.gz", "has_sig": false, "md5_digest": "29146037cea66ebf053b2f13c694e1f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3325349, "upload_time": "2018-08-17T17:19:40", "url": "https://files.pythonhosted.org/packages/e0/31/8dc0b6f1eb87ba76df6af2b00c68e49e1b5d88615817b0d63cea062a129c/gssurgo-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "05b57ec5f82e9c700d52d13a8116c2bd", "sha256": "c724a9d63c2a37cd8cf09dc86e52b799ead0f59670f7faad9bdf5683d73808ad" }, "downloads": -1, "filename": "gssurgo-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "05b57ec5f82e9c700d52d13a8116c2bd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3325866, "upload_time": "2018-09-02T12:33:35", "url": "https://files.pythonhosted.org/packages/41/4a/701cf89a504297d59c11dce22d633f1de5ae46c1bfc4eda0cbea50f25611/gssurgo-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "470cd73f90badbc1cd2164863ab13152", "sha256": "2847b5b5635d83cb0d5523222d4758d8c1ccca32a2a5498eb253aec7184ecf8d" }, "downloads": -1, "filename": "gssurgo-0.0.4.tar.gz", "has_sig": false, "md5_digest": "470cd73f90badbc1cd2164863ab13152", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3325378, "upload_time": "2018-09-02T12:33:41", "url": "https://files.pythonhosted.org/packages/b0/06/0a9edbc1d3790468897171b7d5e02f3e37b62446a64381ebd05afdd1cbcc/gssurgo-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "8eb54b7929502d6bc92a15eaae333534", "sha256": "9f9be9c4fc47c0cd743902b28e830d0a03f9b5aa8396c4bb5c360cc392272b0e" }, "downloads": -1, "filename": "gssurgo-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "8eb54b7929502d6bc92a15eaae333534", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3326881, "upload_time": "2019-05-14T18:39:41", "url": "https://files.pythonhosted.org/packages/03/7a/72470abfa2648088d5a71b294396c358e4c48c8677bd6bb2141c68f8178b/gssurgo-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "60109d8eca68a1e5e39d6d3a8f2e8d5b", "sha256": "4257ea0683a448cdb7adc09e3ef65b5132f29238ed277e92a7d99e577a292d77" }, "downloads": -1, "filename": "gssurgo-0.0.5.tar.gz", "has_sig": false, "md5_digest": "60109d8eca68a1e5e39d6d3a8f2e8d5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3327055, "upload_time": "2019-05-14T18:39:50", "url": "https://files.pythonhosted.org/packages/9a/a8/aa27b211f4d2f21c760ccf4b1bbbfbc569feac6b64a1cd02550d8a1a5acb/gssurgo-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8eb54b7929502d6bc92a15eaae333534", "sha256": "9f9be9c4fc47c0cd743902b28e830d0a03f9b5aa8396c4bb5c360cc392272b0e" }, "downloads": -1, "filename": "gssurgo-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "8eb54b7929502d6bc92a15eaae333534", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3326881, "upload_time": "2019-05-14T18:39:41", "url": "https://files.pythonhosted.org/packages/03/7a/72470abfa2648088d5a71b294396c358e4c48c8677bd6bb2141c68f8178b/gssurgo-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "60109d8eca68a1e5e39d6d3a8f2e8d5b", "sha256": "4257ea0683a448cdb7adc09e3ef65b5132f29238ed277e92a7d99e577a292d77" }, "downloads": -1, "filename": "gssurgo-0.0.5.tar.gz", "has_sig": false, "md5_digest": "60109d8eca68a1e5e39d6d3a8f2e8d5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3327055, "upload_time": "2019-05-14T18:39:50", "url": "https://files.pythonhosted.org/packages/9a/a8/aa27b211f4d2f21c760ccf4b1bbbfbc569feac6b64a1cd02550d8a1a5acb/gssurgo-0.0.5.tar.gz" } ] }