Using the script available in this forum (belowlink), I tried for terrain correction (flattening) of Sentinel 1 images

Getting local incidence angle from Sentinel-1 GRD image collection in Google Earth Engine

Here is my working script.


Unfortunately, why the resulted gamma0dB is all white?

Could someone look at above link and solve it?

I really want to return terrain corrected (flattened) gamma0dB.

1 Answer 1


You can calculate gamma0 like this:

function toGamma0(image) {
  var gamma0 = image.expression('i - 10 * log10(cos(angle * pi / 180))', {
    i: image.select(['VV', 'VH']),
    angle: image.select('angle'),
    pi: Math.PI
  return image.addBands(gamma0, null, true)  



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.