selimnairb / RHESSysWorkflows

RHESSysWorkflows provides Python scripts for building RHESSys models
15 stars 15 forks source link

RHESSysPlotMassbalance.py fails when observed data has a blank line at the end of file #18

Open selimnairb opened 9 years ago

selimnairb commented 9 years ago

RHESSysPlotMassbalance.py fails when observed data has a blank line at the end of file.

Example command line:

RHESSysPlotMassbalance.py -n test_massbalance -o Baisman_data/RHESSys_USGS_01583580_Baisman-20070101_20130930.txt -d Baisman_10m/rhessys/output/test/rhessys_basin.daily -t "Massbalance - Baisman 10-m test" --figureX 8 --figureY 6 --color

selimnairb commented 9 years ago

Also affects RHESSysPlot.py:

RHESSysPlot.py --plottype standard -o Baisman_data/RHESSys_USGS_01583580_Baisman-20070101_20130930.txt -d Baisman_10m/rhessys/output/test/rhessys_basin.daily -c streamflow --secondaryData Baisman_10m/rhessys/output/test/rhessys_basin.daily --secondaryColumn precip --secondaryLabel "Rainfall (mm/day)" -t "Baisman streamflow" -l "Test simulation" -f test_plot --figureX 8 --figureY 3 -y "Streamflow (mm/day)" --color magenta