I have imagecollection from sentinel 1 and I would like to create function that wil calculte new rasters based on a model that I have. my imagecollection called FrostDB and I want to create new imagecollection based on the bands that each image in FrostDB has.
The idea is to: 1. take the two band- VV and VH 2. calculate new band for each image called NRPB ,based on VV and VH 3. take all those 3 bands and calculte new image 4. get new imagecollection which is based on this model.
I have built kind of "draft" for it but I don't know how to tell GEE to take those bands and do it for each image
var model=FrostDB.map(function(im)){
//////for each image:
//take the band: im.VH select('VH_sum');
//take the band VV im.VH select('VV_sum');
//Calc 'NRPB': VH.subtract(VV).divide(VH.add(VV)).rename('NRBP')
//take those calculation and for each image calc:
// '2.13-(-0.5094*VH)+(0.34*VV)+(3.25*NRPB)', {
// 'VH': imgFrost.select('VH_sum'),
// 'VV': imgFrost.select('VV_sum'),
// 'NRPB': VH.subtract(VV).divide(VH.add(VV)).rename('NRBP')
return im;
});
My end goal: to get new image collection based on the 3 bands (when one of them is calculated also inside the function)