Coder Social home page Coder Social logo

aouazad / crosssections_python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heyharry3636/crosssections_python

0.0 1.0 0.0 7.18 MB

Python script and tools to compute cross-sections along a streamline in python and ArcGIS.

License: MIT License

Python 100.00%

crosssections_python's Introduction

Cross-Sections (crossSections_05262016.py)

Synopsis

This [script] (crossSections_05262016.py) was developed to automate the process of drawing cross-sections through stream centerline using ArcGIS. The cross-sections are perpendicular to the streamline while within the channels banks, then become perpendicular to the valley walls once out of the banks.

CrossSections_python

Script Inputs

For the ArcGIS script execution, the following inputs are needed:

  • Stream centerline (route [M] enabled)
  • Optional regional curve information relating drainage area to a bankfull width
  • Digitized valley walls (left/right)
  • Flow accumulation layer (derived in previous hydrologic processing of the DEM)

This [cross-sections presentation] (CrossSectionsScript.pdf) is an overview of the script parameters and execution.

Motivation

Previously, these cross-sections had to be manually digitized by the user in GIS, which took a while when you had a large watershed. The script I wrote significantly reduces the time to create these cross-sections throughout a watershed. Other scripts have performed a similar task, but I need my cross-sections to be perpendicular to the stream channel wihtin the channel banks, and perpendicular to the valley walls once out of the banks.

Installation

Download the [ArcToolbox and script (.zip file)] (CrossSections.zip) to try in ArcGIS.

Tests

This script was developed and tested with ArcGIS 10.2, Python 2.7

Python modules needed: acrpy, math, sys, traceback

Contributors

Michael Harris is the author of this script.

[StackOverflow] (http://stackoverflow.com/users/4530995/michael-harris)

[LinkedIN] (https://www.linkedin.com/in/michael-harris-366b0060/)

Acknowledgements

Some code snippets and ideas were obtained from Mark Ellefson 'Classify Stream Type' script and 'Perpendicular Transects' script by Mateus Ferreira.

License

This code is available under the [MIT License.] (LICENSE.txt)

crosssections_python's People

Contributors

heyharry3636 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.