Skip to main content

Homepages

Visit the Viridian Logic homepage at viridianlogic.com

Visit the home of RIOS on the web at naturalcapitalproject.org

Discuss

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!

Documentation

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

Dependencies

  • numpy

  • pandas

  • geopandas

  • fiona

  • rasterio > 1.0

  • shapely

  • pygeoprocessing ~= 0.3.3

Installation

pip install rios_preprocessor

Changelog

Version 0.2.3

  • Reference stream input (vector) projection verified against raster projection. Vector reprojected if necessary.

  • Minor PEP8 changes

Version 0.2.2

  • Began implementing routine to recover normalisation factors (flood objective only so far)

  • Minor bug fixes

Version 0.2.1

  • Refactored stream rasterization to use geopandas

  • Began introducing logging features (unfinished)

  • Permitted a riparian zone of zero width

  • Minor bug fixes

Version 0.2.0

  • Refactored and modularised code for increased usability

  • Raster projection checks added

  • Set deprecation warning for get_objectives_list

  • Minor bug fixes

Version 0.1.9

  • Fixed upslope source and riparian index getting affected by integer bug

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 files for rios_preprocessor 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rios_preprocessor 0.2.3
File Size Uploaded
rios_preprocessor-0.2.3.tar.gz 28.4 kB Details

Release files / rios_preprocessor-0.2.3.tar.gz

Download URL rios_preprocessor-0.2.3.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9494197bcda3b84f75b49f043dc32e71c87b358aa39394b4846d1d009db07d27
BLAKE2b-256 checksum
How to use checksums
47722156483e06e362502ff351dbf256237e646e2da64da36228651219f7e9bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

0.2.3 This release

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.9

1 release file

0.1.8

2 release files

0.1.7

2 release files

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page