This project has moved and is read-only. For the latest updates, please go here.

HydroDesktop from command line

Jul 23, 2013 at 6:54 PM
Is it possible to find, download and export data without using the HydroDesktop interface (using command line). For example if i give a sample study area it will return rainfall data for different stations by running series of command line.
Jul 23, 2013 at 7:03 PM
This is a very timely question! We are discussing how to make the HD functions available through Python scripting which could enable your command line use case... We're probably a few months away from a first version of this.

Daniel P. Ames, Ph.D., P.E.
Associate Professor, Civil & Environmental Engineering
Brigham Young University, Provo, Utah

iEMSs 2014, San Diego, California, June 15-19, 2014.

Jul 24, 2013 at 11:12 AM
If you like using python for command line scripting then please take a look at the free and open-source ulmo python package:

This library is quite well documented and it can be used for scripting the find, download and export data steps. I successfully tested it with some of the CUAHSI HIS / HydroDesktop data sources.

pip install ulmo

Finding data networks in your area:

Finding which sites are available at a data service network:
my_sites = ulmo.cuahsi.wof.get_sites('')

Finding which variables are available at a site:
my_site_info = ulmo.cuahsi.wof.get_site_info('','LittleBearRiver:USU-LBR-SFWeather')

Getting the data values:
my_values = ulmo.cuahsi.wof.get_values('','LittleBearRiver:USU-LBR-SFWeather','LittleBearRiver:USU27')

Jiri Kadlec
Jul 24, 2013 at 8:58 PM
Thanks for reply, i will try it. I am working with TOPNET, hydrologic model that needs spatial and time series data. As i spend a lot of time for input data downloading and pre processing but i want to automate those all steps. HD only provides time series data, is there any way to get spatial data ( e.g., soil properties from SSURGO, Land cover data, etc) from there. I download and export some time series data from HD but found lot of missing data which need to work further. It seems to me that it would be great if there is any functionality to fill missing data ( by providing some option to user how he wants to fill the data inear, IDW interpolation etc).