HydroBloks relies on a number python libraries. To make this straightforward use conda (http://conda.pydata.org/miniconda.html) to install all the packages. Here are the steps to install the model.
- conda install gdal
- conda install scikit-learn
- conda install netCDF4
- python setup.py
Note: If you have the intel mkl library on your machine, we recommend that you set the mkl_flag variable in setup.py to True.
To run the model on a test dataset, do the following:
- wget http://hydrology.princeton.edu/~nchaney/HydroBloks/LittleWashita.tar.gz
- untar -xvzf LittleWashita.tar.gz
- cd LittleWashita
- python ../HydroBloks/Preprocessing/Driver.py metadata_littlewashita.json
- python ../HydroBloks/HydroBloks/Driver.py metadata_littlewashita.json