EcohydroLib  1.29
Functions | Variables
ecohydrolib.solim.inference Namespace Reference

Infer soil properties from SSURGO and terrain data using SOLIM framework. More...

Functions

def inferSoilPropertiesForSSURGOAndTerrainData
 Infer soil properties from SSURGO and terrain data using SOLIM framework. More...
 

Variables

list ATTRIBUTES = ['avgSand','avgSilt','avgClay','avgKsat','avgPorosity']
 
string ATTRIBUTE_SEP = ','
 
string FILE_EXT = 'tif'
 

Detailed Description

Infer soil properties from SSURGO and terrain data using SOLIM framework.

This software is provided free of charge under the New BSD License. Please see the following license information:

Copyright (c) 2013, University of North Carolina at Chapel Hill All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF NORTH CAROLINA AT CHAPEL HILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Author
Brian Miles brian.nosp@m._mil.nosp@m.es@un.nosp@m.c.ed.nosp@m.u

Function Documentation

def ecohydrolib.solim.inference.inferSoilPropertiesForSSURGOAndTerrainData (   config,
  outputDir,
  shpFilepath,
  demFilepath,
  featureAttrList = ATTRIBUTES 
)

Infer soil properties from SSURGO and terrain data using SOLIM framework.

Parameters
configConfigParser containing the section 'SOLIM' and option 'PATH_OF_SOLIM'
outputDirString representing the absolute/relative path of the directory into which shapefile should be written
shpFilepathString representing the absolute path of the shapefile containing SSURGO features
featureAttrListList containing the SSURGO attributes for which soil property inference is to be performed
demFilepathString representing the absolute path of the DEM terrain data
Returns
Dictionary containing the keys for each soil attribute and values of the names of the raster files generated for that attribute
Exceptions
IOError(errno.EACCES)if SOLIM binary is not executable
Exceptionif SOLIM command fails

Variable Documentation

string ecohydrolib.solim.inference.ATTRIBUTE_SEP = ','
list ecohydrolib.solim.inference.ATTRIBUTES = ['avgSand','avgSilt','avgClay','avgKsat','avgPorosity']
string ecohydrolib.solim.inference.FILE_EXT = 'tif'