I need help solving this GEE internal error. I am trying to reduce my script lines in GEE. So, I tried to use a single function to compute polarization indexes.
However, the console shows a warning saying:
This is the script:
// Function to compute and add polarization indexes as bands
var addindexes = function(ima) {
var NDPI = ima.select('VV').subtract(ima.select('VH'))
.divide(ima.select('VV').add(ima.select('VH')));
var NVHI = ima.select('VH').divide(ima.select('VV').add(ima.select('VH')));
var NVVI = ima.select('VV').divide(ima.select('VV').add(ima.select('VH')));
var VHrVV = ima.select('VH').divide(ima.select('VV'));
var indexes = ee.List([NDPI,NVHI,NVVI,VHrVV]);
return ima.addBands(indexes);
};
// Add index bands to image collection
var S1_indexes = allSeasons.map(addindexes);
print(S1_indexes);