Skip to content

How to mosaick two raster images (NDVI and NDWI) as one layer in GEE? (Python) #7

Description

@IndigoWizard

Important

  • Don't forget to check the CONTRIBUTING.md
  • This issue is related to the feature/imagery-analysis branch and so should the PR come from it (or make a new branch with prefix Imagery-) and it shall be merged into the develop branch.

Main issue gist

(original question asked in here in gis.stackexchange.com/questions/436671/

I'm trying to mosaic NDVI and NDWI layers into one layer using GEE (python). This is for having land part of the map covered by the NDVI results and the water part of the map covered by NDWI. All that in one layer.

Any idea how to make this work?

See here for reference: Google Earth Engine: Image Visualization

Visuals

Wanted result Similar to
enter image description here enter image description here
Mosaic of NDWI & NDVI as one layer Mosaic of NDWI & False Color Composite

The problem

  • Simply not working.
  • No errors.
  • "Mosaic: NDWI x NDVI" layer exist but not showing visuals.
  • "Clipped: NDWI x NDVI" layer exist and only showing NDVI land part but in a grey scale colors, not original NDVI palette. The NDWI part of the mosaic is left out not showing.
my actual results-1 (problem) my actual results-2 (problem)
enter image description here enter image description here
Clipped mosaic of NDWI & NDVI as one layer
Greyed out and no NDWI
Nothing shows on the map
(Mosaic of NDWI & NDVI not working)

My approach

I first followed the official tutorial in GEE documentation (see here: https://developers.google.com/earth-engine/guides/image_visualization#mosaicking).

  • Managed to reproduce the results and successfully mosaicked NDWI & FCC (false color composite) as one image layer.
  • I tried to mosaic NDWI and NDVI but no results show up in that layer. No errors of execution in the console tho.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions