RHESSysWorkflows  1.33
Namespaces | Variables
GenerateBaseStationMap.py File Reference

Namespaces

 GenerateBaseStationMap
 Generate climate base station raster map in GRASS for a list of base stations using Thiessen polygons.
 

Variables

tuple GenerateBaseStationMap.parser = argparse.ArgumentParser(description='Generate climate base station raster map in GRASS for a list of base stations using Thiessen polygons.')
 
string GenerateBaseStationMap.help = 'The configuration file. Must define section "GRASS" and option "GISBASE"'
 
tuple GenerateBaseStationMap.args = parser.parse_args()
 
tuple GenerateBaseStationMap.cmdline = RHESSysMetadata.getCommandLine()
 
 GenerateBaseStationMap.configFile = None
 
tuple GenerateBaseStationMap.context = Context(args.projectDir, configFile)
 
tuple GenerateBaseStationMap.metadata = RHESSysMetadata.readRHESSysEntries(context)
 
tuple GenerateBaseStationMap.paths = RHESSysPaths(args.projectDir, metadata['rhessys_dir'])
 
 GenerateBaseStationMap.projectDirClimDir = paths.RHESSYS_CLIM
 
tuple GenerateBaseStationMap.modulePath = context.config.get('GRASS', 'MODULE_PATH')
 
tuple GenerateBaseStationMap.grassDbase = os.path.join(context.projectDir, metadata['grass_dbase'])
 
tuple GenerateBaseStationMap.grassConfig = GRASSConfig(context, grassDbase, metadata['grass_location'], metadata['grass_mapset'])
 
tuple GenerateBaseStationMap.grassLib = GRASSLib(grassConfig=grassConfig)
 
tuple GenerateBaseStationMap.basestationsDest = os.path.join(projectDirClimDir, 'basestations.txt')
 
tuple GenerateBaseStationMap.p
 
 GenerateBaseStationMap.result = p.returncode