# -*- coding: utf-8 -*-
"""
Created on Mon Aug 28 07:54:17 2017

@author: tih
"""

import sys
from watertools.Collect.HiHydroSoil.DataAccess import DownloadData

def main(Dir, latlim=[-90, 90], lonlim=[-180, 180], Waitbar = 1):
    """
    This function downloads HiHydrosoil data

    Keyword arguments:
    Dir -- 'C:/file/to/path/'
    latlim -- [ymin, ymax] (values must be between 90 and 90)
    lonlim -- [xmin, xmax] (values must be between -180 and 180)
    """
    print('\nDownload monthly HiHydroSoil Theta Saturated data of the top soil')

    # Download data
    DownloadData(Dir,latlim, lonlim, Waitbar)

if __name__ == '__main__':
    main(sys.argv)
