Developed by Remap Geotecnologia Ltda.
This folder contains the scripts to classify and post-process the Other Perennial Crop class.
We recommend that you read the Agriculture Appendix of the Algorithm Theoretical Basis Document (ATBD), since important informations about the 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/PERENNIAL_CROPS/RESULTS
and create one Image Collections:
- MAPBIOMAS/C7/AGRICULTURE/PERENNIAL_CROPS/RESULTS/RAW
To run the classification, follow these steps:
-
Open the script agriculture/perennial_crops/01_classification.js;
-
On line 19 (variable
api), set the path to the api.js script you copied to your GEE account; -
On line 24 (variable
output), set the output path for the classification results; -
On line 27 (variable
years), set the years you want to classify; -
On line 34 (variable
tiles), set the WRS (path and row) you want to classify; -
On line 59 (variable
periods), set the periods of the region you want to classify (more information about that you can read on the ATBD Agriculture Appendix); -
On line 84 (variable
imageCollection), set the collection you want to use to create the mosaics; -
On line 87 (variable
reference), 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 agriculture/perennial_crops/02_spatial_temporal_filter.js;
-
On line 18 (variable
input), set the path to the raw classification result; -
On line 21 (variable
output), set the path for the filtered result; -
Run the script.
