https://github.com/gee-community/ee-js-to-python-syntax
Simplistic conversion of earthengine JavaScript to Python syntax.
https://github.com/gee-community/ee-js-to-python-syntax
Last synced: 6 months ago
JSON representation
Simplistic conversion of earthengine JavaScript to Python syntax.
- Host: GitHub
- URL: https://github.com/gee-community/ee-js-to-python-syntax
- Owner: gee-community
- License: gpl-3.0
- Created: 2018-06-18T06:54:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-19T17:41:37.000Z (over 5 years ago)
- Last Synced: 2025-04-30T13:15:48.730Z (6 months ago)
- Language: Jupyter Notebook
- Size: 21.5 KB
- Stars: 18
- Watchers: 7
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ee-js-to-python-syntax
Simplistic conversion of earthengine JavaScript to Python syntax.**Very** preliminary proof of concept for a package that enables easy conversion of
earth engine JavaScript examples to Python syntax.Potentially [jiphy](https://github.com/timothycrosley/jiphy) is usful, although
it seems to be un-maintained.So far RegEx is used to convert general JS syntax to Python equilvilent.
General Python frontmatter is added.
TODO:
+ Why do some of the regex rules not always convert?
+ Dealing with line breaks does not always work
+ Comments within line breaks, break python.
+ Conversion of ee API calls that are not similar between JS and Python,
such as plotting, run tasks, ect.## Example
see `test_eejs2python_colab.ipynb` in [Colab](https://colab.research.google.com)