{ "info": { "author": "fitnr", "author_email": "contact@fakeisthenewreal.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "breaks\n======\n\nCommand line tool for adding data classes to geodata files.\n\nBuilt on top of `Fiona `__ and\n`Pysal `__\n`mapclassify `__.\n\nInstall\n-------\n\nRequires `GDAL `__. `Numpy `__\nand Pysal will be installed if not available.\n\n::\n\n pip install breaks\n\nThese are the breaks\n--------------------\n\n::\n\n Usage: breaks [OPTIONS] input data-field output\n\n Write a geodata file with bins based on a data field\n\n Options:\n -m, --method METHOD Binning method:\n equal_interval\n fisher_jenks\n jenks_caspall\n jenks_caspall_forced\n jenks_caspall_sampled\n max_p_classifier\n maximum_breaks\n natural_breaks\n quantiles (default)\n -b, --bin-field FIELD name of new field\n -n, --norm-field FIELD Normalize (divide) bin-field by this name field\n -k COUNT Number of bins (default: 5)\n -B, --bins TEXT Comma-separated list of breaks (a series of upper-\n bounds)\n -i, --id-field FIELD If given, only write this field, bin-field, and\n data-field (and norm-field, if given).\n --version Show the version and exit.\n --help Show this message and exit.\n\nAdd quintile bins on 'fieldname':\n\n::\n\n breaks data.shp fieldname data_binned.shp\n\nThis writes a file called ``data_binned.shp`` which is a copy of\n``data.shp``, but with an additional ``bin`` field, which contains a\nnumber from 0 to 4 (it will contain ``NULL`` values for rows with\nmissing data).\n\nAdd decile bins on 'fieldname':\n\n::\n\n breaks -k 10 data.shp fieldname data_binned.geojson\n\nAdd five\n`Fisher-Jenks `__\nbins on 'fieldname':\n\n::\n\n breaks --method fisher_jenks data.json fieldname data_binned.json\n\nAdd decile bins on 'fieldname' to a field called 'mybin':\n\n::\n\n breaks --bin-field mybin data.geojson fieldname data_binned.geojson\n\nDivide one field by another. If you have more complicated manipulations\nyou would like to work, alter your data with ``ogr2ogr`` or another\ntool.\n\n::\n\n # Calculates bins for population / area\n breaks data.geojson population data_binned.geojson --norm-field area\n\nAdd custom bins on 'fieldname':\n\n::\n\n breaks --bins 50,75,150,250,500 data.geojson fieldname data_binned.shp\n\n(Give the upper-bounds as a comma-separated list.)\n\nOnly write an ID field and the data fields:\n\n::\n\n breaks --id-field GEOID data.shp field1 data_lookup.shp\n\nLicense\n-------\n\nCopyright 2016 Neil Freeman. Available under the GNU Public License.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fitnr/breaks", "keywords": "gis geodata chloropleth", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "breaks", "package_url": "https://pypi.org/project/breaks/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/breaks/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/fitnr/breaks" }, "release_url": "https://pypi.org/project/breaks/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "calculate bins on spatial data", "version": "0.2.0" }, "last_serial": 2016949, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1151b313e58bf57a18c6575a284fb218", "sha256": "208c7514105522bda27bd0db0b2a713827b7f7527f4a486b00dbb2b6afbf440a" }, "downloads": -1, "filename": "breaks-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1151b313e58bf57a18c6575a284fb218", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6692, "upload_time": "2016-03-11T21:42:18", "url": "https://files.pythonhosted.org/packages/1f/f0/5feeca8db8ec946869442f6ab3f0ca57c41d4d814e90ceb458589efe0a64/breaks-0.1.0-py2.py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "473a015ac9f22db437f1b48597ac0380", "sha256": "543d43b16c94853ead77e7b594bb6459dd6a17917f899ab49b24b91b1afb46e5" }, "downloads": -1, "filename": "breaks-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "473a015ac9f22db437f1b48597ac0380", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7209, "upload_time": "2016-03-14T22:18:02", "url": "https://files.pythonhosted.org/packages/bd/76/e0c649c7daf9ac6e0ec7bb95caec15ac134c80f248cd81ff61e54188eb3d/breaks-0.1.1-py2.py3-none-any.whl" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "351d23e5ea6954f8182d7c4540e31f29", "sha256": "af24e36aafeb056acee9c25bb2282ce5d01e3801ef972f6b0d7ff06a628f62d1" }, "downloads": -1, "filename": "breaks-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "351d23e5ea6954f8182d7c4540e31f29", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7873, "upload_time": "2016-03-20T15:07:42", "url": "https://files.pythonhosted.org/packages/0b/8f/ac3506d07f34fa3417aa6b907e84037e173316ed3843ce6b9b354b83604f/breaks-0.2.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "351d23e5ea6954f8182d7c4540e31f29", "sha256": "af24e36aafeb056acee9c25bb2282ce5d01e3801ef972f6b0d7ff06a628f62d1" }, "downloads": -1, "filename": "breaks-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "351d23e5ea6954f8182d7c4540e31f29", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7873, "upload_time": "2016-03-20T15:07:42", "url": "https://files.pythonhosted.org/packages/0b/8f/ac3506d07f34fa3417aa6b907e84037e173316ed3843ce6b9b354b83604f/breaks-0.2.0-py2.py3-none-any.whl" } ] }