RHESSysWorkflows  1.33
Namespaces | Variables
GenerateSoilTextureMap.py File Reference

Namespaces

 GenerateSoilTextureMap
 Query RHESSys ParamDB for soil definitions for a custom soil map.
 

Variables

tuple GenerateSoilTextureMap.parser = argparse.ArgumentParser(description='Generate soil texture map for dataset in GRASS GIS')
 
string GenerateSoilTextureMap.help = 'The configuration file. Must define section "GRASS" and option "GISBASE"'
 
tuple GenerateSoilTextureMap.args = parser.parse_args()
 
tuple GenerateSoilTextureMap.cmdline = RHESSysMetadata.getCommandLine()
 
 GenerateSoilTextureMap.configFile = None
 
tuple GenerateSoilTextureMap.context = Context(args.projectDir, configFile)
 
string GenerateSoilTextureMap.soil_rast = 'soil_texture'
 
tuple GenerateSoilTextureMap.manifest = RHESSysMetadata.readManifestEntries(context)
 
tuple GenerateSoilTextureMap.metadata = RHESSysMetadata.readRHESSysEntries(context)
 
tuple GenerateSoilTextureMap.grassMetadata = RHESSysMetadata.readGRASSEntries(context)
 
list GenerateSoilTextureMap.demRast = grassMetadata['dem_rast']
 
tuple GenerateSoilTextureMap.paths = RHESSysPaths(args.projectDir, metadata['rhessys_dir'])
 
tuple GenerateSoilTextureMap.paramDbPath = os.path.join(context.projectDir, metadata['paramdb'])
 
tuple GenerateSoilTextureMap.params = importlib.import_module('rhessys.params')
 
tuple GenerateSoilTextureMap.paramConst = importlib.import_module('rhessys.constants')
 
tuple GenerateSoilTextureMap.paramDB = params.paramDB(filename=paramDbPath)
 
tuple GenerateSoilTextureMap.modulePath = context.config.get('GRASS', 'MODULE_PATH')
 
tuple GenerateSoilTextureMap.moduleEtc = context.config.get('GRASS', 'MODULE_ETC')
 
tuple GenerateSoilTextureMap.grassDbase = os.path.join(context.projectDir, metadata['grass_dbase'])
 
tuple GenerateSoilTextureMap.grassConfig = GRASSConfig(context, grassDbase, metadata['grass_location'], metadata['grass_mapset'])
 
tuple GenerateSoilTextureMap.grassLib = GRASSLib(grassConfig=grassConfig)
 
tuple GenerateSoilTextureMap.result = grassLib.script.run_command('r.mask', flags='r')
 
tuple GenerateSoilTextureMap.percentSandRasterPath = os.path.join(context.projectDir, manifest['soil_raster_pctsand'])
 
tuple GenerateSoilTextureMap.percentClayRasterPath = os.path.join(context.projectDir, manifest['soil_raster_pctclay'])
 
tuple GenerateSoilTextureMap.schemePath = os.path.join(moduleEtc, 'USDA.dat')
 
tuple GenerateSoilTextureMap.soilTexture = os.path.join(modulePath, 'r.soils.texture')
 
tuple GenerateSoilTextureMap.pipe = grassLib.script.pipe_command('r.stats', flags='licn', input=soil_rast)
 
dictionary GenerateSoilTextureMap.textures = {}
 
tuple GenerateSoilTextureMap.paramsFound