Developed by Agrosatélite Geotecnologia Aplicada Ltda.
This folder contains the scripts to classify and post-process the Forest Plantation theme.
We recommend that you read the Forest Plantation Appendix of the Algorithm Theoretical Basis Document (ATBD), since important informations about the forest plantation classification methodology can be found in there.
First, you need to copy these scripts (including those in utils folder) to your Google Earth Engine (GEE) account.
Then, in your GEE account, go to the Assets tab and create the following directory structure:
- MAPBIOMAS/C5/FOREST_PLANTATION/RESULTS
and two Image Collections:
- MAPBIOMAS/C5/FOREST_PLANTATION/RESULTS/RAW
- MAPBIOMAS/C5/FOREST_PLANTATION/REFERENCE_MAP
On the REFERENCE_MAP collection, you must provide reference maps for the sampling, with pixel values of 1 for sugar cane and 0 for other classes, and a property year
with the year of the map.
To run the classification, follow these steps:
-
Open the script forest_plantation/classification.js;
-
On line 2 (variable
api
), set the path to the api.js script you copied to your GEE account -
On line 7 (variable
outputCollection
), set the output path for the classification results; -
On line 10 (variable
years
), set the years you want to classify; -
On line 17 (variable
tiles
), set the WRS (path and row) you want to classify; -
On line 36 (variable
periods
), set the periods for the region you want to classify (more information about that you can read on the ATBD Forest Plantation Appendix); -
On line 55 (variable
imageCollection
), set the Image Collection you want to use to create the mosaics; -
On line 58 (variable
referenceCollection
), set the path to your reference map that will be used for sampling; -
Run the script.
To apply the temporal and spatial filters, follow these steps:
-
Open the script forest_plantation/temporal_spatial_filter.js;
-
On line 2 (variable
input
), set the input path to the raw classification result; -
On line 5 (variable
output
), set the path for the filtered result; -
On lines 8 and 9 (variables
startYear
andendYear
), set the years interval you want to filter; -
Run the script.