Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

AMMI-MANGROVE-MAPPING-USING-PYTHON: AMMI (4).ipynb

Mapping Mangrove Distribution Based on AMMI (Suyarso & Avianto, 2022)

Using Geemap (Wu, 2020) and Cartoee (Markert, 2019) Layout


Overview This analysis demonstrates the application of the Automatic Mangrove Map and Index (AMMI) algorithm using Python-based geospatial tools to monitor mangrove ecosystems.


Tools and Libraries

  • ee (Earth Engine API)
    The core interface used to access Google Earth Engine’s cloud-based geospatial datasets and high-performance computing power.

  • geemap & geemap.cartoee
    Used to visualize GEE layers. cartoee specifically allows the creation of publication-quality static maps by integrating Earth Engine data with the matplotlib plotting environment.

  • matplotlib & cartopy
    matplotlib handles the overall figure layout, while cartopy provides tools for map projections, coordinate reference systems (CRS), and gridline generation.


AMMI Index (Automatic Mangrove Map and Index)

The Automatic Mangrove Map and Index (AMMI) is a specialized vegetation index designed to:

  • Identify mangrove extents automatically

  • Estimate canopy density

Unlike general vegetation indices, AMMI is optimized to distinguish mangroves from other coastal features.

Developed By

Suyarso and P. Avianto (2022)
Research Center for Oceanography, National Research and Innovation Agency (BRIN, formerly LIPI), Indonesia.


Algorithm and Thresholding

The AMMI formula is derived from reflectance values (ρ\rho) of:

  • NIR (Near Infrared)

  • SWIR1 (Shortwave Infrared 1)

  • Red band

1. Land Delineation

ρNIR−ρRedρRed+ρSWIR1\frac{\rho_{NIR} - \rho_{Red}}{\rho_{Red} + \rho_{SWIR1}}

This component strengthens terrestrial signals while suppressing water and marine features.


2. Mangrove classification

ρNIR−ρSWIR1ρSWIR1−0.65×ρRed\frac{\rho_{NIR} - \rho_{SWIR1}}{\rho_{SWIR1} - 0.65 \times \rho_{Red}}

This part is calibrated to capture mangrove extent and canopy density.


3. Complete AMMI Formula

AMMI=ρNIR−ρRedρRed+ρSWIR1×ρNIR−ρSWIR1ρSWIR1−0.65×ρRedAMMI = \frac{\rho_{NIR} - \rho_{Red}}{\rho_{Red} + \rho_{SWIR1}} \times \frac{\rho_{NIR} - \rho_{SWIR1}}{\rho_{SWIR1} - 0.65 \times \rho_{Red}}

Classification Thresholds

  • Mangrove Binary Map

    AMMI>6AMMI > 6


    → Classified as mangrove

  • Mangrove Density Index

    AMMI>5AMMI > 5


    → Used to visualize canopy density variation


Prepared By Defani Arman Alfitriansyah
Faculty of Forestry, Universitas Kuningan


Install Library

Code

Loading...
<Figure size 1500x1500 with 6 Axes>

References

[1] Gorelick, N., Hancher, M., Dixon, M., Ilyushchenko, S., Thau, D., & Moore, R. (2017). Google Earth Engine: Planetary-scale geospatial analysis for everyone. Remote Sensing of Environment, 202, 18–27. Gorelick et al. (2017)

[2] Hunter, J. D. (2007). Matplotlib: A 2D graphics environment. Computing in Science & Engineering, 9(3), 90–95. Hunter (2007)

[3] Markert, K. (2019). Cartoee: Publication quality maps using Earth Engine. Journal of Open Source Software, 4(33), 1207. Markert (2019)

[4] Met Office. (2015). Cartopy: A cartographic python library with a matplotlib interface. http://scitools.org.uk/cartopy

[5] Suyarso. (2022). AMMI Automatic Mangrove Map and Index: An analytical study on satellite imageries at Aru Islands, Maluku, Indonesia. In Emerging Challenges in Environment and Earth Science (Vol. 2, pp. 107–130). BP International. . (2022)

[6] Suyarso, & Avianto, P. (2022). AMMI Automatic Mangrove Map and Index: Novelty for efficiently monitoring mangrove changes with the case study in Musi Delta, South Sumatra, Indonesia. International Journal of Forestry Research, 2022, 1–13. Suyarso & Avianto (2022)

[7] Wu, Q. (2020). Geemap: A Python package for interactive mapping with Google Earth Engine. Journal of Open Source Software, 5(51), 2305. Wu (2020)

References
  1. Gorelick, N., Hancher, M., Dixon, M., Ilyushchenko, S., Thau, D., & Moore, R. (2017). Google Earth Engine: Planetary-scale geospatial analysis for everyone. Remote Sensing of Environment, 202, 18–27. 10.1016/j.rse.2017.06.031
  2. Hunter, J. D. (2007). Matplotlib: A 2D Graphics Environment. Computing in Science & Engineering, 9(3), 90–95. 10.1109/mcse.2007.55
  3. Markert, K. (2019). cartoee: Publication quality maps using Earth Engine. Journal of Open Source Software, 4(33), 1207. 10.21105/joss.01207
  4. . S. (2022). AMMI Automatic Mangrove Map and Index: An Analytical Study on Satellite Imageries at Aru Islands, Maluku, Indonesia. In Emerging Challenges in Environment and Earth Science Vol. 2 (pp. 106–130). Book Publisher International (a part of SCIENCEDOMAIN International). 10.9734/bpi/ecees/v2/3423e
  5. Suyarso, & Avianto, P. (2022). AMMI Automatic Mangrove Map and Index: Novelty for Efficiently Monitoring Mangrove Changes with the Case Study in Musi Delta, South Sumatra, Indonesia. International Journal of Forestry Research, 2022, 1–14. 10.1155/2022/8103242
  6. Wu, Q. (2020). geemap: A Python package for interactive mapping with Google Earth Engine. Journal of Open Source Software, 5(51), 2305. 10.21105/joss.02305