Skip to content

Simplistic conversion of earthengine JavaScript to Python syntax.

License

Notifications You must be signed in to change notification settings

gee-community/ee-js-to-python-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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

About

Simplistic conversion of earthengine JavaScript to Python syntax.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published