Select to view content in your preferred language

Raster function to highlight water in near-infrared ortho

437
4
07-15-2025 07:08 PM
Status: Closed
Labels (1)
Bud
by
Esteemed Contributor

I have a 4-band ortho with near infrared in the fourth band. I've used the fourth band as red.

Bud_0-1752631424420.png

Bud_1-1752631447769.png

I know from being on site that there is a creek at the yellow line and some standing water at the white line. And I can see it in the ortho, too.

Using a raster function, I want to highlight the known waterbodies, as well as other unknown waterbodies, in a bright colour. I've tried using the NDVI raster function, but none of the NDVI options highlight the water. Only the vegetation seems to be pronounced in the output NDVI layers.

Can a raster function be added that can highlight water in a bright colour? I can send the .tif ortho file to Esri staff in a private message or email if needed.

 

 

 

4 Comments
BobBooth1

Have you tried the NDWI raster function?

Bud
by

@BobBooth1 Thanks. I tried your suggestion, but the output layer doesn't seem to highlight water at all. If anything, the water is de-emphasized. Not sure why.

 

BobBooth1

NDWI should highlight water.  It may be that the band combination of inputs is wrong? The order of bands in rasters varies.

This tutorial has a notebook showing how to use raster calculations to make an NDWI output layer.

https://arcgis.com/home/item.html?id=24e13f2f4fe8453b9d1107e1f5b1d3cf

NDWI_Sentinel_2.gif

ValeriaChavez
Status changed to: Closed

Hi @Bud! What you're describing in your Idea should be possible with the Band Arithmetic raster function leveraging the NDWI method: 

NDWI = (Green - NIR) / (Green + NIR) 

If the results you're getting do not look as expected, I would encourage you to contact Technical Support

Thank you for your continued engagement on Esri Community.