RHESSysWorkflows
1.33
|
Namespaces | |
ImportClimateData | |
Import climate station and corrsponding data, already in RHESSys format, into project directory. | |
Variables | |
string | ImportClimateData.STATION_FILE_EXTENSION = 'base' |
tuple | ImportClimateData.parser = argparse.ArgumentParser(description='Import RHESSys climate data into project directory') |
string | ImportClimateData.help = 'The configuration file. Must define section "GRASS" and option "GISBASE"' |
tuple | ImportClimateData.args = parser.parse_args() |
tuple | ImportClimateData.cmdline = RHESSysMetadata.getCommandLine() |
ImportClimateData.configFile = None | |
tuple | ImportClimateData.context = Context(args.projectDir, configFile) |
tuple | ImportClimateData.metadata = RHESSysMetadata.readRHESSysEntries(context) |
tuple | ImportClimateData.paths = RHESSysPaths(args.projectDir, metadata['rhessys_dir']) |
tuple | ImportClimateData.contents = os.listdir(paths.RHESSYS_CLIM) |
tuple | ImportClimateData.fileToDelete = os.path.join(paths.RHESSYS_CLIM, entry) |
tuple | ImportClimateData.stationRegex = re.compile("^(.+)\.%s$" % (STATION_FILE_EXTENSION,) ) |
list | ImportClimateData.stations = [] |
tuple | ImportClimateData.m = stationRegex.match(entry) |
string | ImportClimateData.stationFileName = "%s%s%s" |
tuple | ImportClimateData.stationFilePath = os.path.join(args.sourceDir, stationFileName) |
tuple | ImportClimateData.dataRegex = re.compile("^%s\.(.+)$" % (station,) ) |
tuple | ImportClimateData.extension = m.group(1) |