0

MNDWI is the normalized difference of Green Band and SWIR Band. In LANDSAT both are of a similar resolution i.e. 30m.

In the case of LANDSAT

var landsat8 = ee.Image("LANDSAT/LC08/C01/T1_RT_TOA/LC08_148044_20130425")
var ndwi = image.normalizedDifference(['B3', 'B6']).rename('MNDWI')

gives us MNDWI Band

whereas in the case of Sentinel 2 the resolutions of Green Band (B3 is 10m) and SWIR Band (B11 is 20m) are different.

How to change SWIR Band to more finer resolution so that I can apply normalized difference?

0

normalizedDifference(['B3', 'B6']) means (Band 3-Band 6)/(Band 3 + Band 6), what you need to do is substitute the band number as you wish.

  • Sorry, I know what normalized difference means but I think we cannot apply Normalized difference for the bands whose resolutions are different. – Prasad Thota Jun 30 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.