aleaf/SFR — pull request #82 by aleaf (2014-12-18 18:49:21+00:00)
Title: Updates

Guys,
I did a little troubleshooting for Brian Clark to figure out some large elevation changes he was seeing in his SFR network (they ended up being dams). I made a few changes to the code in the process. Disutil bombed trying to read his dis file so I figured it was a good opportunity to start using flopy to read the dis file instead. May require a little babysitting as flopy evolves, but seems like the way to go.

Also worked on some methods in the Elevations.py file, which does smoothing of elevations and other post processing outside of the main program (working with only the Mat1 and Mat2 files).

Let me know if you have any questions.

**SFR_classes**

* Use flopy to read discretization files instead of distutil
* and shifted (most) of this to single method in SFRdata.__init__()
* other minor fixes related to pathing

**improvements to SFR Shapefile class in sfr_plots**
(creates geometries from scratch instead of relying on other shapefiles, faster than previous shapefile writers and also has more attribute information- you can color the SFR cells by outlet, for example, to check for routing defects, or color the cells by log slope, to see if large drops coincide with control structures)
* use flopy

**improvments to Elevations class**

(smooths interior elevations independent of sfr_classes, working off of mats 1 and 2; also maps all outsegs to check routing and plot continuous streambed profiles across multiple segments)
* added loop to factor out duplicate segment sequences
* added plotting of segment numbers on segment sequence profiles

![image](https://cloud.githubusercontent.com/assets/3923387/5493691/c5949e2e-86b2-11e4-825b-3adb64e8387f.png)