USGS-R / WREG

Develops regional estimation equations for streamflow characteristics that can be applied at a ungaged basins.
8 stars 7 forks source link

Added error handling per issue #54 #57

Closed wfarmer-usgs closed 8 years ago

wfarmer-usgs commented 8 years ago

Added substantial error checking on inputs to Influence, Leverage, Omega.GLS, WREG.GLS, WREG.OLS, WREG.WLS and Dist.WREG. Beacuse they are not used for the GUI, I did not address WREG.MLR (custom weight needs to be pulled out), WREG.RoI or either ROImatchMatLab function. Also redocumented all help files.

wfarmer-usgs commented 8 years ago

@tmills-usgs Take a look and let me know what you think. If you like, we can merge. I tried it out with the GUI in OLS and didn't seem to hit any errors.

You will see that i used warnings to document all cases. I like the idea of printing all the errors at once before stop. Nicely, it also helps ensure the logic works without stopping at every error.

tjmills commented 8 years ago

Fixes #54 :clap: