{"id":13436138,"url":"https://github.com/gee-community/ee-runner","last_synced_at":"2025-04-05T21:06:06.109Z","repository":{"id":33562239,"uuid":"37208484","full_name":"gee-community/ee-runner","owner":"gee-community","description":"Command-line runner for Google Earth Engine Playground scripts","archived":false,"fork":false,"pushed_at":"2024-11-29T10:06:14.000Z","size":430,"stargazers_count":67,"open_issues_count":12,"forks_count":18,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-12T06:02:29.503Z","etag":null,"topics":["cloud-computing","gis","google-earth-engine","landsat","remote-sensing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gee-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-10T16:21:48.000Z","updated_at":"2024-11-29T10:06:18.000Z","dependencies_parsed_at":"2024-12-15T17:49:39.520Z","dependency_job_id":null,"html_url":"https://github.com/gee-community/ee-runner","commit_stats":{"total_commits":96,"total_committers":3,"mean_commits":32.0,"dds":0.02083333333333337,"last_synced_commit":"56a1d1ff415242659a822820f2170899f5602254"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gee-community%2Fee-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gee-community%2Fee-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gee-community%2Fee-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gee-community%2Fee-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gee-community","download_url":"https://codeload.github.com/gee-community/ee-runner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246869546,"owners_count":20847148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-computing","gis","google-earth-engine","landsat","remote-sensing"],"created_at":"2024-07-31T03:00:44.580Z","updated_at":"2025-04-05T21:06:06.082Z","avatar_url":"https://github.com/gee-community.png","language":"JavaScript","funding_links":[],"categories":["Table of Contents","JavaScript"],"sub_categories":["Applications"],"readme":"# ee-runner\n\nCommand line runner of [Google Earth Engine Playground](https://ee-api.appspot.com/) scripts using Node.js.\n\n[![Gitter](https://badges.gitter.im/gee-community/ee-runner.svg)](https://gitter.im/gee-community/ee-runner?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n\n### Install or update globally and use as a script\n\n* `npm install -g ee-runner@latest`\n\n* Run Code Editor scripts as:\n\n```javascript\n\u003e ee-runner \u003cscript-file\u003e --project=\u003ccloud-project-name\u003e\n```\n\nor \n\n```javascript\n\u003e ee \u003cscript-file\u003e --project=\u003ccloud-project-name\u003e\n```\n\n\n### Install as a package\n\n* `npm install ee-runner`\n\n\n* in your scripts, use:\n\n```javascript\nrequire(\"ee-runner\")\n\ngee.initialize(function() {\n  // ... your Google Earth Engine code comes here ...\n}, project)\n\n```\n\n\n### Install as a command-line tool from GitHub\n\n* Clone this repository.\n* Inside Repository\n  * `Run: npm run init`\n\n### Authenticate\n\nIf you don't have Python version of Earth Engine installed - install it and run `earthengine authenticate` command.\n\n### Usage\n* `node ee-runner.js \u003cscript-file\u003e --project=\u003ccloud-project-name\u003e`\n\n### Example\n\n* `node ee-runner.js examples/hello.js --project=ee-runner-test`\n\n```\nFirst image in LANDSAT 8 TOA collection was aquired on 2013-09-26\nDownloading thumbnail ...\n```\n\n* cat examples/hello.js\n\n```javascript\nvar image = new ee.Image(new ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA').first());\nvar info = image.getInfo();\n\nvar date = info.properties['DATE_ACQUIRED'];\nprint('First image in LANDSAT 8 TOA collection was aquired on ' + date);\n\nprint('Downloading thumbnail ...');\n\nvar url = image\n  .visualize({bands:['B6','B5','B3'], gamma: 1.5})\n  .getThumbURL({dimensions:'1024x1024', format: 'jpg'});\n\ndownload(url, 'hello.jpg');\n\n```\n\n* hello.jpg\n\n![hello.jpg](https://github.com/gena/ee-runner/blob/master/examples/hello.jpg?raw=true \"Result\")\n\n### Roadmap\n\n- [ ] Fetch user scripts from https://earthengine.googlesource.com/\n- [ ] Implement ui.Chart printing to PNG / SVG\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgee-community%2Fee-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgee-community%2Fee-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgee-community%2Fee-runner/lists"}