I am trying to apply Otsu algorthm to S1 images starting from its launch to till date on my study area for waterbody mapping. I perform otsu without applying any date filter for Satellite pass so I can get more imageries. But I get the error
ImageCollection (Error) Error in map(ID=S1A_IW_GRDH_1SSV_20160525T235440_20160525T235507_011422_011607_60C4): Dictionary.get: Dictionary does not contain key: bucketMeans.
Then I tried to omit the above error by applying
.filter(ee.Filter.neq('system:id', 'COPERNICUS/S1_GRD/S1A_IW_GRDH_1SSV_20160525T235440_20160525T235507_011422_011607_60C4'))
and again I get error
ImageCollection (Error) Error in map(ID=S1A_IW_GRDH_1SSV_20160805T235445_20160805T235511_012472_0137E8_08F2): Dictionary.get: Dictionary does not contain key: bucketMeans.
and I apply another filter
.filter(ee.Filter.neq('system:id','COPERNICUS/S1_GRD/S1A_IW_GRDH_1SSV_20160805T235445_20160805T235511_012472_0137E8_08F2'))
But nothing works it just goes on. I came to understand the issue happens only on Descending passes. So when I put a filter to obtain Ascending pass the output progress without any errors but it won't apply the same in Descending pass.
Here is my code..