Skip to content

Instantly share code, notes, and snippets.

@willrayeo
Created May 4, 2021 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willrayeo/fbc41df2e9978569b96e55af560f6787 to your computer and use it in GitHub Desktop.
Save willrayeo/fbc41df2e9978569b96e55af560f6787 to your computer and use it in GitHub Desktop.
# define NDWI in visualisation
ndwi = ((s2_cube.B03-s2_cube.B08)/(s2_cube.B03+s2_cube.B08))
ndwi.attrs['long_name']='NDWI'
ndwi.attrs['units']='unitless'
s2_cube['NDWI']= ndwi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment