Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Preprocessor for the Natural Capital Project's RIOS software package

Project Description


Visit the Viridian Logic homepage at

Visit the home of RIOS on the web at


Talk to us at Viridian Logic through our website

Looking for a place to ask questions about RIOS? Check out the Natural Capital Project forums!


rios_preprocessor is meant as a replacement for the ArcGIS python code that currently produces the inputs for the main RIOS program.

rios_preprocessor produces rasters of:

  • Downslope retention index
  • Upslope source
  • Riparian index
  • Slope index

that are used as input for the following RIOS objectives:

  • Erosion Control
  • Nitrogen Retention
  • Phosphorus
  • Flood Mitigation
  • Groundwater Recharge/Baseflow

Along the way, there are some additional tricks rios_preprocessor uses that may be useful in other contexts:

  • rasterizes an input shapefile river network and matches it to a (raster) DEM/DTM
  • identifies discontinuous river banks along a rasterized river
  • identifies the end points of rasterized rivers


  • numpy
  • pandas
  • geopandas
  • fiona
  • rasterio > 0.36
  • shapely
  • pygeoprocessing ~= 0.3.3


pip install rios_preprocessor


Version 0.1.8

  • Deprecated GDAL style transforms in line with rasterio > 0.36
  • Set upper limit on pygeoprocessing to retain flow algorithms
  • Minor bug fixes

Version 0.1.7

  • Minor bug fixes

Version 0.1.6

  • Implemented logging
  • PEP8 fixes

Version 0.1.5

  • Python 3 style print statement fixing
  • Cleaned up documentation
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
rios_preprocessor-0.1.8-py2-none-any.whl (26.4 kB) Copy SHA256 Checksum SHA256 py2 Wheel Oct 3, 2017
rios_preprocessor-0.1.8.tar.gz (26.2 kB) Copy SHA256 Checksum SHA256 Source Oct 3, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting