Developed by Remap Geotecnologia Ltda.
This folder contains the scripts to classify and post-process the Coffee subclass.
We recommend that you read the Agriculture Appendix of the Algorithm Theoretical Basis Document (ATBD), since important informations about the coffee classification methodology can be found in there.
First, you need to copy the scripts in this folder and in the utils folder to your Google Earth Engine (GEE) account.
Then, in your GEE account, go to the Assets tab, create the following directory structure:
- MAPBIOMAS/C7/AGRICULTURE/COFFEE/RESULTS
and create one Image Collections:
- MAPBIOMAS/C7/AGRICULTURE/COFFEE/RESULTS/RAW
To run the classification, follow these steps:
-
Open the script agriculture/coffee/01_classification.js;
-
On line 20 (variable
getNormalizedCollection
), set the path to the normalization.js script you copied to your GEE account; -
On line 38 (variable
outputCollection
), set the output path for the classification results; -
On line 41 (variable
years
), set the years you want to classify; -
On line 52 (variable
tiles
), set the WRS (path and row) you want to classify; -
On line 206 (variable
reference
), set the path to your reference map; -
Run the script.
To run the post-processing, follow these steps:
-
Open the script agriculture/coffee/02_spatial_temporal_filter.js;
-
On line 33 (variable
filters
), set the path to the temporal_spatial_filters.js script you copied to your GEE account; -
On line 41 (variable
input
), set the path to the raw classification result; -
On line 44 (variable
output
), set the path for the filtered result; -
Run the script.