RHESSysWorkflows  1.33
Namespaces | Variables
GenerateCustomSoilDefinitions.py File Reference

Namespaces

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

Variables

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