|
list | PatchZonalStatsNormalize.LINE_TYPES = ['solid', 'dashed', 'dashdot', 'dotted'] |
|
tuple | PatchZonalStatsNormalize.NUM_LINE_TYPES = len(LINE_TYPES) |
|
int | PatchZonalStatsNormalize.INT_RESCALE = 100 |
|
tuple | PatchZonalStatsNormalize.VARIABLE_EXPR_RE = re.compile(r'\b([a-zA-z][a-zA-Z0-9_\.]+)\b') |
|
tuple | PatchZonalStatsNormalize.RANDOM = random.randint(100000, 999999) |
|
string | PatchZonalStatsNormalize.RECLASS_MAP_TMP = "patchzonalstats_cover_{0}" |
|
string | PatchZonalStatsNormalize.STATS_MAP_TMP = "patchzonalstats_output_{0}" |
|
list | PatchZonalStatsNormalize.methods |
|
tuple | PatchZonalStatsNormalize.parser = argparse.ArgumentParser(description='Generate cummulative map of patch-scale RHESSys output variables') |
|
string | PatchZonalStatsNormalize.help = 'The configuration file.' |
|
list | PatchZonalStatsNormalize.choices = ['ultralight','light','normal','regular','book','medium','roman','semibold','demibold','demi','bold','heavy','extra bold','black'] |
|
string | PatchZonalStatsNormalize.default = 'regular' |
|
tuple | PatchZonalStatsNormalize.args = parser.parse_args() |
|
| PatchZonalStatsNormalize.configFile = None |
|
tuple | PatchZonalStatsNormalize.context = Context(args.projectDir, configFile) |
|
| PatchZonalStatsNormalize.linestyles = None |
|
| PatchZonalStatsNormalize.outputFileNames = args.legend |
|
tuple | PatchZonalStatsNormalize.metadata = RHESSysMetadata.readRHESSysEntries(context) |
|
list | PatchZonalStatsNormalize.patchFilepaths = [] |
|
tuple | PatchZonalStatsNormalize.outputDir = os.path.abspath(args.outputDir) |
|
string | PatchZonalStatsNormalize.outputFile = "{0}.pdf" |
|
tuple | PatchZonalStatsNormalize.outputFilePath = os.path.join(outputDir, outputFile) |
|
| PatchZonalStatsNormalize.variableLabels = args.variableName |
|
list | PatchZonalStatsNormalize.variables = ['patchID'] |
|
tuple | PatchZonalStatsNormalize.m = VARIABLE_EXPR_RE.findall(args.outputVariable) |
|
tuple | PatchZonalStatsNormalize.tmpDir = tempfile.mkdtemp() |
|
tuple | PatchZonalStatsNormalize.reclassRule = os.path.join(tmpDir, 'reclass.rule') |
|
tuple | PatchZonalStatsNormalize.grassDbase = os.path.join(context.projectDir, metadata['grass_dbase']) |
|
tuple | PatchZonalStatsNormalize.grassConfig = GRASSConfig(context, grassDbase, metadata['grass_location'], metadata['grass_mapset']) |
|
tuple | PatchZonalStatsNormalize.grassLib = GRASSLib(grassConfig=grassConfig) |
|
tuple | PatchZonalStatsNormalize.result |
|
list | PatchZonalStatsNormalize.variablesList = [] |
|
tuple | PatchZonalStatsNormalize.data = np.genfromtxt(patchFilepath, names=True) |
|
list | PatchZonalStatsNormalize.patchIDs = [ int(p) for p in data['patchID'] ] |
|
tuple | PatchZonalStatsNormalize.expr = VARIABLE_EXPR_RE.sub(r'data["\1"]', args.outputVariable) |
|
tuple | PatchZonalStatsNormalize.var = eval(expr) |
|
| PatchZonalStatsNormalize.zones = args.zones |
|
tuple | PatchZonalStatsNormalize.maps_to_delete = set() |
|
string | PatchZonalStatsNormalize.reclass_map = "{0}_{1}" |
|
tuple | PatchZonalStatsNormalize.reclass = open(reclassRule, 'w') |
|
string | PatchZonalStatsNormalize.rMapcalcExpr = '$reclass=int(($reclass/$norm)*$scale)' |
|
| PatchZonalStatsNormalize.scale = True) |
|
string | PatchZonalStatsNormalize.permrast = "{0}_{1}_{2}" |
|
tuple | PatchZonalStatsNormalize.pipe = grassLib.script.pipe_command('r.stats', flags='ln', input=STATS_MAP_TMP) |
|
list | PatchZonalStatsNormalize.stats_scaled = [] |
|
tuple | PatchZonalStatsNormalize.stats = np.array(stats_scaled) |
|
list | PatchZonalStatsNormalize.tmp_data = data[zone] |
|
int | PatchZonalStatsNormalize.min_x = 0 |
|
tuple | PatchZonalStatsNormalize.max_x = max(np.max(datum), max_x) |
|
int | PatchZonalStatsNormalize.fig_width = 4 |
|
tuple | PatchZonalStatsNormalize.fig = plt.figure(figsize=(fig_width, 3), dpi=80, tight_layout=True) |
|
tuple | PatchZonalStatsNormalize.num_zones = len(zones) |
|
list | PatchZonalStatsNormalize.var_label = variableLabels[i] |
|
int | PatchZonalStatsNormalize.fig_num = i+1 |
|
tuple | PatchZonalStatsNormalize.ax = fig.add_subplot(1, num_zones, fig_num) |
|
| PatchZonalStatsNormalize.linetype = linestyles, |
|
| PatchZonalStatsNormalize.linewidth = args.linewidth, |
|
| PatchZonalStatsNormalize.legend_fontsize = args.legendfontsize, |
|
| PatchZonalStatsNormalize.fontweight = args.fontweight, |
|
| PatchZonalStatsNormalize.axes_fontsize = args.axesfontsize, |
|
| PatchZonalStatsNormalize.ticklabel_fontsize = args.ticklabelfontsize, |
|
tuple | PatchZonalStatsNormalize.range = (min_x, max_x) |
|
| PatchZonalStatsNormalize.xlimit = args.xlimit) |
|