RHESSysWorkflows  1.33
Namespaces | Functions | Variables
RHESSysPlotMassbalance.py File Reference

Namespaces

 RHESSysPlotMassbalance
 Tool for comparing mass balance for observed and basin-scale RHESSys output.
 

Functions

def RHESSysPlotMassbalance.plotTable (args, col_names, obs, data, ax)
 
def RHESSysPlotMassbalance.plotGraph
 

Variables

string RHESSysPlotMassbalance.OBS_HEADER_STREAMFLOW = 'streamflow_mm'
 
string RHESSysPlotMassbalance.OBS_HEADER_PRECIP = 'precip_mm'
 
string RHESSysPlotMassbalance.PLOT_TYPE_STD = 'standard'
 
string RHESSysPlotMassbalance.PLOT_TYPE_LOGY = 'logy'
 
string RHESSysPlotMassbalance.PLOT_TYPE_CDF = 'cdf'
 
string RHESSysPlotMassbalance.PLOT_TYPE_TABLE = 'table'
 
list RHESSysPlotMassbalance.PLOT_TYPES = [PLOT_TYPE_STD, PLOT_TYPE_LOGY, PLOT_TYPE_CDF, PLOT_TYPE_TABLE]
 
 RHESSysPlotMassbalance.PLOT_DEFAULT = PLOT_TYPE_STD
 
tuple RHESSysPlotMassbalance.parser = argparse.ArgumentParser(description='Plot CDF of N datasets vs. observed data')
 
string RHESSysPlotMassbalance.help = 'Base name of file to output figure to. Only specify base name of file, not extension (PDF and PNG files will be produced)'
 
tuple RHESSysPlotMassbalance.args = parser.parse_args()
 
tuple RHESSysPlotMassbalance.obs = pd.read_csv(args.obs, index_col=0, parse_dates=True)
 
list RHESSysPlotMassbalance.cols = ['streamflow', 'evap', 'trans', 'precip']
 
 RHESSysPlotMassbalance.obs_align = None
 
int RHESSysPlotMassbalance.max_x = 0
 
tuple RHESSysPlotMassbalance.mod_file = open(args.data, 'r')
 
tuple RHESSysPlotMassbalance.mod_df
 
tuple RHESSysPlotMassbalance.tmp_max_x = max(mod_align['streamflow'].max(), obs_align[OBS_HEADER_STREAMFLOW].max())
 
tuple RHESSysPlotMassbalance.min_x = max(min_x, mod_align['streamflow'].min())
 
tuple RHESSysPlotMassbalance.fig = plt.figure(figsize=(args.figureX, args.figureY), dpi=80, tight_layout=True)
 
tuple RHESSysPlotMassbalance.ax_std = fig.add_subplot(221)
 
tuple RHESSysPlotMassbalance.ax_log = fig.add_subplot(222)
 
tuple RHESSysPlotMassbalance.ax_cdf = fig.add_subplot(223)
 
tuple RHESSysPlotMassbalance.ax_tab = fig.add_subplot(224)
 
tuple RHESSysPlotMassbalance.data_plt
 
list RHESSysPlotMassbalance.col_names = ['Observed', 'Modeled']
 
list RHESSysPlotMassbalance.legend_items = ['Observed', 'Modeled']
 
string RHESSysPlotMassbalance.outname = "%s_color"
 
string RHESSysPlotMassbalance.plot_filename_png = "%s.png"
 
string RHESSysPlotMassbalance.plot_filename_pdf = "%s.pdf"