colab Open in SageMaker Studio Lab Open in Planetary Computer

Access to Awesome Spectral Indices v0.0.3

Tutorial created by **David Montero Loaiza**: GitHub | Twitter

Let’s start!

If required, please uncomment:

[1]:
#!pip install eemont
#!pip install geemap

Import the required packages.

[2]:
import ee, eemont, geemap
import geemap.colormaps as cm

Authenticate and Initialize Earth Engine and geemap.

[3]:
Map = geemap.Map()

Let’s define a point of interest:

[8]:
poi = ee.Geometry.BBoxFromQuery("Buenos Aires, Argentina",user_agent = "eemont-tutorial-030")

Spectral Indices from Awesome Spectral Indices v0.0.3 are now locally available!

Let’s compute one of the mew Spectral Indices!

[15]:
S2 = (ee.ImageCollection("COPERNICUS/S2_SR")
      .filterBounds(poi)
      .filterDate("2020-01-01","2021-01-01")
      .preprocess()
      .spectralIndices(["NDVI705"])
      .median())

Let’s visualize everything using geemap (and also container emulation methods!):

[16]:
Map = geemap.Map()
Map.addLayer(S2['NDVI705'],{"min":0,"max":1,"palette":cm.palettes.ndvi},"NDVI705")
Map.centerObject(poi.centroid(1),10)
Map