RHESSysWorkflows  1.33
Functions | Variables
RHESSysPlot Namespace Reference

Tool for visualizing basin-scale RHESSys output. More...

Functions

def plotGraphScatter
 
def plotGraph
 

Variables

string PLOT_TYPE_STD = 'standard'
 
string PLOT_TYPE_LOGY = 'logy'
 
string PLOT_TYPE_CDF = 'cdf'
 
string PLOT_TYPE_SCATTER = 'scatter'
 
string PLOT_TYPE_SCATTER_LOG = 'scatter-log'
 
list PLOT_TYPES = [PLOT_TYPE_STD, PLOT_TYPE_LOGY, PLOT_TYPE_CDF, PLOT_TYPE_SCATTER, PLOT_TYPE_SCATTER_LOG]
 
 PLOT_DEFAULT = PLOT_TYPE_STD
 
string LINE_TYPE_LINE = 'line'
 
string LINE_TYPE_DASH = 'dash'
 
string LINE_TYPE_DASH_DOT = 'dashdot'
 
string LINE_TYPE_COLON = 'colon'
 
string LINE_TYPE_DOT = 'dot'
 
dictionary LINE_TYPE_DICT
 
list LINE_TYPES = [LINE_TYPE_LINE, LINE_TYPE_DASH, LINE_TYPE_DASH_DOT, LINE_TYPE_COLON, LINE_TYPE_DOT]
 
tuple NUM_LINE_TYPES = len(LINE_TYPES)
 
tuple parser = argparse.ArgumentParser(description='Plot CDF of N datasets vs. observed data')
 
 default = PLOT_TYPES,
 
string help = 'Type of plot'
 
tuple group = parser.add_mutually_exclusive_group(required=True)
 
list choices = ['ultralight','light','normal','regular','book','medium','roman','semibold','demibold','demi','bold','heavy','extra bold','black']
 
tuple args = parser.parse_args()
 
 obs_align = None
 
list data = []
 
int max_x = 0
 
tuple obs_file = open(args.obs, 'r')
 
 readHour = False)
 
tuple obs = pd.Series(obs_data, index=obs_datetime)
 
tuple mod_file = open(d, 'r')
 
tuple tmp_mod = pd.Series(tmp_data, index=tmp_datetime)
 
tuple tmp_max_x = max(mod_align.max(), obs_align.max())
 
tuple min_x = max(min_x, mod_align.min())
 
 sizeX = args.figureY)
 
 filename = args.plottype
 
string plot_filename_png = "%s.png"
 
string plot_filename_pdf = "%s.pdf"
 

Detailed Description

Tool for visualizing basin-scale RHESSys output.

This software is provided free of charge under the New BSD License. Please see the following license information:

Copyright (c) 2014, University of North Carolina at Chapel Hill All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF NORTH CAROLINA AT CHAPEL HILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Author
Brian Miles brian.nosp@m._mil.nosp@m.es@un.nosp@m.c.ed.nosp@m.u

Function Documentation

def RHESSysPlot.plotGraph (   args,
  obs,
  data,
  sizeX = 1,
  sizeY = 1,
  dpi = 80 
)
def RHESSysPlot.plotGraphScatter (   args,
  obs,
  data,
  log = False,
  sizeX = 1,
  sizeY = 1,
  dpi = 80 
)

Variable Documentation

tuple RHESSysPlot.args = parser.parse_args()
list RHESSysPlot.choices = ['ultralight','light','normal','regular','book','medium','roman','semibold','demibold','demi','bold','heavy','extra bold','black']
list RHESSysPlot.data = []
int RHESSysPlot.default = PLOT_TYPES,
RHESSysPlot.filename = args.plottype
tuple RHESSysPlot.group = parser.add_mutually_exclusive_group(required=True)
string RHESSysPlot.help = 'Type of plot'
string RHESSysPlot.LINE_TYPE_COLON = 'colon'
string RHESSysPlot.LINE_TYPE_DASH = 'dash'
string RHESSysPlot.LINE_TYPE_DASH_DOT = 'dashdot'
dictionary RHESSysPlot.LINE_TYPE_DICT
Initial value:
1 = { LINE_TYPE_LINE: '-',
2  LINE_TYPE_DASH: '--',
3  LINE_TYPE_DASH_DOT: '-.',
4  LINE_TYPE_COLON: ':',
5  LINE_TYPE_DOT: '.' }
string RHESSysPlot.LINE_TYPE_DOT = 'dot'
string RHESSysPlot.LINE_TYPE_LINE = 'line'
int RHESSysPlot.max_x = 0
tuple RHESSysPlot.min_x = max(min_x, mod_align.min())
tuple RHESSysPlot.mod_file = open(d, 'r')
tuple RHESSysPlot.NUM_LINE_TYPES = len(LINE_TYPES)
tuple RHESSysPlot.obs = pd.Series(obs_data, index=obs_datetime)
RHESSysPlot.obs_align = None
tuple RHESSysPlot.obs_file = open(args.obs, 'r')
tuple RHESSysPlot.parser = argparse.ArgumentParser(description='Plot CDF of N datasets vs. observed data')
RHESSysPlot.PLOT_DEFAULT = PLOT_TYPE_STD
string RHESSysPlot.plot_filename_pdf = "%s.pdf"
string RHESSysPlot.plot_filename_png = "%s.png"
string RHESSysPlot.PLOT_TYPE_CDF = 'cdf'
string RHESSysPlot.PLOT_TYPE_LOGY = 'logy'
string RHESSysPlot.PLOT_TYPE_SCATTER = 'scatter'
string RHESSysPlot.PLOT_TYPE_SCATTER_LOG = 'scatter-log'
string RHESSysPlot.PLOT_TYPE_STD = 'standard'
RHESSysPlot.readHour = False)
RHESSysPlot.sizeX = args.figureY)
tuple RHESSysPlot.tmp_max_x = max(mod_align.max(), obs_align.max())
tuple RHESSysPlot.tmp_mod = pd.Series(tmp_data, index=tmp_datetime)