Giter Club home page Giter Club logo

forest-plantation's Introduction

Forest Plantation

Developed by Agrosatélite Geotecnologia Aplicada Ltda.

About

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.

How to use

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.

Classification

To run the classification, follow these steps:

  1. Open the script forest_plantation/classification.js;

  2. On line 2 (variable api), set the path to the api.js script you copied to your GEE account

  3. On line 7 (variable outputCollection), set the output path for the classification results;

  4. On line 10 (variable years), set the years you want to classify;

  5. On line 17 (variable tiles), set the WRS (path and row) you want to classify;

  6. 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);

  7. On line 55 (variable imageCollection), set the Image Collection you want to use to create the mosaics;

  8. On line 58 (variable referenceCollection), set the path to your reference map that will be used for sampling;

  9. Run the script.

Post-processing

To apply the temporal and spatial filters, follow these steps:

  1. Open the script forest_plantation/temporal_spatial_filter.js;

  2. On line 2 (variable input), set the input path to the raw classification result;

  3. On line 5 (variable output), set the path for the filtered result;

  4. On lines 8 and 9 (variables startYear and endYear), set the years interval you want to filter;

  5. Run the script.

forest-plantation's People

Contributors

mapbiomas-brazil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.