I have some scripts in the Earth Engine Code Editor.
Is it possible to call these scripts remotely using Python API?
I have some scripts in the Earth Engine Code Editor.
Is it possible to call these scripts remotely using Python API?
For easy interactive use of the Python API, there is geemap
. It also has a module to convert Javascript scripts and snippets to Python
Given a Javascript script some_script
in the working directory, you can call it like so (untested):
from geemap import js_to_python
js_to_python(in_file="some_script.js",out_file="some_script.py",use_qgis=False)
and your function is in some_script.py
.