Questions tagged [normalized-difference-water-index]

The Normalized-Difference-Water-Index (NDWI) is a spectral reflectance index that can be used to highlight water bodies from multi-spectral satellite data or to obtain the water content in vegetated pixels. Users of this tag should be clear about the context and use case of the NDWI.

Filter by
Sorted by
Tagged with
2 votes
1 answer
24 views

NDWI anomalies calculation in Google Earth Engine

I am a Google Earth Engine beginning level user and I am trying to detect NDWI anomalies using Sentinel-2 & Landsat Harmonized data and this formula I have watched and read some tutorials and ...
user avatar
  • 23
1 vote
1 answer
32 views

Google Earth Engine - Get Image with highest max Scene NDWI

By adapting code from Getting Image with highest max Scene NDVI from Image collection using Google Earth Engine I have been able to make a script that gives me the date and mean highest NDVI for each ...
user avatar
-1 votes
1 answer
91 views

GEE error: Layer error: Image.select: Pattern 'NDWI' did not match any bands

I want to find the NDWI and NDCI of my study area from the Sentinel 2 image in google earth engine but i get a error that it did not match any bands. How can I solve this problem? my code here: ...
user avatar
0 votes
0 answers
25 views

Exporting images to Google Drive in Colab

How can I export my geotiff images to GDrive in Colab with the colours? For instance if I want to export NDVI, the export Geotiff is not exported with the green colour rather its a one band gray ...
user avatar
0 votes
0 answers
49 views

Accuracy of threshold images

I am studying on identifying flood zones using Google Earth Engine. I calculated the NDWI index for the Sentinel 2 image. Then I set a threshold according to the OTSU thresholding method. I classified ...
user avatar
0 votes
0 answers
62 views

Sentinel2 8-day composite NDVI and NDWI images in Earth Engine

Google generates and publishes derived products for Landsat-8, 8-Day Composite NDVI and NDWI image collections in the Earth Engine Catalogue. Landsat 8 Collection 1 Tier 1 8-Day NDVI Composite ...
user avatar
  • 702
0 votes
1 answer
170 views

Google Earth Engine: "line 29 is not a function" error when calculating NDWI

I am trying to calculate NDWI from Sentinel 2 data in Google Earth Engine but keep getting the error "Line 29 is not a function" (the line where I am trying to run the ndwi function on all ...
user avatar
  • 715
0 votes
0 answers
84 views

How to convert binary mask to lat/lon points Google Earth Engine

I have a binary mask in Google Earth Engine made from an MNDWI raster import os import ee import geemap import matplotlib.pyplot as plt import geemap.colormaps as cm import sys os.environ["...
user avatar
0 votes
1 answer
150 views

Error "pattern did not match any bands"

I'm a GIS Student and I'm learning how to use Google Earth Engine. I'm trying to make a GEE APP in which through a dropdown menu I select an index (in this case NDWI_Veg or NDWI_Water) and it shows on ...
user avatar
0 votes
0 answers
34 views

GEE - Distance to Rivers for city

I have a code with a permanentwater Layer (Rivers)and now i want to create a Layer containing the Distance to that permanentwater Layer for the rest of my area of interest, so the non water areas of ...
user avatar
0 votes
1 answer
38 views

Strange phenomenon in remote sensing index NDWI

I'm mapping water bodies in my region with Sentinel 2A Level 2-A imagery. I used ArcGIS Pro Raster Calculator to take (Band 3 - Band 8) / (Band 3 + Band 8) to get Normalized Difference Water Index. ...
user avatar
0 votes
2 answers
130 views

Calculation of maximum and minimum and add in the same Image Collection

I want to calculate the maximum value for band 2 and 12 but also the minimum value for band 2 and 12, how can I generate these bands with the new statistics and add them to my ImageCollection to ...
user avatar
0 votes
1 answer
128 views

Landsat collection 2 level 1

I am working on NDWI and MNDWI indices using Landsat 5,7 and 8 to identify permanent water bodies in two images by mosaicing them. When using Landsat collection 1 data I have performed atmospheric and ...
user avatar
1 vote
1 answer
599 views

Selecting specific range pixel values using Google Earth Engine

I have calculated NDWI on my study area. After this, I want to select a specific range of values that I will use to make a mask. My specific values range is between 0.2 and -0.1. This is my code: var ...
user avatar
  • 11
0 votes
1 answer
40 views

Turning NDWI values into percentage from -1 to 1

The usual values of NDWI, NDVI e.t.c come as -1 to 1. I want to show these values as 0-100%. How shall I do that with the raster calculator?
user avatar
1 vote
1 answer
171 views

Error in image.visualize: Creating NDWI animation series for Landsat 8

I'm currently working on QGIS with GEE plugin, making NDWI animation series for Landsat 8. Im getting a error in image.visualize: Expected a string or list of strings for field 'bands'... at the end ...
user avatar
1 vote
0 answers
192 views

Obtaining time series of water extents per plot using landsat NDWI data available on GEE

I wanted to obtain a monthly time series estimate of the water surface for each of 67 survey plots (500m circles). However, I could not figure out how to correctly code this in the google earth engine....
user avatar
  • 11
1 vote
0 answers
66 views

How to convert NDWI into vector and export it?

I am working over a collection to calculate NDWI. Now I want to convert each NDWI over the collection to vector and export it. Following code is being used. a function defined for masking function ...
user avatar
  • 33
1 vote
1 answer
48 views

Georeferencing bands at first then calculating NDWI, or, calculating NDWI at first and then georeferencing it

I want to get NDWI from MODIS mod021km as GeoTIFF files. As far as you know, MODIS images are not georeferenced and the point is georeferencing these imagages is a little bit inaccurate (because of ...
user avatar
0 votes
0 answers
88 views

NDWI from Landsat-8 imagery

I am trying to calculate NDWI from Landsat-8 Band3(range:-113 to 11785) and Band5(range -89 to 12960) but the range of the resultant NDWI image is not valid (range: -215.181 to 1151.02). What is the ...
user avatar
2 votes
1 answer
248 views

how to remove small water bodies in binary mask array that we get from ndwi values?

I've detected water bodies in satellite images (modis, sentinel, landsat) in special area polygons, by ndwi values and based on special thresholds. area polygons and image tiles are coordinate ...
user avatar
1 vote
1 answer
93 views

Techniques to map small water bodies in desert

Techniques to map small water bodies in desert I have task to map water bodies in a desert. I used landsat 8 and calculated three indices called NDMI, Tasseled Cap Wetness, & AWEIsh. I am ...
user avatar
1 vote
0 answers
91 views

Cloud Shadow interferring with NDWI Analysis

I'm working on surface water identification in Northern Kenya. I'm using Landsat 5TM and Landsat 8OLI data in ENVI 5. I've masked clouds using the QA band (although have also tried the fmask tool- ...
user avatar
1 vote
1 answer
399 views

PlanetScope NDWI calculations

I am trying to calculate NDWI for a PlanetScope image scene. I currently have 2 products: one is the "3B_AnalyticMS_SR.tif" and the other is the "3B_AnalyticMS.tif" product. I ...
user avatar
  • 19
2 votes
0 answers
99 views

Printing NDWI and NDVI comparision graph

Trying to print the chart for both NDVI and NDWI function addNDVI(image) { var ndvi = image.normalizedDifference(['B4', 'B3']); return image.addBands(ndvi); } ...
user avatar
2 votes
1 answer
200 views

How to print chart for NDWI

Trying to compute chart for NDWI var dataset = ee.ImageCollection('LANDSAT/LE07/C01/T1_8DAY_NDWI') .filterDate('1999-01-01', '2002-12-31') .filterBounds(...
user avatar
2 votes
1 answer
1k views

Water pixel detection in Landsat imagery using Google Earth Engine

I want to extract or detect water bodies in a selected region using the relationship between water and vegetation indices, and these water and vegetation indices were calculated by using the cloud and ...
user avatar
1 vote
1 answer
1k views

NDWI generation from google earth engine

I want to generate the median composite image of ndwi images of several dates in google earth engine. How can I do that and how to shorten the code itelf? var image5 = L5.filterDate('1987-01-01','...
user avatar
1 vote
0 answers
85 views

How to export NDWI images one by one?

I am using GEE and I'm pretty new with this engine. I'm trying to download several images from Landsat collection. I provide the script for you. Here is my question: How can I download each NDWI ...
user avatar
  • 11
1 vote
0 answers
142 views

Comparing NDWI regions with a given shapefile Google Earth Engine Python?

With the code below, I computed the NDVI, NDWI and NDWIMOD indices of a R.O.I. in order to detect water areas in that R.O.I. Now, my goal concerns to compare the water areas with a given shapefile ...
user avatar
1 vote
0 answers
87 views

Unable to use ee.Kernel Google Earth Engine pyhon API

I'm trying to use the ee.Kernel Google Earth Engine pyhon API in the following code: import ee import ee.mapclient ee.Initialize() ee.mapclient.centerMap(15.88, 41.78, 10) def maskS2clouds(...
user avatar
0 votes
1 answer
43 views

Output of layer consisting pixel value 1 and 0 totally black?

I am computing the NDWI of an area , and I used the code below to generate a result of pixel value 1 and 0 only. Pixel value 1 will be displayed in blue means the pixel's NDWI value once had exceeded ...
user avatar
0 votes
1 answer
607 views

Export stacked layers of images as a thumbnail URL in GEE

I am computing different normalized index like NDVI, NDWI, NDBI, UI and adding them as layers stacked on top of Sentinel 2-1C Image patch. I would like to download the generated stacked image as a ...
user avatar
  • 121
2 votes
3 answers
323 views

Calculate NDWI of each image in a Imagecollection?

var L8 = ee.ImageCollection("LANDSAT/LC08/C01/T1_TOA") .filterDate('2016-06-01', '2016-07-31') // you can change date here .filter(ee.Filter.lt("CLOUD_COVER", 0.75)) .filterBounds(collection[i]) .map(...
user avatar
  • 33
1 vote
1 answer
307 views

Google Earth Engine -Iterated image of NDWI

I computed the NDWI of the whole image collection and I expect to output an image that shows water body whenever it has been flooded , even once , throughout the filtered date. Somehow the output ...
user avatar
1 vote
1 answer
451 views

Why mNDWI can detect the shallow water area but ignores the deep water area?

I'm using Landsat 8 in Google Earth Engine to detect the water body in Jiangsu and Zhejiang area, China. The formula is: mNDWI = (Green-SWIR)/(Green+SWIR) I applied this formula to GEE code, and it ...
user avatar
1 vote
1 answer
989 views

Calculate water frequency in Google Earth Engine based on time series?

I have the Landsat 8 images cover southern Florida during 2017 (from Jan 1st to Dec 31st), with the cloud, scan edges and other bad observation pixels eliminated. I have also calculated several ...
user avatar
1 vote
1 answer
281 views

How to compute the conditional function and output binary image in GEE?

I am now using Google Earth Engine to process the Landsat 8 images. Now I have calculated NDVI, EVI, mNDWI and generated some maps. I am now want to generate a function based on those indices values, ...
user avatar
1 vote
0 answers
22 views

Performing unsupervised classification using ArcGIS Desktop?

How to distinguish between water bodies and clouds using unsupervised classification in sentinel 2? When i used NDWI and NDSI both are same objects.
user avatar
1 vote
0 answers
263 views

Clip a Mask (NDSI) from another Mask (NDWI) in GEE

I have created a mask of Normalized difference Snow Index (NDSI) in the late winter using a combination of Landsat 5,7,8 imagery and I would like to only keep a remaining land features by clipping out ...
user avatar
  • 11
4 votes
1 answer
1k views

Treatment of Landsat 7 SLC error in Google Earth Engine?

Google Earth Engine distributes Landsat 7 image composites of indeces such as NDWI and NDVI that, when averaged on a shapefile, give back a coherent value. But how is SLC failure treated by it https:/...
user avatar
  • 485
3 votes
1 answer
862 views

How is Landsat NDWI calculated in Google Earth Engine?

I am using Google Earth Engine to compute NDWI time series, in particular by plotting "Landsat 7 Collection 1 Tier 1 8-Day NDWI Composite" data values The product description says: These Landsat 7 ...
user avatar
  • 485
1 vote
1 answer
2k views

Reclassifying NDWI using Google Earth Engine?

I'm trying to reclassify a NDWI raster into 1 for values >0.4 and 0 for <0.4. I understand that its possible to use .remap in case of discrete values, but not sure how to reclassify NDWI raster ...
user avatar
2 votes
1 answer
2k views

Binarization of water body extraction in Google Earth Engine?

I'm a new learner of Google Earth Engine. What I am doing right now is to extract water bodies from Landsat 8 using such water index as NDWI(normalized difference water index) in GEE. Is there any ...
user avatar
1 vote
1 answer
331 views

Getting extreme values for NDWI calculation for Landsat 8 Imagery

I am currently in a remote sensing course at my university and am working on a change detection project. I am having some trouble creating an ndwi raster from landsat 8 imagery. I am using arcgis 10.5....
user avatar
1 vote
3 answers
932 views

NDWI Calculation with Surface Reflectance Products

I have downloaded L8 OLI/TIRS C1 Higher Level Data from USGS Earth Explorer to map Chlorophyll content in lake. The file contains original images and surface reflectance images. When I calculate NDWI ...
user avatar
3 votes
1 answer
2k views

How to remove negative values from RasterLayer in R

I am processing Landsat 8 images to detect water quality parameters in R. I am using NDWI to masking the images. The raster layer I obtained from NDWI has negative values which I wanted to remove. Can ...
user avatar
0 votes
2 answers
286 views

Applying Maximum Likelihood Classification to a single band (NDWI)

I have applied ML to a single band file, specifically a NDWI (McFeeters version). Comparing the results of this classification, with ML applied too a normal 5 band RapidEye Scene, the first one gave ...
user avatar
  • 205
0 votes
1 answer
1k views

Masking Water Bodies to build surface temperature raster slice of them in ENVI?

I am looking at a region in the Alaskan tundra, there are plenty of small water bodies in my scene. I need to mask these bodies, so that I can perform a surface temperature/emissivity normalization ...
user avatar
0 votes
1 answer
178 views

Water discrimination by Remote sensing

I have NIR, green, red edge, red, IR bands at disposal of a an area with a river, I want to discriminate water surfaces, do you have any good ideas on how to do that ? I did a NDWI which is not very ...
user avatar
  • 91