How to access to the scripts in Collect Earth? I need to modify or add an index to improve wetland identification. Thanks!
Accepted answer
Thank you for your question.
Replacing the Collect Earth / Google Earth Engine script integration is not terribly easy to change...
First of all, the scripts used by Collect Earth are derived from this one : https://code.earthengine.google.com/?scriptPath=users%2Fsanchezpauspro%2FApps%3ACollectEarthPlotAncillary
the previous script, calls (for most surveys) this other script : https://code.earthengine.google.com/?scriptPath=users%2Fcollectearth%2Fce_scripts%3Aframes_landsat_v4_tempSegmentation
The heavy lifting is done by the processPlotInfo method.
Realize how Collect Earth sends this parameters in the URL that can be used by the first script:
- ee_script : the name of the survey that is using hte script
- startTime : Defautls to 2000-01-01
- endTime : Defaults to todays date
- geoJson : This is the only parameter that MUST be filled
- plotId : The name of the plot being assessed, defaults to Plot
Once you have edited your own version of the script, you need to publish it as a GEE App ( see the tutorial on GEE Apps)
NOW, if you manage to have a script working, you then need to let Collect Earth know that it should be used! This is done by editing the configuration file, go to Tools->Open Data folder and then open the file called earth.properties . Here, you need to set the URL of your GEE App in the configuration file, by changing this property:
gee_app_url