Skip to content

gee-hydro/gee-nodejs

Repository files navigation

GEE in Node.js

Dongdong Kong, CUG

1. Development environment

1.1. GEE authentication

scoop install gcloud
## proxy for gcloud
# https://cloud.google.com/sdk/docs/proxy-settings?hl=zh-cn
gcloud config set proxy/type http
gcloud config set proxy/address 127.0.0.1
gcloud config set proxy/port 1081

earthengine authenticate

1.2. Node.js

npm install -g @google/earthengine require-from-url 
npm install -g ijavascript
ijsinstall

On Windows

Install tools and configuration manually:

  • Install Visual C++ Build Environment: Visual Studio Build Tools (using "Visual C++ build tools" if using a version older than VS2019, otherwise use "Desktop development with C++" workload) or Visual Studio Community (using the "Desktop development with C++" workload)

see details in https://github.com/nodejs/node-gyp.

2. Usage

2.1. Local model: Jupyter Notebook

see examples at https://github.com/gee-hydro/gee-nodejs/blob/master/ee_hello.ipynb

2.2. Remote model: GEE Code Editor online

https://code.earthengine.google.com/

Releases

No releases published

Packages

No packages published