Closed j08lue closed 5 years ago
Just stubled upon this. What a system - R calling Python to interface GEE and load the data right from there into R's memory. Cool you got this to work!
Just a random note on your Python code -- don't print and then sys.exit like in
print
sys.exit
https://github.com/JesJehle/earthEngineGrabR/blob/ae6b6e91473a3e55550f0caf1a75cf946e9087d8/inst/Python/ee_get_data.py#L19-L20
Just raise ValueError(reducer) instead, or whatever exception is appropriate. And, btw, Python 2 is dead, so no more print "...". 😉
raise ValueError(reducer)
print "..."
Thanks for the hint! The Python code is still pretty chaotic, I know. The revision is planned!
Just stubled upon this. What a system - R calling Python to interface GEE and load the data right from there into R's memory. Cool you got this to work!
Just a random note on your Python code -- don't
print
and thensys.exit
like inhttps://github.com/JesJehle/earthEngineGrabR/blob/ae6b6e91473a3e55550f0caf1a75cf946e9087d8/inst/Python/ee_get_data.py#L19-L20
Just
raise ValueError(reducer)
instead, or whatever exception is appropriate. And, btw, Python 2 is dead, so no moreprint "..."
. 😉