KMarkert / hydrate

Python package to setup and run hydrologic models using data from Earth Engine
GNU General Public License v3.0
17 stars 6 forks source link

change google cloud api into GEE api #1

Open kongdd opened 3 years ago

kongdd commented 3 years ago

Hi @KMarkert

I am trying to run VIC with the help of hydrate. But I faced with the problem of no access to google cloud api.

I am wondering whether it is possible to change the google cloud api into GEE api in hydrate. Becase I have no google cloud project, hence google cloud api. Other users might aslo have the same problem. In that situation, some hydrate script will be not work.

Any suggestion?

KMarkert commented 3 years ago

Hi @kongdd 👋 ,

Theoretically the backend data access from EE can be changed over to using the Python API as opposed to using the REST API. But, by doing this though there will be limitations on user requests which can take a very long time to get the data for large areas or just fail. This is particularly the case for meteorological forcing data. So, using the cloud REST API was more of a performance choice.

If the Python API were to be used, the data model and how data is accessed/formatted will need to be updated. There can be another backend data model added so users can pick whichever API access is most convenient for them.

It will take a good amount of time to make these changes which I, unfortunately, do not have at this moment...I will be happy to guide and work with you to make these updates if you would like to work on them. Please let me know if that is the case!

kongdd commented 3 years ago

Thanks for your warminy help. I have produced those forcings successfully. But running into another problem. Could you give an example about how to use the routing function in VIC, https://github.com/KMarkert/hydrate/blob/master/hydrate/models/vic.py#L14?

Cheers, Dongdong