Loading [MathJax]/jax/output/CommonHTML/fonts/TeX/fontdata.js

In situ data preparation

Set directory

Set parameters

Set filenames

1. Apply 10m inner buffer to each polygons

2. Add polygon area

3. Add pixel count

3.1 Select one raster clipped to the extent of the ROI as a template to rasterize in situ polygons

3.2 Rasterize in situ polygons

3.3 Count number of pixels for each polygons

3.4 Merge pixels count with polygons informations

4. Remove unnecessary in situ polygons

4.1 Remove polygons with less than pix_min pixels

4.2 Remove polygons from under represented and unwanted classes

Under represented classes mean the classes with :

Unwanted classes mean the classes we don't want to work with

Plot histogram

Write geodataframe into a shapefile