From 06f77e694013f2ffe0a3c32ba2b9f26ed671bb4b Mon Sep 17 00:00:00 2001 From: dfguerrerom Date: Wed, 27 Nov 2024 18:04:30 +0100 Subject: [PATCH] proofreading --- docs/source/workflows/proms.rst | 138 +++++++++++++++++++++----------- 1 file changed, 90 insertions(+), 48 deletions(-) diff --git a/docs/source/workflows/proms.rst b/docs/source/workflows/proms.rst index a331c87592..d0be6d5b37 100644 --- a/docs/source/workflows/proms.rst +++ b/docs/source/workflows/proms.rst @@ -1,5 +1,5 @@ -Probability Map Subtraction (PROMS) Workflow Tutorial -===================================================== +Probability Map Subtraction (PROMS) +=================================== Overview -------- @@ -12,23 +12,29 @@ This tutorial provides a step-by-step guide to estimate forest change areas betw :align: center +.. note:: + + In lighter green optional data and steps. + + Workflow Steps -------------- -- Input Data for Time 1 and Time 2 -- Training Data on Stable Forest and Stable Non-Forest between Time 1 and Time 2 + +- Input Data Collection for Time 1 and Time 2 +- Training data on Stable Forest and Stable Non-Forest between Time 1 And Time 2 - Forest Probability Classification at Time 1 and Time 2 - Forest Change Probability Calculation -- Forest Mask Application +- Inclusive Forest Mask Application (Optional) - Stratification - Sample Allocation -- Sample Interpretation and Area Estimation +- Sample Interpretation and analysis Summary Approach ---------------- -In this tutorial, we will demonstrate the methodology applied to the region of Alto Paraguay, aiming to estimate the forest change area between the years 2017 (Time 1) and 2021 (Time 2). +In this tutorial, we will demonstrate the methodology applied to the region of Alto Paraguay, aiming to estimate the forest change area between the years 2018 (Time 1) and 2020 (Time 2). Step 1: Input Data ****************** @@ -38,9 +44,12 @@ The first step is to select the input imagery for classification. A minimum of o SEPAL Tools for Image Combination: &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& -Optical Mosaics: For creating optical mosaics, refer to the `Optical Mosaics tool `__. -Radar Mosaics: For creating radar mosaics, use the `Radar Mosaics tool `__. -Planet Mosaic: For creating optical mosaics with high-resolution imagery, see the `Planet Mosaic tool `__. +SEPAL offers several tools to combine images from several sensors into single raster: + +- **Optical Mosaics**: For creating optical mosaics, refer to the `Optical Mosaics tool `__. +- **Radar Mosaics**: For creating radar mosaics, use the `Radar Mosaics tool `__. +- **Planet Mosaic**: For creating optical mosaics with high-resolution imagery, see the `Planet Mosaic tool `__. + For areas with seasonal vegetation variations (e.g., dry forests), consider using Continuous Change Detection and Classification (CCDC). Refer to `CCDC Asset Creation `__ for more information. Case Study Data Preparation: @@ -48,10 +57,9 @@ Case Study Data Preparation: In our case study, we created: -Planet Mosaics -Sentinel-1 Time Scans -Sentinel-2 Mosaics in SEPAL -ALOS-2 Time Scans in Google Earth Engine (`Link to Script `__) +- Planet Mosaics, Sentinel-1 Time Scans, Sentinel-2 Mosaics in SEPAL. +- ALOS-2 Time Scans in Google Earth Engine (`Link to Script `__) + These datasets were prepared for both years 2017 and 2021 (one year before and one year after Time 1 and Time 2, respectively). .. thumbnail:: ../_images/workflows/proms/InputData.gif @@ -64,31 +72,28 @@ Step 2: Training Data Create training data on the presence and absence of forest for your period of interest. Depending on availability, training data can be sourced from: -Existing Maps: Extract samples from global or regional forest maps. -Field Data: Use ground-truth data collected from field surveys. -Other Sources: Extract samples from datasets like GEDI or GLANCE. +- **Existing Maps**: Extract samples from global or regional forest maps. +- **Field Data**: Use ground-truth data collected from field surveys. +- **Other Sources**: Extract samples from datasets like GEDI or GLANCE. Step 3: Forest Probability Classification ***************************************** - Obtain forest probability maps for Time 1 and Time 2 through supervised classification of your input data, using training data on forest and non-forest classes. It is preferable to use stable samples from the period between Time 1 and Time 2. Using SEPAL's Classification Tool: +&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& SEPAL offers a user-friendly `Classification tool `__ for building supervised classifications. Case Study Implementation: &&&&&&&&&&&&&&&&&&&&&&&&&& -Auxiliary Data: Added terrain data from the `MERIT Digital Elevation Model `__ to the mosaic stack for both years. -Classifier: Used a Random Forest Classifier in probability output mode. -Output: Generated forest probability maps for 2017 and 2021. - +Auxiliary Data: Added terrain data from the `MERIT Digital Elevation Model `__ to the mosaic stack for both years. Classifier: Used a Random Forest Classifier in probability output mode. Output: Generated forest probability maps for 2017 and 2021. .. note:: - If the number of samples that changed class between Time 1 and Time 2 is small relative to the total number, it won't significantly affect Random Forest results due to its bootstrapping method. + If the number of samples that changed class between Time 1 and Time 2 is small relative to the total number, it won’t significantly affect Random Forest results due to its multiple decision trees and bootstrapping method. .. thumbnail:: ../_images/workflows/proms/Classification.gif :title: Workflow @@ -107,8 +112,8 @@ The `Band Math tool `__ Case Study Calculation: &&&&&&&&&&&&&&&&&&&&&&&& -Operation: Subtracted the forest probability band (probability_1) of the 2021 image from the 2017 image. -Result: High values indicate a high probability of forest change; low values indicate stability. +- Operation: Subtracted the forest probability band (probability_1) of the 2021 image from the 2017 image as an absolute value. +- Result: High values indicate a high probability of forest change, both possible ‘forest losses’ and ‘forest gains’; low values indicate stability. .. thumbnail:: ../_images/workflows/proms/FProbDiff.gif :title: Workflow @@ -120,8 +125,25 @@ For Multiple Monitoring Dates: When intermediate dates are available, calculate the maximum forest change probability: +.. raw:: html + + + +.. raw:: html + +
+ .. math:: \text{Max Change Probability} = \max(\text{probabilities over all dates}) - \min(\text{probabilities over all dates}) +.. raw:: html + +
+ + With only two dates: .. math:: \text{Change Probability} = |\text{Probability at Time 1} - \text{Probability at Time 2}| @@ -131,24 +153,42 @@ With only two dates: :align: center -Step 5: Forest Mask Application -******************************* +Step 5: Inclusive Forest Mask Application (optional) +**************************************************** +Apply a ‘forest mask’ to exclude areas with very low forest probability, focusing the stratification on relevant areas. -Apply a forest mask to exclude areas with low forest probability, focusing the stratification on relevant areas. +.. note:: -Steps: -&&&&&& + This mask should not be regarded as a commonly used forest mask but rather as a highly conservative one, designed to include all areas where forest could potentially exist at both Time 1 and Time 2, while excluding areas where forest is definitively absent, such as deserts, croplands, or built-up areas, especially when these categories constitute a significant portion of the total area). -Calculate Maximum Forest Probability: Use the Band Math tool to find the maximum probability across Time 1 and Time 2. -Remap Values: With the `Remapping tool `__, classify areas where the maximum forest probability is greater than 10% and mask out areas below this threshold. -Apply Mask: Use the `Masking tool `__ to apply the forest mask to the forest change probability layer. +Using SEPAL’s Band Math Tool: +&&&&&&&&&&&&&&&&&&&&&&&&&&&&& +Calculate Maximum Forest Probability: Use the Band Math tool to find the maximum probability across all dates (Time 1 and Time 2 in the case study). + + +Using SEPAL’s Remapping Tool: +&&&&&&&&&&&&&&&&&&&&&&&&&&&&& + +Remap Values: With the Remapping tool, classify areas as 'forest' where the maximum forest probability exceeds a specified threshold, and mask out areas that fall below this threshold. .. thumbnail:: ../_images/workflows/proms/ForestMaskCreation.gif :title: Workflow :align: center + +Case study implementation: +&&&&&&&&&&&&&&&&&&&&&&&&&& + +In our case study we used a 10% maximum forest probability threshold that masked out cropland areas. + + +Using SEPAL’s Masking Tool: +&&&&&&&&&&&&&&&&&&&&&&&&&&& + +Apply Mask: Use the Masking tool to apply the ‘forest mask’ to the forest change probability layer. + .. thumbnail:: ../_images/workflows/proms/ForestMaskApplication.gif :title: Workflow :align: center @@ -160,21 +200,21 @@ Step 6: Stratification ********************** -Convert the continuous forest change probability map into a categorical map using the `Unsupervised Classification tool `__ to create a stratification layer. +Convert the continuous forest change probability map into a categorical map using the SEPAL's `Unsupervised Classification tool `__ tool to create a stratification layer. + + +Using SEPAL’s Unsupervised Classification tool +&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& + + +- **Sampling**: Number of Samples: Use a high number (e.g., 100,000) for better representation, especially when areas with high forest change probability are small. Sampling Scale: Consider the forest definition (e.g., 70 meters aligning with a 0.5-hectare MMU). +- **Clusterer**: Algorithm: Use the k-means algorithm. Number of Clusters: Five classes are recommended (Kozak, 2011). -Configuration: -&&&&&&&&&&&&&& -Sampling: -Number of Samples: Use a high number (e.g., 100,000) for better representation, especially when high-change areas are small. -Sampling Scale: Consider the forest definition (e.g., 70 meters aligning with a 0.5-hectare MMU). -Clusterer: -Algorithm: Use the k-means algorithm. -Number of Clusters: Five classes are recommended (Kozak, 2011). Case Study Implementation: +&&&&&&&&&&&&&&&&&&&&&&&&&& -Samples: 100,000 samples to train the clusterer. -Sampling Scale: 70 meters. +Samples: 100,000 samples to train the clusterer. Sampling Scale: 70 meters. .. thumbnail:: ../_images/workflows/proms/UnsupervisedClassification.gif :title: Workflow @@ -184,8 +224,7 @@ Sampling Scale: 70 meters. Apply to Forest Areas Only: &&&&&&&&&&&&&&&&&&&&&&&&&&& -The stratification could be applied exclusively to areas identified as forest (both stable and changing) during the period of interest by using the masked Forest change probability map. - +The stratification could be applied exclusively to areas where forest could potentially exist during the period of interest (both stable and changing) using the masked forest change probability map as input image. .. thumbnail:: ../_images/workflows/proms/UnsupervisedClassificationForestMask.gif :title: Workflow @@ -202,6 +241,7 @@ Select the sample points for interpretation on the stratification layer using Ne Using Google Earth Engine &&&&&&&&&&&&&&&&&&&&&&&&& +The sample allocation can be applied either to the unmasked stratification layer (as shown in the image above) or to the masked stratification layer (as depicted in the image below). .. thumbnail:: ../_images/workflows/proms/SampleaAllocationForestMask.gif :title: Workflow @@ -212,10 +252,12 @@ Using Google Earth Engine :title: Workflow :align: center +Case Study Implementation: +&&&&&&&&&&&&&&&&&&&&&&&&&& + +Total number of samples to select: 3000. Spatial resolution: 70m. Step 8: Sample interpretation and analysis ****************************************** Estimate the forest change area. - -