Skip to main content

Package for making zones of armed conflicts.

Project description

Wzone is a package for generating zones of armed conflicts. The package contains functionalities for querying and creating conflict zones in the ESRI ASCII raster format. The methodological details can be found here (TBD). The package greatly relies on the UCDPGED (version 17.1) compiled by the Uppsala Conflict Data Program.

Installing

Install and update using pip:

pip install wzone

An Example

import wzone
import tempfile

# list of UCDPGED conflict IDs relevant to state-based violence in Somalia
somalia_ids = wzone.find_ids(country='Somalia', type_of_violence=1)   ### [329, 337, 418, 13646]

# Yearly sequence of dates from the first to the last events for each conflict
somalia_dates = wzone.find_dates(ids=somalia_ids, interval='year')   ### somalia_dates[1][0] == '1989-01-01'

# select a test case
test_id = 337
test_date = '2010-01-01'

# create war zones
tmp_dir = tempfile.mkdtemp()
somalia_path = wzone.gen_wzones(dates=test_date, ids=test_id, out_dir=tmp_dir)
print somalia_path

# You can continue this example with a variety of functions in other GIS packages.
### For arcpy users, refer to arcpy.ASCIIToRaster_conversion function.
### For gdal users, refer to gdal.Open function.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wzone-0.2.4.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wzone-0.2.4-py2-none-any.whl (8.4 MB view details)

Uploaded Python 2

File details

Details for the file wzone-0.2.4.tar.gz.

File metadata

  • Download URL: wzone-0.2.4.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/2.7.12

File hashes

Hashes for wzone-0.2.4.tar.gz
Algorithm Hash digest
SHA256 f7f9e1bd65207a5c8b7345169e9feb2fe37c244220228d443b263b4ed82bef27
MD5 46ddeb06222b4ad99ada7bf97bfff009
BLAKE2b-256 39aea5c82744a9a65c186d3cd71a29c2351465bc2367ed554ca1bd3788b908ac

See more details on using hashes here.

File details

Details for the file wzone-0.2.4-py2-none-any.whl.

File metadata

  • Download URL: wzone-0.2.4-py2-none-any.whl
  • Upload date:
  • Size: 8.4 MB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/2.7.12

File hashes

Hashes for wzone-0.2.4-py2-none-any.whl
Algorithm Hash digest
SHA256 a38b33434f17e0f8d6bc7cd1a8fb4c297c7be90dc365c56fba57f1cb07564aa8
MD5 b04aca2a6982caf3bda21cb3d60dca0e
BLAKE2b-256 bca8b66b23b4a9c659b2031b8cfbf7b891b2cbbc12e50ada80ebd38ad54df613

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page