Mapping Wetlands and River using Landsat 8 and MNDWI in Google Earth Engine

Поделиться
HTML-код
  • Опубликовано: 19 сен 2024
  • This script is written in Google Earth Engine (GEE) JavaScript API, which is used for satellite image processing and analysis. Let's break down the script step by step:
    1. Cloud Masking and MNDWI Calculation (preprocess function):
    • The script defines a function named preprocess that takes an image as input.
    • It extracts the QA (Quality Assessment) band from the input image.
    • It defines flags for different types of pixels, such as dilated, cirrus, cloud, and shadow.
    • It creates a composite mask by combining these flags to identify cloudy and shadowed areas.
    • It applies the mask to the input image, selecting specific bands related to surface reflectance, and scales the values.
    • It calculates the Modified Normalized Difference Water Index (MNDWI) using the formula: (GREEN - SWIR1) / (GREEN + SWIR1).
    • The result is a cloud-masked image with MNDWI.
    2. Filtering and Mapping (col variable):
    • The script filters a Landsat 8 image collection (l8) based on a region of interest (roi) and a specific date range.
    • It applies the preprocess function to each image in the collection using the map function.
    3. Visualization (Map Layers):
    • The script sets up visualization parameters (vis) for subsequent map layers.
    • It calculates the median composite of the preprocessed collection and clips it to the specified region of interest (roi).
    • It adds the median composite image to the map with specified visualization parameters.
    • It adds a layer displaying the MNDWI from the median composite using a color palette.
    • It identifies pixels with MNDWI greater than 0.4 as permanent water or a river and adds this layer to the map.
    4. Maximum Composite and Wetland Identification:
    • The script calculates the maximum MNDWI value across the image collection using the 98th percentile and clips it to the region of interest (roi).
    • It adds the maximum MNDWI layer to the map with specified visualization parameters.
    • It identifies wetland areas by considering pixels with MNDWI greater than 0 (indicating water) and not classified as permanent water or a river.
    5. Legend Creation:
    • The script creates a legend to display the color codes for the river and wetland areas.
    • It uses a UI panel to organize and display color codes along with corresponding labels.
    6. Adding Layers to the Map:
    • Finally, the script adds all the generated layers (median composite, MNDWI, permanent water or river, maximum MNDWI, wetland) and the legend to the map.
    This script seems to be focused on analyzing water bodies, rivers, and wetlands using Landsat 8 imagery and the MNDWI index in the Google Earth Engine environment. It combines cloud masking techniques with water index computation and visualizes the results on a map with legends.

Комментарии • 13

  • @deepjyotirabha7127
    @deepjyotirabha7127 20 дней назад

    Very Good Job.. Can u plz share the script

  • @Hamza_Muhamadson
    @Hamza_Muhamadson 2 месяца назад +1

    Very usefull can you share the script please ?🙏🙏🙏 I'm a phd and really need it

  • @forestersvlog1826
    @forestersvlog1826 4 месяца назад +1

    Hello, I really appreciate your work. If you may, can you send your script. I will use this for self study to be more effecient in Basic RS skills. Thank you.

  • @gizachewkabite9420
    @gizachewkabite9420 8 месяцев назад +1

    Please can you give me the script? I will use for academic purpose. Thanks

  • @vuyolwethumaqaqa5104
    @vuyolwethumaqaqa5104 5 месяцев назад +1

    Hey there, could you please share the script?

  • @LevixNadirKoffi
    @LevixNadirKoffi 9 месяцев назад +1

    hello please ,give the Script.

  • @qonitaazulfa3530
    @qonitaazulfa3530 7 месяцев назад

    Hello, please can you give me the script? Thankyou

    • @GISsolutions
      @GISsolutions  6 месяцев назад

      why not ? drop you email here !

  • @uma9183
    @uma9183 4 месяца назад +1

    request gee code ;