I am trying to run the expression below in Google Earth Engine to calculate Index-base Built-up Index(IBI)
var ibi = l8compositeMasked.expression(
'(2*SWIR/(SWIR+NIR)-((NIR/(NIR+RED))+(GREEN/(GREEN+SWIR)))) / (2*SWIR/(SWIR+NIR)+((NIR/(NIR+RED))+(GREEN/(GREEN+SWIR))))', {
'RED':l8compositeMasked.select('B3'),
'GREEN':l8compositeMasked.select('B4'),
'NIR':l8compositeMasked.select('B5'),
'SWIR':l8compositeMasked.select('B6')
});
Map.addLayer(ibi, {min:-1, max:1}, 'ibi', false);
but I keep getting the error below.
Layer shown property is not a boolean: ee.Image({
"type": "Invocation",
"arguments": {
"DEFAULT_EXPRESSION_IMAGE": {
Below is the link to the script https://code.earthengine.google.com/bdb6397411fe912861900cba04bb9172
How can I resolve this?