Skip to content

Processor for kernel density estimation #6

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion travis.yml → .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ before_install:
install:
- export CPLUS_INCLUDE_PATH=/usr/include/gdal
- export C_INCLUDE_PATH=/usr/include/gdal
- pip install git+https://github.com/OpenDataAnalytics/gaia.git@basegaia#egg=gaia
- pip install git+https://github.com/OpenDataAnalytics/gaia.git#egg=gaia
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- pip install -e .
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __getattr__(cls, name):
MOCK_MODULES = ['pysal', 'scipy', 'gdal', 'gdalconst', 'osgeo', 'ogr', 'osr',
'osgeo.gdal_array', 'numpy', 'pandas', 'geopandas', 'psycopg2',
'scikit-image', 'skimage', 'skimage.graph', 'numpy.ma',
'matplotlib', 'matplotlib.pyplot']
'matplotlib', 'matplotlib.pyplot', 'scipy.stats', 'gdalnumeric']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

# -- General configuration ------------------------------------------------
Expand Down
202 changes: 188 additions & 14 deletions docs/examples/gaia_processes.html

Large diffs are not rendered by default.

186 changes: 167 additions & 19 deletions docs/examples/gaia_processes.ipynb

Large diffs are not rendered by default.

32 changes: 29 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,37 @@ Gaia Density Computations Plugin
================================

This is a plugin for Gaia (https://github.com/OpenDataAnalytics/gaia) that
calculates the point density of a dataset given a raster grid of a specified size (in columns and rows).
The current implementation performs a simple calculation of adding the number of points within each grid cell.
calculates the point density of a dataset given a raster grid of a specified size (in columns and rows),
using one of the following processes:

* `SimpleDensityProcess <gaia_densitycomputations.html#gaia_densitycomputations.processes.SimpleGridDensityProcess>`__

* Calculate point density by adding the number of points within each grid cell.

* Required input: a vector dataset containing points

* Optional arguments:

* width: Width of output image in pixels (default=1024)

* `Example <gaia_processes.html#Simple-Grid-Density-Process>`__

* `KernelDensityProcess <gaia.geo.html#gaia.geo.processes_vector.BufferProcess>`__

* Calculates point density using a Gaussian kernel density function.

* Required input: a vector dataset containing points

* Optional arguments:

* width: Width of output image in pixels (default=1024)

* weight: Column of vector dataset, with integer values. Points will be multiplied by this value.

* bandwidth: The method used to calculate the kernel density estimator bandwidth. Valid values are 'scott' (default), 'silverman', or a numerical value.

* `Example <gaia_processes.html#Kernel-Density-Process>`__

An example of how to use this plugin can be found `here <gaia_processes.html>`__.

Installation
-----------------
Expand Down
Loading