Skip to content

SAVeTrEE is a script within Google Earth Engine for classifying areas of vegetation mortality. It prompts the user for a year, duration, and spectral index for which a mortality map should be produced, then fits a trend line to an imagery time sequence of vegetative spectral index values calculated from Landsat multispectral data. The slope of t…

Notifications You must be signed in to change notification settings

jdilger/SAVeTrEE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAVETREE
V2 Code created: 11/17/17


Simple Analysis of Vegetative Trends in Earth Engine - SAVETREE - is a tool developed in Google Earth Engine for the Lassen Volcanic National park, it estimates tree mortality by fitting a linear trend to time serries data of a user chosen spectral index. The user can export their new map in the form of TIFF files,add historic fire layers, and the user can produce graphs which view the values in the time series for a particular pixel by clicking on the layer.  

SAVETREE was developed over two terms with DEVELOP:
* Authors v1.0: Joshua Verkerke, Anna McGarrigle, John Dilger
* Authors v2.0: Heather Myers, Anna McGarrigle, Peter Norton, Andrea Ferrer


Running SAVETREE
Hit the “run” button in the center panel to make the widget appear. 


Using SAVETREE
The user can do the following things:


* Spectral Index: Choose from NDMI, NDVI, NDWI or NBR to select which spectral index you would like to create a linear regression layer for. The default is NDMI.
* Area of interest: Choose from Lassen Volcanic National Park, Lassen National Forest, DEVELOP T2 Study Area, the Badger Planning area or choose Your asset (below) to perform the analysis on an asset you load yourself see Loading an Asset for instructions on loading your own asset. The default is LVNP.
* End year and duration: The year must be in YYYY format, it is the last year of the duration of the analysis. The duration should be a number less than 20, with the most meaningful results coming from 3-7 years, it is the number of years it will create the time series for. For example, if you put in 1990 and a duration of 3, the analysis will be run on 1988, 1989, and 1990. The defaults are 2016 and 5. 
* Add Coefficient map: Performs the coefficient trend map analysis on the spectral index and area of interest for the duration you supplied ending with the year you specified and adds that layer to the map.
* Add Bivariate map: Performs the Bivariate map analysis on the spectral index and area of interest for the duration you supplied ending with the year you specified and adds that layer to the map.
* Reset Map: Clears all layers. Note: it does not reset the area of interest or any items in the widget. To reset the area of interest, choose a different area of interest from the dropdown before running a new analysis. 
* Fire history start and end years: These years must be in YYYY format. These numbers create a filter for the fire history data where the only data to be added to the map will be fires or treatments that occurred during those years. 
* Fire History Dataset: Select from FRAP Statewide Wildfire Dataset, RX fire, Other treatment, or load your own fire data asset. To load your own asset see Loading an Asset. The wildfire, rx fire and other treatments are FRAP datasets, for more details on the FRAP data and for the most up-to-date data sets please go to http://frap.fire.ca.gov/projects/fire_data/fire_perimeters_index
* Export Coefficient Map: Exports the Coefficient trend layer as a TIFF file. See Exporting a Layer to get details on how to export layers to your Google Drive.
* Export Bivariate Map: Exports the Bivariate map layer as a TIFF file. See Exporting a Layer to get details on how to export layers to your Google Drive.
* Change Inspector: Click on any part of the Coefficient Trend or Bivariate Map layers and a graph of the change during each year for your duration for that particular point will appear at the bottom of the widget. Click the little box with the arrow in the upper right hand corner of the graph to open the graph in a new tab. You can download this graph from this new tab. 


Exporting a Layer
Click on the “Export Coefficient Map” or “Export Bivariate Map” buttons. This will first add the Coefficient or Bivariate analysis layers to the map, and then the tasks tab in the left hand box should turn yellow. Click on the tasks tab, and at the top there should be a file titled with your analysis, area of interest and duration range, there will be a “Run” button next to it. Click on the run button to initiate the image export. You can change the name of the file, and where it is being exported. Once you’ve made your changes, click the blue run button. It will take a few minutes for your asset to be exported to the location you specified. 


Loading an Asset
SAVETREE 2.0 allows the user to input their own assets to run analyses on. To load an asset, click on the "Assets" tab in the upper left hand box of Google Earth Engine, then click the red "new" button. Select "table upload", then double click the red "select" button and find your shapefile on your local computer. Make sure to select all of the shapefile files (you can do this by holding  the ctrl button while you select them), then hit ok. If you look in the upper right hand box, the tasks tab should be highlighted. Your asset is now being uploaded, do not close your browser until it is complete. After a few minutes (between 5-20 depending on the asset) your asset should show up in the left hand box. You should click the share button and make it "Anyone can read". You can now input this asset in the text boxes provided in the widget. The asset structure is users/*YOUR USER NAME HERE*/*YOUR ASSET NAME HERE* for example, the Lassen Volcanic National Park shapefile asset is: users/savetree/LVNP where savetree is the user name for the account, and LVNP is the name of the asset. This shapefile has been hard-coded into the dropdown menus in the widget, but you could copy and paste "users/savetree/LVNP" into the text box and it would still work. For the fire history asset, make sure your fire history data has "YEAR_" as a data field. Years need to be in YYYY format. The filter works by looking for a range of numbers. 


Contact
If you have questions please contact Heather Myers at hmyerscmt@gmail.com or develop.geoinformatics@gmail.com

About

SAVeTrEE is a script within Google Earth Engine for classifying areas of vegetation mortality. It prompts the user for a year, duration, and spectral index for which a mortality map should be produced, then fits a trend line to an imagery time sequence of vegetative spectral index values calculated from Landsat multispectral data. The slope of t…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published