I have a 4 band composite image and a csv table consisting of regression coefficients. Each row in the table represents a regression specific to a day of year (doy). The 1st column in the table is doy and Band 2 of the composite is doy
What I would like to do is calculate a new band using the coefficients specific to the doy of each pixel.
The process should be something like this:
- Find doy value in pixel.
- Look-up the appropriate row in the coefficient table with matching pixel doy.
- Extract appropriate values from columns in coefficient table.
- Extract appropriate values from other bands in pixel.
- Plug values into equation to calculate new band.
The Equation can be something like:
Col2 + Col3*Band3 + Col6*Band3*Band1
How can I implement this in Google Earth Engine?