7 Example Scripts
These example scripts rely on the LT-GEE API, which needs to be added to your Google Earth Engine script library before running the scripts. To add the API, click this link.
See the API reference to find more functionality for building image collections and dealing with LandTrendr outputs.
7.1 Change mapping
Change events can be extracted and mapped from LandTrendr’s segmented line vertices. Information regarding the year of change event detection, magnitude of change, duration of change, and pre-change event spectral data can all be mapped. These change mapping script examples use the same LT-GEE API functions as the GEE APP UI LandTrendr Change Mapper. Use it to help parameterize the script and explore outputs before committing to downloading data to Google Drive.
7.1.1 Map vegetation loss
In this example we’ll map the greatest vegetation loss segment and display the year of change detection and the magnitude of the change. Additionally, we’ll write the change attributes as GeoTiff files to your Google Drive account.
GEE path: users/emaprlab/public:Scripts/LandTrendr Examples/LandTrendr Greatest Disturbance Mapping
7.1.2 Map vegetation gain
In this example we’ll map the greatest vegetation gain segment and display the year of change detection and the magnitude of the change. Additionally, we’ll write the change attributes as GeoTiff files to your Google Drive account.
GEE path: users/emaprlab/public:Scripts/LandTrendr Examples/LandTrendr Greatest Growth Mapping