Skip to main content

TOBLER: Areal Interpolation

Project description

CI Tests codecovPyPI - Python Version PyPI Conda (channel only) GitHub commits since latest release (branch) DOI

PySAL tobler

tobler is a python package for areal interpolation, dasymetric mapping, change of support, and small area estimation. It provides a suite of tools with a simple interface for transferring data from one polygonal representation to another. Common examples include standardizing census data from different time periods to a single representation (i.e. to overcome boundary changes in successive years), or the conversion of data collected at different spatial scales into shared units of analysis (e.g. converting zip code and neighborhood data into a regular grid). tobler is part of the PySAL family of packages for spatial data science and provides highly performant implementations of basic and advanced interpolation methods, leveraging pygeos to optimize for multicore architecture. The package name is an homage to the legendary quantitative geographer Waldo Tobler, a pioneer in geographic interpolation methods, spatial analysis, and computational social science.

DC tracts to hexgrid

Interpolation Methods

tobler provides functionality for three families of spatial interpolation methods. The utility of each technique depends on the context of the problem and varies according to e.g. data availability, the properties of the interpolated variable, and the resolution of source and target geometries. For a further explanation of different interpolation techniques, please explore some of the field's background literature

Area Weighted

Areal interpolation uses the area of overlapping geometries to apportion variables. This is the simplest method with no additional data requirements, aside from input and output geometries, however this method is also most susceptible to the modifiable areal unit problem.

Dasymetric

Dasymetric interpolation uses auxiliary data to improve estimation, for example by constraining the areal interpolation to areas that are known to be inhabited. Formally, tobler adopts a binary dasymetric approach, using auxiliary data to define which land is available or unavailable for interpolation. The package can incorporate additional sources such as

  • raster data such as satellite imagery that define land types
  • vector features such as roads or water bodies that define habitable or inhabitable land

either (or both) of which may be used to help ensure that variables from the source geometries are not allocated to inappropriate areas of the target geometries. Naturally, dasymetric approaches are sensitive to the quality of ancillary data and underlying assumptions used to guide the estimation.

Model-based

Model-based interpolation uses [spatial] statistical models to estimate a relationship between the target variable and a set of covariates such as physical features, administrative designations, or demographic and architectural characteristics. Model-based approaches offer the ability to incorporate the richest set of additional data, but they can also difficult to wield in practice because the true relationship between variables is never known. By definition, some formal assumptions of regression models are violated because the target variable is always predicted using data from a different spatial scale than it was estimated.

Extensions

tobler is under active development and will continue to incorporate emerging interpolation methods as they are introduced to the field. We welcome any and all contributions and if you would like to propose an additional method for adoption please raise an issue for discussion or open a new pull request!

Charleston zipcodes to tracts

raster example

Installation

$ conda env create -f environment.yml
$ conda activate tobler 
$ python setup.py develop

Contribute

PySAL-tobler is under active development and contributors are welcome.

If you have any suggestion, feature request, or bug report, please open a new issue on GitHub. To submit patches, please follow the PySAL development guidelines and open a pull request. Once your changes get merged, you’ll automatically be added to the Contributors List.

License

The project is licensed under the BSD license.

Funding

Award #1733705 Neighborhoods in Space-Time Contexts

Award #1831615 Scalable Geospatial Analytics for Social Science Research

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

tobler-0.6.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

tobler-0.6.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file tobler-0.6.0.tar.gz.

File metadata

  • Download URL: tobler-0.6.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for tobler-0.6.0.tar.gz
Algorithm Hash digest
SHA256 bb5d404648e4b18ac6c652db7c07abab9e8854b26acf619a9998e1e2ae2748c0
MD5 c9a4c12fab223cf48a4724516df3470a
BLAKE2b-256 b8cc6783b3e9566dd5d1df4fd75df55311fc0019cb7ea0b91f0c43754eb6c885

See more details on using hashes here.

Provenance

File details

Details for the file tobler-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: tobler-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for tobler-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b019ea0290febd97bca9b5eefe0d98e6b0fb0a1c868400772b5d03086945ca6
MD5 111a36a8b6525d05f88096272b7e639b
BLAKE2b-256 e4db691998ed2c7c4b0502da673af0f20fc120f9b2aa1718f95dde4e4240184e

See more details on using hashes here.

Provenance

Supported by

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